New package: openlierox-0.58.rc3
This commit is contained in:
parent
b68f14a058
commit
4a16af17a6
5 changed files with 95 additions and 0 deletions
1
srcpkgs/openlierox-data
Symbolic link
1
srcpkgs/openlierox-data
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
openlierox
|
22
srcpkgs/openlierox/patches/fix-curl.patch
Normal file
22
srcpkgs/openlierox/patches/fix-curl.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Remove include of obsolete curl header <curl/types.h>
|
||||||
|
|
||||||
|
--- 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 <string>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
-#include <curl/types.h>
|
||||||
|
#include <curl/easy.h>
|
||||||
|
|
||||||
|
#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 <stdlib.h>
|
||||||
|
#endif
|
||||||
|
#include <curl/curl.h>
|
||||||
|
-#include <curl/types.h>
|
||||||
|
#include <curl/easy.h>
|
||||||
|
|
||||||
|
#include "LieroX.h"
|
13
srcpkgs/openlierox/patches/musl-execinfo.patch
Normal file
13
srcpkgs/openlierox/patches/musl-execinfo.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
In musl libc there is no <execinfo.h> 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
|
58
srcpkgs/openlierox/template
Normal file
58
srcpkgs/openlierox/template
Normal file
|
@ -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 <pullmoll@t-online.de>"
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/openlierox/update
Normal file
1
srcpkgs/openlierox/update
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pattern='OpenLieroX_\K[\d]+\.[\d]+(_rc[\d]+)?(?=\.src.tar.bz2)'
|
Loading…
Add table
Add a link
Reference in a new issue