wok-current rev 19256
Add openspades
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jul 03 11:21:33 2016 +0300 (2016-07-03) |
parents | c2beb6e63cbe |
children | 13806712bef0 |
files | openspades/description.txt openspades/receipt openspades/stuff/openspades-0.0.12.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openspades/description.txt Sun Jul 03 11:21:33 2016 +0300 1.3 @@ -0,0 +1,12 @@ 1.4 +Open-source clone of Ace of Spades - free FPS sandbox game 1.5 + 1.6 +OpenSpades is a clone of Voxlap Ace of Spades 0.75, which is a free multiplayer 1.7 +game created by Ben Aksoy. 1.8 + 1.9 +Here are some features: 1.10 + 1.11 + * Ability to connect to vanilla/pyspades server 1.12 + * Better performance on some modern computers/netbooks 1.13 + * Sophisticated graphics 1.14 + * Fully open source (GPLv3 compliant) 1.15 + * Cross-platform
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/openspades/receipt Sun Jul 03 11:21:33 2016 +0300 2.3 @@ -0,0 +1,41 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="openspades" 2.7 +VERSION="0.0.12" 2.8 +CATEGORY="games" 2.9 +SHORT_DESC="Compatible client of Ace of Spades 0.75" 2.10 +MAINTAINER="al.bobylev@gmail.com" 2.11 +LICENSE="GPL3" 2.12 +WEB_SITE="http://openspades.yvt.jp/" 2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.14 +WGET_URL="https://github.com/yvt/openspades/archive/v$VERSION.tar.gz" 2.15 + 2.16 +DEPENDS="gcc49-lib-base glew glibc-base libcurl libglu-mesa libsdl2 \ 2.17 +libsdl2-image libxcb mesa util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 \ 2.18 +xorg-libXau xorg-libXdmcp xorg-libXext zlib" 2.19 +BUILD_DEPENDS="gcc49 cmake libsdl2-dev libsdl2-image-dev freealut-dev mesa-dev \ 2.20 +glew-dev curl-dev imagemagick grep unzip" 2.21 + 2.22 +# Rules to configure and make the package. 2.23 +compile_rules() 2.24 +{ 2.25 + patch -p1 -i $stuff/$PACKAGE-$VERSION.patch 2.26 + export CXX=/usr/bin/i486-slitaz-linux-g++-49 2.27 + 2.28 + mkdir build; cd build 2.29 + cmake .. \ 2.30 + -DCMAKE_INSTALL_PREFIX=/usr \ 2.31 + -DCMAKE_BUILD_TYPE=Release \ 2.32 + -DOPENSPADES_RESDIR=/usr/share/openspades/Resources \ 2.33 + -DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \ 2.34 + -DOPENSPADES_INSTALL_BINARY=bin \ 2.35 + && 2.36 + make -j1 && 2.37 + make DESTDIR=$install install 2.38 +} 2.39 + 2.40 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.41 +genpkg_rules() 2.42 +{ 2.43 + cp -a $install/* $fs 2.44 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/openspades/stuff/openspades-0.0.12.patch Sun Jul 03 11:21:33 2016 +0300 3.3 @@ -0,0 +1,32 @@ 3.4 +--- a/Sources/Client/Client_Input.cpp 3.5 ++++ b/Sources/Client/Client_Input.cpp 3.6 +@@ -38,6 +38,7 @@ 3.7 + 3.8 + #include "NetClient.h" 3.9 + 3.10 ++using namespace std; 3.11 + 3.12 + SPADES_SETTING(cg_mouseSensitivity, "1"); 3.13 + SPADES_SETTING(cg_zoomedMouseSensScale, "0.6"); 3.14 +--- a/Sources/Client/Corpse.cpp 3.15 ++++ b/Sources/Client/Corpse.cpp 3.16 +@@ -27,6 +27,8 @@ 3.17 + #include "../Core/Debug.h" 3.18 + #include "../Core/Settings.h" 3.19 + 3.20 ++using namespace std; 3.21 ++ 3.22 + SPADES_SETTING(r_corpseLineCollision, "1"); 3.23 + 3.24 + namespace spades { 3.25 +--- a/Sources/Draw/SWMapRenderer.cpp 3.26 ++++ b/Sources/Draw/SWMapRenderer.cpp 3.27 +@@ -31,6 +31,8 @@ 3.28 + #include "SWUtils.h" 3.29 + #include <cstdint> 3.30 + 3.31 ++using namespace std; 3.32 ++ 3.33 + SPADES_SETTING(r_swUndersampling, "0"); 3.34 + 3.35 + namespace spades {