# HG changeset patch # User Aleksej Bobylev # Date 1467534093 -10800 # Node ID 4c7787db5da2cd51090fce79f20c04d69a1bb183 # Parent c2beb6e63cbe8305331786e914f9df4092112f46 Add openspades diff -r c2beb6e63cbe -r 4c7787db5da2 openspades/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openspades/description.txt Sun Jul 03 11:21:33 2016 +0300 @@ -0,0 +1,12 @@ +Open-source clone of Ace of Spades - free FPS sandbox game + +OpenSpades is a clone of Voxlap Ace of Spades 0.75, which is a free multiplayer +game created by Ben Aksoy. + +Here are some features: + + * Ability to connect to vanilla/pyspades server + * Better performance on some modern computers/netbooks + * Sophisticated graphics + * Fully open source (GPLv3 compliant) + * Cross-platform diff -r c2beb6e63cbe -r 4c7787db5da2 openspades/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openspades/receipt Sun Jul 03 11:21:33 2016 +0300 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="openspades" +VERSION="0.0.12" +CATEGORY="games" +SHORT_DESC="Compatible client of Ace of Spades 0.75" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL3" +WEB_SITE="http://openspades.yvt.jp/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/yvt/openspades/archive/v$VERSION.tar.gz" + +DEPENDS="gcc49-lib-base glew glibc-base libcurl libglu-mesa libsdl2 \ +libsdl2-image libxcb mesa util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 \ +xorg-libXau xorg-libXdmcp xorg-libXext zlib" +BUILD_DEPENDS="gcc49 cmake libsdl2-dev libsdl2-image-dev freealut-dev mesa-dev \ +glew-dev curl-dev imagemagick grep unzip" + +# Rules to configure and make the package. +compile_rules() +{ + patch -p1 -i $stuff/$PACKAGE-$VERSION.patch + export CXX=/usr/bin/i486-slitaz-linux-g++-49 + + mkdir build; cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DOPENSPADES_RESDIR=/usr/share/openspades/Resources \ + -DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources \ + -DOPENSPADES_INSTALL_BINARY=bin \ + && + make -j1 && + make DESTDIR=$install install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} diff -r c2beb6e63cbe -r 4c7787db5da2 openspades/stuff/openspades-0.0.12.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openspades/stuff/openspades-0.0.12.patch Sun Jul 03 11:21:33 2016 +0300 @@ -0,0 +1,32 @@ +--- a/Sources/Client/Client_Input.cpp ++++ b/Sources/Client/Client_Input.cpp +@@ -38,6 +38,7 @@ + + #include "NetClient.h" + ++using namespace std; + + SPADES_SETTING(cg_mouseSensitivity, "1"); + SPADES_SETTING(cg_zoomedMouseSensScale, "0.6"); +--- a/Sources/Client/Corpse.cpp ++++ b/Sources/Client/Corpse.cpp +@@ -27,6 +27,8 @@ + #include "../Core/Debug.h" + #include "../Core/Settings.h" + ++using namespace std; ++ + SPADES_SETTING(r_corpseLineCollision, "1"); + + namespace spades { +--- a/Sources/Draw/SWMapRenderer.cpp ++++ b/Sources/Draw/SWMapRenderer.cpp +@@ -31,6 +31,8 @@ + #include "SWUtils.h" + #include + ++using namespace std; ++ + SPADES_SETTING(r_swUndersampling, "0"); + + namespace spades {