diff --git a/srcpkgs/openlierox-data b/srcpkgs/openlierox-data new file mode 120000 index 00000000000..15b850bddd2 --- /dev/null +++ b/srcpkgs/openlierox-data @@ -0,0 +1 @@ +openlierox \ No newline at end of file diff --git a/srcpkgs/openlierox/patches/fix-curl.patch b/srcpkgs/openlierox/patches/fix-curl.patch new file mode 100644 index 00000000000..8f2484bc5dc --- /dev/null +++ b/srcpkgs/openlierox/patches/fix-curl.patch @@ -0,0 +1,22 @@ +Remove include of obsolete curl header + +--- include/HTTP.h 2010-01-25 21:56:08.000000000 +0100 ++++ include/HTTP.h 2015-11-05 21:33:38.114448143 +0100 +@@ -21,7 +21,6 @@ + + #include + #include +-#include + #include + + #include "Networking.h" +--- src/common/HTTP.cpp 2010-02-10 02:04:41.000000000 +0100 ++++ src/common/HTTP.cpp 2015-11-05 21:33:35.012447919 +0100 +@@ -25,7 +25,6 @@ + #include + #endif + #include +-#include + #include + + #include "LieroX.h" diff --git a/srcpkgs/openlierox/patches/musl-execinfo.patch b/srcpkgs/openlierox/patches/musl-execinfo.patch new file mode 100644 index 00000000000..1103227d2bc --- /dev/null +++ b/srcpkgs/openlierox/patches/musl-execinfo.patch @@ -0,0 +1,13 @@ +In musl libc there is no and backtrace(3) + +--- src/common/Debug.cpp 2010-02-05 19:22:18.000000000 +0100 ++++ src/common/Debug.cpp 2015-11-05 21:38:40.336469931 +0100 +@@ -407,7 +407,7 @@ + // --------------- backtrace stuff start -------------- + + #ifndef HAVE_EXECINFO +-# if defined(__linux__) ++# if defined(__GLIBC__) + # define HAVE_EXECINFO 1 + # elif defined(__DARWIN_VERS_1050) + # define HAVE_EXECINFO 1 diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template new file mode 100644 index 00000000000..319cc8fcea6 --- /dev/null +++ b/srcpkgs/openlierox/template @@ -0,0 +1,58 @@ +# Template file for 'openlierox' +pkgname=openlierox +version=0.58.rc3 +revision=1 +wrksrc=OpenLieroX +build_style=cmake +configure_args="-DSYSTEM_DATA_DIR=/usr/share -DDEBUG=OFF + -DBREAKPAD=OFF -DLINENOISE=OFF -DHASBFD=OFF -DLIBLUA_BUILTIN=OFF" +hostmakedepends="cmake pkg-config python" +makedepends="boost-devel libcurl-devel readline-devel libxml2-devel lua51-devel + gd-devel freealut-devel libopenal-devel libvorbis-devel SDL_image-devel + SDL_mixer-devel libzip-devel" +depends="openlierox-data libGL python" +short_desc="Addictive real-time excessive Worms-clone" +maintainer="Jürgen Buchmüller " +license="GPL-2" +homepage="http://www.openlierox.net/" +distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.bz2" +checksum=9f246887d38c325e597373d9189990c9374c241cb807b4b5777844eceeed65cc + +CXXFLAGS="-Wno-narrowing -Wno-unused-local-typedefs -Wno-unused-but-set-variable" +CXXFLAGS+=" -DBOOST_SIGNALS_NO_DEPRECATION_WARNING" +CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/lua5.1" +CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libxml2" + +pre_configure() { + # For newer boost link to boost_signals and boost_system libs + sed -i CMakeOlxCommon.cmake \ + -e '/SET(LIBS ${LIBS} boost_signals/s;-mt; boost_system;' + case "$XBPS_TARGET_MACHINE" in + arm*) # Disable MMX blitter code for arm* (0.59beta10) + if [ -f src/gusanos/blitters/blitters.h ]; then + sed -i src/gusanos/blitters/blitters.h \ + -e 's;!defined(WIN32);(0) \&\& &;' + fi + ;; + esac +} + +do_install() { + # This package uses cmake yet it lacks an install target + vbin build/bin/openlierox + vman doc/openlierox.6 + vinstall share/OpenLieroX.svg 644 usr/share/pixmaps + vinstall share/openlierox-openlierox.desktop 644 usr/share/applications openlierox.desktop + vmkdir usr/share/OpenLieroX + vcopy share/gamedir/* usr/share/OpenLieroX + find ${DESTDIR}/usr/share/OpenLieroX -type d -exec chmod 755 "{}" \; + find ${DESTDIR}/usr/share/OpenLieroX -type f -exec chmod 644 "{}" \; +} + +openlierox-data_package() { + short_desc+=" - data files" + noarch=yes + pkg_install() { + vmove usr/share/OpenLieroX + } +} diff --git a/srcpkgs/openlierox/update b/srcpkgs/openlierox/update new file mode 100644 index 00000000000..fdb55f617cd --- /dev/null +++ b/srcpkgs/openlierox/update @@ -0,0 +1 @@ +pattern='OpenLieroX_\K[\d]+\.[\d]+(_rc[\d]+)?(?=\.src.tar.bz2)'