diff --git a/games/warzone2100/Makefile b/games/warzone2100/Makefile new file mode 100644 index 00000000000..2effe00c027 --- /dev/null +++ b/games/warzone2100/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/07/22 14:57:52 simon Exp $ + +COMMENT= 3d realtime strategy on a future earth + +DISTNAME= warzone2100-2.0.7 +CATEGORIES= games +EXTRACT_SUFX= .tar.bz2 + +HOMEPAGE= http://wz2100.net/ + +MAINTAINER= Simon Bertrang + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= GL GLU SDL X11 Xext c m ogg ossaudio pthread usbhid z + +MASTER_SITES= http://download.gna.org/warzone/releases/2.0/ + +LIB_DEPENDS= SDL_net.>=1::devel/sdl-net \ + physfs.>=1::devel/physfs \ + openal.>=1::audio/openal \ + vorbis.>=5,vorbisfile.>=4::audio/libvorbis \ + mad.>=2::audio/libmad \ + jpeg.>=62::graphics/jpeg \ + png.>=5::graphics/png + +BUILD_DEPENDS= ::devel/bison \ + ::archivers/zip +RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils + +USE_GMAKE= Yes +USE_X11= Yes + +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS+=${CONFIGURE_SHARED} +CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng \ + -I${X11BASE}/include' \ + LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib' \ + LIBS='-pthread -lossaudio' \ + YACC='bison -y' + +.include diff --git a/games/warzone2100/distinfo b/games/warzone2100/distinfo new file mode 100644 index 00000000000..379eff3f45d --- /dev/null +++ b/games/warzone2100/distinfo @@ -0,0 +1,5 @@ +MD5 (warzone2100-2.0.7.tar.bz2) = mDzMZ8/V3zGFxoNsYupyLw== +RMD160 (warzone2100-2.0.7.tar.bz2) = qNSDZmq2YhtLP9jdl/xOlanZxWs= +SHA1 (warzone2100-2.0.7.tar.bz2) = +4W+ejAWvSwAbKxkVTjaOn1wJdE= +SHA256 (warzone2100-2.0.7.tar.bz2) = 5q4rNYTG8YlofL/HejQ5foIQy86rg3ERVcNllOmw+so= +SIZE (warzone2100-2.0.7.tar.bz2) = 19622856 diff --git a/games/warzone2100/patches/patch-Makefile_in b/games/warzone2100/patches/patch-Makefile_in new file mode 100644 index 00000000000..358ec369db7 --- /dev/null +++ b/games/warzone2100/patches/patch-Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/07/22 14:57:52 simon Exp $ +--- Makefile.in.orig Sun Jul 22 00:02:49 2007 ++++ Makefile.in Sun Jul 22 00:03:05 2007 +@@ -199,7 +199,7 @@ target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + SUBDIRS = win32 lib src data icons nsis +-dist_doc_DATA = AUTHORS ChangeLog README COPYING COPYING.README ++dist_doc_DATA = README + ACLOCAL_AMFLAGS = -I m4 + EXTRA_DIST = \ + autogen.sh \ diff --git a/games/warzone2100/patches/patch-configure b/games/warzone2100/patches/patch-configure new file mode 100644 index 00000000000..2f86a4f0e75 --- /dev/null +++ b/games/warzone2100/patches/patch-configure @@ -0,0 +1,30 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2007/07/22 14:57:52 simon Exp $ +--- configure.orig Sat Jun 23 11:20:09 2007 ++++ configure Sat Jul 21 21:20:43 2007 +@@ -6485,7 +6485,7 @@ if test "${ac_cv_lib_GLU_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lGLU $LIBS" ++LIBS="-lGLU -lGL $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -6964,7 +6964,7 @@ if test "${ac_cv_lib_openal_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lopenal $LIBS" ++LIBS="-lopenal -lossaudio $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -7810,7 +7810,7 @@ fi + # add some required C flags here + # -DYY_STATIC is required by flex + # -m32 forces 32-bit compile, since code is not clean enough for 64-bit yet +-WZ_CFLAGS="${WZ_CFLAGS} -m32 -DYY_STATIC -DDATADIR=\\\"${datadir}/${PACKAGE}\\\"" ++WZ_CFLAGS="${WZ_CFLAGS} -DYY_STATIC -DDATADIR=\\\"${datadir}/${PACKAGE}\\\"" + + CPPFLAGS="${CPPFLAGS} -I\$(top_srcdir)" + CFLAGS="${CFLAGS} ${WZ_CFLAGS}" diff --git a/games/warzone2100/pkg/DESCR b/games/warzone2100/pkg/DESCR new file mode 100644 index 00000000000..75055c064f2 --- /dev/null +++ b/games/warzone2100/pkg/DESCR @@ -0,0 +1,5 @@ +Warzone 2100 was an innovative 3D real-time strategy game back in 1999, +and most will agree it didn't enjoy the commercial success it could +have had. The game's source code was liberated on December 6th, +2004, under a GPL license. Soon after that, the Warzone 2100 ReDev +project was formed to take care of its future. diff --git a/games/warzone2100/pkg/PLIST b/games/warzone2100/pkg/PLIST new file mode 100644 index 00000000000..9dabf5664e4 --- /dev/null +++ b/games/warzone2100/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/07/22 14:57:52 simon Exp $ +bin/warzone2100 +share/applications/ +share/applications/warzone2100.desktop +share/doc/warzone2100/ +share/doc/warzone2100/README +share/icons/ +share/icons/warzone2100.png +share/warzone2100/ +share/warzone2100/mp.wz +share/warzone2100/warzone.wz +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database