summaryrefslogtreecommitdiff
path: root/games/warzone2100
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2009-02-15 16:05:43 +0000
committerjmcneill <jmcneill>2009-02-15 16:05:43 +0000
commit32d814bca7845032b2c5966cfbb4bfb512c3ef76 (patch)
tree3a782bbd4bbcc43c6500ea48b59a902217daaa7f /games/warzone2100
parentadf45657aa8a40bd2ffe7af41ff3033b468cffc7 (diff)
downloadpkgsrc-32d814bca7845032b2c5966cfbb4bfb512c3ef76.tar.gz
Import warzone2100 version 2.1.1.
In Warzone 2100 you command the forces of "The Project" in a battle to rebuild the world after mankind has almost been destroyed by nuclear missiles. The game offers campaign, tutorial, multi-player and single-player skirmish modes. An extensive tech tree with over 400 different technologies, combined with the unit design system, allows for a wide variety of possible units and tactics. Warzone 2100 was created by Pumpkin Studios, published by Eidos Interactive and is currently developed by the Warzone 2100 Resurrection Project.
Diffstat (limited to 'games/warzone2100')
-rw-r--r--games/warzone2100/DESCR7
-rw-r--r--games/warzone2100/Makefile46
-rw-r--r--games/warzone2100/PLIST63
-rw-r--r--games/warzone2100/distinfo9
-rw-r--r--games/warzone2100/files/msgfmtstrip18
-rw-r--r--games/warzone2100/patches/patch-aa52
-rw-r--r--games/warzone2100/patches/patch-ab17
-rw-r--r--games/warzone2100/patches/patch-ac13
-rw-r--r--games/warzone2100/patches/patch-ad22
9 files changed, 247 insertions, 0 deletions
diff --git a/games/warzone2100/DESCR b/games/warzone2100/DESCR
new file mode 100644
index 00000000000..f490c0c2ecc
--- /dev/null
+++ b/games/warzone2100/DESCR
@@ -0,0 +1,7 @@
+In Warzone 2100 you command the forces of "The Project" in a battle to rebuild
+the world after mankind has almost been destroyed by nuclear missiles. The game
+offers campaign, tutorial, multi-player and single-player skirmish modes. An
+extensive tech tree with over 400 different technologies, combined with the
+unit design system, allows for a wide variety of possible units and tactics.
+Warzone 2100 was created by Pumpkin Studios, published by Eidos Interactive and
+is currently developed by the Warzone 2100 Resurrection Project.
diff --git a/games/warzone2100/Makefile b/games/warzone2100/Makefile
new file mode 100644
index 00000000000..359b1a19e98
--- /dev/null
+++ b/games/warzone2100/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+#
+
+DISTNAME= warzone2100-2.1.1
+CATEGORIES= games
+MASTER_SITES= http://download.gna.org/warzone/releases/2.1/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://wz2100.net/
+COMMENT= Real-time strategy and real-time tactics hybrid computer game
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_DIRS+= xdg-1.4
+USE_TOOLS+= pkg-config bison msgfmt intltool gmake gsed gawk
+TOOLS_PLATFORM.gsed= #empty, override nonsense in tools
+
+CONFIGURE_ARGS+= --with-distributor=pkgsrc
+
+CHECK_WRKREF_SKIP= share/warzone2100/mods/global/aivolution.wz
+
+post-patch:
+ for f in ${WRKSRC}/po/*.po; do \
+ mv $$f $$f.original ; \
+ ${AWK} -f ${FILESDIR}/msgfmtstrip $$f.original > $$f ; \
+ done
+
+DEPENDS+= dejavu-ttf-[0-9]*:../../fonts/dejavu-ttf
+
+.include "../../audio/openal/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/physfs/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/quesoglc/buildlink3.mk"
+.include "../../net/SDL_net/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/warzone2100/PLIST b/games/warzone2100/PLIST
new file mode 100644
index 00000000000..3ce8a022610
--- /dev/null
+++ b/games/warzone2100/PLIST
@@ -0,0 +1,63 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+bin/warzone2100
+share/applications/warzone2100.desktop
+share/doc/warzone2100/AUTHORS
+share/doc/warzone2100/COPYING
+share/doc/warzone2100/COPYING.README
+share/doc/warzone2100/ChangeLog
+share/doc/warzone2100/Readme.de
+share/doc/warzone2100/Readme.de.xhtml
+share/doc/warzone2100/Readme.en
+share/doc/warzone2100/Readme.en.xhtml
+share/doc/warzone2100/ScriptingManual.xhtml
+share/doc/warzone2100/styles/readme.print.css
+share/doc/warzone2100/styles/readme.screen.css
+share/doc/warzone2100/styles/scriptingmanual.css
+share/icons/warzone2100.png
+share/locale/cs/LC_MESSAGES/warzone2100.mo
+share/locale/da/LC_MESSAGES/warzone2100.mo
+share/locale/de/LC_MESSAGES/warzone2100.mo
+share/locale/en_GB/LC_MESSAGES/warzone2100.mo
+share/locale/es/LC_MESSAGES/warzone2100.mo
+share/locale/eu/LC_MESSAGES/warzone2100.mo
+share/locale/fi/LC_MESSAGES/warzone2100.mo
+share/locale/fr/LC_MESSAGES/warzone2100.mo
+share/locale/fy/LC_MESSAGES/warzone2100.mo
+share/locale/ga/LC_MESSAGES/warzone2100.mo
+share/locale/it/LC_MESSAGES/warzone2100.mo
+share/locale/la/LC_MESSAGES/warzone2100.mo
+share/locale/lt/LC_MESSAGES/warzone2100.mo
+share/locale/lv/LC_MESSAGES/warzone2100.mo
+share/locale/nb/LC_MESSAGES/warzone2100.mo
+share/locale/nl/LC_MESSAGES/warzone2100.mo
+share/locale/nn/LC_MESSAGES/warzone2100.mo
+share/locale/pl/LC_MESSAGES/warzone2100.mo
+share/locale/pt/LC_MESSAGES/warzone2100.mo
+share/locale/pt_BR/LC_MESSAGES/warzone2100.mo
+share/locale/ro/LC_MESSAGES/warzone2100.mo
+share/locale/ru/LC_MESSAGES/warzone2100.mo
+share/locale/sl/LC_MESSAGES/warzone2100.mo
+share/locale/sv/LC_MESSAGES/warzone2100.mo
+share/locale/sv_SE/LC_MESSAGES/warzone2100.mo
+share/locale/tr/LC_MESSAGES/warzone2100.mo
+share/locale/uz/LC_MESSAGES/warzone2100.mo
+share/locale/zh_CN/LC_MESSAGES/warzone2100.mo
+share/warzone2100/mods/global/aivolution.wz
+share/warzone2100/mods/global/autoload/music/music/menu.ogg
+share/warzone2100/mods/global/autoload/music/music/music.wpl
+share/warzone2100/mods/global/autoload/music/music/track1.ogg
+share/warzone2100/mods/global/autoload/music/music/track2.ogg
+share/warzone2100/mods/global/grim.wz
+share/warzone2100/mods/global/newst_tiles.wz
+share/warzone2100/mods/multiplay/ntw.wz
+share/warzone2100/mp.wz
+share/warzone2100/warzone.wz
+@dirrm share/warzone2100/mods/multiplay
+@dirrm share/warzone2100/mods/global/autoload/music/music
+@dirrm share/warzone2100/mods/global/autoload/music
+@dirrm share/warzone2100/mods/global/autoload
+@dirrm share/warzone2100/mods/global
+@dirrm share/warzone2100/mods
+@dirrm share/warzone2100
+@dirrm share/doc/warzone2100/styles
+@dirrm share/doc/warzone2100
diff --git a/games/warzone2100/distinfo b/games/warzone2100/distinfo
new file mode 100644
index 00000000000..a31ee1e8654
--- /dev/null
+++ b/games/warzone2100/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+SHA1 (warzone2100-2.1.1.tar.bz2) = 5f0cb41b283ec709cffa8e00c4c1fda8fc9a63d7
+RMD160 (warzone2100-2.1.1.tar.bz2) = 4eca8c00c917061e93d4c70db07b698a123ce37f
+Size (warzone2100-2.1.1.tar.bz2) = 44839794 bytes
+SHA1 (patch-aa) = 95c066ff4340ba6e4c021846541b53eb4cad0704
+SHA1 (patch-ab) = e82a085ddf27a5443e011ada57e78cca1ab66c79
+SHA1 (patch-ac) = b15234c26cbbeffe58e623feb49e9930bd3846d0
+SHA1 (patch-ad) = 1afe3527241d142e1af6c5e432a64324675d74f3
diff --git a/games/warzone2100/files/msgfmtstrip b/games/warzone2100/files/msgfmtstrip
new file mode 100644
index 00000000000..74d0f5640a0
--- /dev/null
+++ b/games/warzone2100/files/msgfmtstrip
@@ -0,0 +1,18 @@
+# $Id: msgfmtstrip,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+# Simple awk script to strip out .po entries with "msgctxt" or "#~|", so the
+# resultant file can be handled by the msgfmt 0.14.4 in NetBSD 4.0
+{
+if (/^$/) { entry_end(); }
+else if ($1 == "msgctxt" || $2 == "msgctxt") { skip = 1; }
+else if ($1 == "#~|") { skip = 1; }
+else { entry = entry $0 "\n" }
+}
+
+END { entry_end(); }
+
+function entry_end() {
+ if (!skip)
+ print entry;
+ entry = "";
+ skip = 0;
+}
diff --git a/games/warzone2100/patches/patch-aa b/games/warzone2100/patches/patch-aa
new file mode 100644
index 00000000000..66b65361cd3
--- /dev/null
+++ b/games/warzone2100/patches/patch-aa
@@ -0,0 +1,52 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+--- configure.orig 2009-01-11 16:51:50.000000000 -0500
++++ configure
+@@ -4415,13 +4415,6 @@ fi
+ done
+ test -n "$YACC" || YACC="yacc"
+
+-if test "x$YACC" != "xbison -y" ; then
+- { { echo "$as_me:$LINENO: error: Bison is not installed" >&5
+-echo "$as_me: error: Bison is not installed" >&2;}
+- { (exit 1); exit 1; }; }
+-fi
+-
+-
+ for ac_prog in bison; do
+ ac_prog_version_check=`$ac_prog --version | head -n 1 | sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'`
+ ac_prog_major_check=`echo $ac_prog_version_check | cut -d. -f1`
+@@ -4670,12 +4663,6 @@ fi
+ rm -f conftest.l $LEX_OUTPUT_ROOT.c
+
+ fi
+-if test "x$LEX" != "xflex" ; then
+- { { echo "$as_me:$LINENO: error: Flex is not installed" >&5
+-echo "$as_me: error: Flex is not installed" >&2;}
+- { (exit 1); exit 1; }; }
+-fi
+-
+
+ for ac_prog in flex; do
+ ac_prog_version_check=`$ac_prog --version | head -n 1 | sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'`
+@@ -6970,15 +6957,15 @@ _ACEOF
+ [ -z "$ac_prog_minor_check" ] && ac_prog_minor_check=0
+ [ -z "$ac_prog_micro_check" ] && ac_prog_micro_check=0
+
+- ac_prog_min_major_check=`echo 0.15 | cut -d. -f1`
+- ac_prog_min_minor_check=`echo 0.15 | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
+- ac_prog_min_micro_check=`echo 0.15 | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
++ ac_prog_min_major_check=`echo 0.14 | cut -d. -f1`
++ ac_prog_min_minor_check=`echo 0.14 | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
++ ac_prog_min_micro_check=`echo 0.14 | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
+ [ -z "$ac_prog_min_minor_check" ] && ac_prog_min_minor_check=0
+ [ -z "$ac_prog_min_micro_check" ] && ac_prog_min_micro_check=0
+
+
+- { echo "$as_me:$LINENO: checking for $ac_prog >= 0.15" >&5
+-echo $ECHO_N "checking for $ac_prog >= 0.15... $ECHO_C" >&6; }
++ { echo "$as_me:$LINENO: checking for $ac_prog >= 0.14" >&5
++echo $ECHO_N "checking for $ac_prog >= 0.14... $ECHO_C" >&6; }
+
+
+ if [ "$ac_prog_major_check" -lt "$ac_prog_min_major_check" ]; then
diff --git a/games/warzone2100/patches/patch-ab b/games/warzone2100/patches/patch-ab
new file mode 100644
index 00000000000..0b5cec6ca44
--- /dev/null
+++ b/games/warzone2100/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+--- lib/framework/wzglobal.h.orig 2008-12-21 13:41:15.000000000 -0500
++++ lib/framework/wzglobal.h
+@@ -522,7 +522,11 @@
+
+ #elif defined(WZ_OS_UNIX)
+ # include <unistd.h>
+-# include <alloca.h>
++# if defined(__linux__)
++# include <alloca.h>
++# else
++# include <stdlib.h>
++# endif
+ #endif /* WZ_OS_* */
+
+
diff --git a/games/warzone2100/patches/patch-ac b/games/warzone2100/patches/patch-ac
new file mode 100644
index 00000000000..9c5ce337013
--- /dev/null
+++ b/games/warzone2100/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+--- lib/exceptionhandler/exceptionhandler.c.orig 2008-12-21 13:41:15.000000000 -0500
++++ lib/exceptionhandler/exceptionhandler.c
+@@ -134,6 +134,8 @@ typedef void(*SigActionHandler)(int, sig
+
+ #ifdef WZ_OS_MAC
+ static struct sigaction oldAction[32];
++#elif defined(_NSIG)
++static struct sigaction oldAction[_NSIG];
+ #else
+ static struct sigaction oldAction[NSIG];
+ #endif
diff --git a/games/warzone2100/patches/patch-ad b/games/warzone2100/patches/patch-ad
new file mode 100644
index 00000000000..13465f4caa7
--- /dev/null
+++ b/games/warzone2100/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
+
+--- lib/framework/strlfuncs.h.orig 2008-12-21 13:41:15.000000000 -0500
++++ lib/framework/strlfuncs.h
+@@ -22,6 +22,9 @@
+ #include <stddef.h>
+ #include <assert.h>
+
++#if defined(__NetBSD__)
++#include <string.h>
++#else
+ /**
+ * A safer variant of \c strncpy and its completely unsafe variant \c strcpy.
+ * Copy src to string dst of size siz. At most siz-1 characters
+@@ -105,6 +108,7 @@ static inline size_t strlcat(char *WZ_DE
+
+ return(dlen + (s - src)); /* count does not include NUL */
+ }
++#endif
+
+ /* Static array versions of common string functions. Safer because one less parameter to screw up.
+ * Can only be used on strings longer than the length of a pointer, because we use this for debugging. */