mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-04 03:42:56 +02:00
New package: liquidwar-5.6.4
This commit is contained in:
parent
2794c4393c
commit
cef1f9ec90
3 changed files with 50 additions and 0 deletions
18
srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch
Normal file
18
srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200
|
||||||
|
+++ src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200
|
||||||
|
@@ -100,12 +100,12 @@
|
||||||
|
|
||||||
|
data->privacy = privacy;
|
||||||
|
data->log = log;
|
||||||
|
- strncpy (data->metaserver, metaserver, URL_SIZE);
|
||||||
|
+ strncpy (data->metaserver, metaserver, sizeof(data->metaserver));
|
||||||
|
data->port = port;
|
||||||
|
data->busy_players = busy_players;
|
||||||
|
data->max_players = max_players;
|
||||||
|
- strncpy (data->password, password, URL_SIZE);
|
||||||
|
- strncpy (data->comment, comment, URL_SIZE);
|
||||||
|
+ strncpy (data->password, password, sizeof(data->password));
|
||||||
|
+ strncpy (data->comment, comment, sizeof(data->comment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------*/
|
11
srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch
Normal file
11
srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/Makefile.in.old 2011-06-22 07:45:05.756127862 +0200
|
||||||
|
+++ src/Makefile.in 2011-06-22 07:46:00.681613957 +0200
|
||||||
|
@@ -223,7 +223,7 @@
|
||||||
|
EXTERN_LIBS = `allegro-config --static $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY)
|
||||||
|
else
|
||||||
|
LINK_OPTIONS =
|
||||||
|
- EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY)
|
||||||
|
+ EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) -lm
|
||||||
|
endif
|
||||||
|
|
||||||
|
CONFIG_OPTIONS = \
|
21
srcpkgs/liquidwar/template
Normal file
21
srcpkgs/liquidwar/template
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Template file for 'liquidwar'
|
||||||
|
pkgname=liquidwar
|
||||||
|
version=5.6.4
|
||||||
|
revision=1
|
||||||
|
build_style="gnu-configure"
|
||||||
|
make_build_args="GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar"
|
||||||
|
make_install_args="GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar"
|
||||||
|
make_install_target="install_nolink"
|
||||||
|
maintainer="Dominik Honnef <dominik@honnef.co>"
|
||||||
|
hostmakedepends="python"
|
||||||
|
makedepends="allegro4-devel"
|
||||||
|
license="GPL"
|
||||||
|
homepage="http://www.ufoot.org/liquidwar"
|
||||||
|
short_desc="A unique multiplayer wargame"
|
||||||
|
distfiles="http://www.ufoot.org/download/${pkgname}/v5/${version}/${pkgname}-${version}.tar.gz"
|
||||||
|
checksum=32c52e4588e8e723f907ef43703b4ddf009e8ff1f29555c09bcc1f70bf5b93a3
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
# The assembly only exists for 32 bit platforms
|
||||||
|
[ "$XBPS_TARGET_MACHINE" == "x86_64" ] && configure_args+=" --disable-asm"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue