58 lines
2 KiB
Bash
58 lines
2 KiB
Bash
# Template file for 'openlierox'
|
|
pkgname=openlierox
|
|
version=0.58.rc3
|
|
revision=2
|
|
wrksrc=OpenLieroX
|
|
build_style=cmake
|
|
configure_args="-DSYSTEM_DATA_DIR=/usr/share -DDEBUG=OFF
|
|
-DBREAKPAD=OFF -DLINENOISE=OFF -DHASBFD=OFF -DLIBLUA_BUILTIN=OFF"
|
|
hostmakedepends="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
|
|
}
|
|
}
|