2008-02-23 07:48:17 +11:00
|
|
|
# Description: Fast paced first person shooter game.
|
|
|
|
# URL: http://www.warsow.net/
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
2008-02-23 07:48:17 +11:00
|
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
2008-05-13 13:10:03 +10:00
|
|
|
# Depends on: libjpeg libsdl libvorbis
|
2006-10-30 00:14:57 +01:00
|
|
|
|
|
|
|
name=warsow
|
2008-03-01 13:34:56 +11:00
|
|
|
version=0.42
|
|
|
|
release=1
|
2008-02-23 07:48:17 +11:00
|
|
|
source=(http://www.speltips.org/~web1_mans/files/warsow_${version}_unified.zip
|
2008-02-23 18:44:13 +11:00
|
|
|
http://www.speltips.org/~web1_mans/files/warsow_${version}_sdk.zip \
|
2008-02-23 07:48:17 +11:00
|
|
|
warsow.sh)
|
2006-10-30 00:14:57 +01:00
|
|
|
|
|
|
|
build() {
|
2008-02-23 07:48:17 +11:00
|
|
|
cd warsow_${version}_src
|
|
|
|
|
2006-10-30 00:14:57 +01:00
|
|
|
sed -i source/qcommon/files.c \
|
2008-02-23 07:48:17 +11:00
|
|
|
-e '/fs_basepath = Cvar_Get/s|"\."|"/usr/lib/warsow"|' \
|
|
|
|
-e '/fs_usehomedir = Cvar_Get/s|"0"|"1"|'
|
|
|
|
|
|
|
|
sed -i source/Makefile \
|
|
|
|
-e 's|-I$(X11BASE)/include|-I$(X11BASE)/include/X11|g' \
|
|
|
|
-e '/^all:/s| client openal qf ded cgame game ui irc tv_server| client openal qf cgame game ui irc |'
|
|
|
|
|
|
|
|
make -C source clean
|
|
|
|
|
2006-10-30 00:14:57 +01:00
|
|
|
make -C source \
|
|
|
|
BUILD_SERVER=NO \
|
|
|
|
BUILD_SND_OPENAL=NO \
|
2008-02-23 07:48:17 +11:00
|
|
|
BUILD_TV_SERVER=NO \
|
|
|
|
CLIENT_EXE=warsow \
|
|
|
|
LOCALBASE=/usr \
|
|
|
|
X11BASE=/usr
|
|
|
|
|
|
|
|
install -d $PKG/usr/lib/warsow/libs $PKG/usr/bin/
|
|
|
|
install -m 0755 $SRC/warsow.sh $PKG/usr/bin/warsow
|
2008-03-01 13:34:56 +11:00
|
|
|
install -m 0755 ../warsow_${version}_unified/warsow.i386 $PKG/usr/lib/warsow/
|
2008-02-23 18:44:13 +11:00
|
|
|
mv source/release/basewsw/*.so $PKG/usr/lib/warsow/libs/
|
2008-02-23 07:48:17 +11:00
|
|
|
cp -r source/release/* $PKG/usr/lib/warsow/
|
2008-03-01 13:34:56 +11:00
|
|
|
cp -r ../warsow_${version}_unified/basewsw/*.pk3 $PKG/usr/lib/warsow/basewsw/
|
2008-02-23 07:48:17 +11:00
|
|
|
rm $PKG/usr/lib/warsow/warsow
|
|
|
|
|
|
|
|
cd libsrcs/curl-*/
|
|
|
|
chmod +x configure
|
|
|
|
./configure --enable-ipv6 --disable-static
|
|
|
|
make -C lib
|
|
|
|
install -s -m 0755 lib/.libs/libcurl.so.3.0.0 $PKG/usr/lib/warsow/libs/libcurl.so.3
|
2006-10-30 00:14:57 +01:00
|
|
|
}
|
2008-02-23 07:48:17 +11:00
|
|
|
|