From cef1f9ec9009ad575806def709e74808b0301252 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Tue, 26 Aug 2014 18:31:38 +0200 Subject: [PATCH] New package: liquidwar-5.6.4 --- .../patches/liquidwar-5.6.4-ovflfix.patch | 18 ++++++++++++++++ .../patches/liquidwar-5.6.4-underlink.patch | 11 ++++++++++ srcpkgs/liquidwar/template | 21 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch create mode 100644 srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch create mode 100644 srcpkgs/liquidwar/template diff --git a/srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch b/srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch new file mode 100644 index 00000000000..446385624cf --- /dev/null +++ b/srcpkgs/liquidwar/patches/liquidwar-5.6.4-ovflfix.patch @@ -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)); + } + + /*------------------------------------------------------------------*/ diff --git a/srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch b/srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch new file mode 100644 index 00000000000..2bc53e0cacc --- /dev/null +++ b/srcpkgs/liquidwar/patches/liquidwar-5.6.4-underlink.patch @@ -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 = \ diff --git a/srcpkgs/liquidwar/template b/srcpkgs/liquidwar/template new file mode 100644 index 00000000000..530505894d3 --- /dev/null +++ b/srcpkgs/liquidwar/template @@ -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 " +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" +}