From b03a3ff2a8e6b825603fc9f78965beb05c116de3 Mon Sep 17 00:00:00 2001 From: brad Date: Sat, 2 Mar 2002 22:54:05 +0000 Subject: [PATCH] upgrade to dopewars 1.5.3 - adds Gtk+ based GUI version --- games/dopewars/Makefile | 36 ++++++++++---------- games/dopewars/distinfo | 3 ++ games/dopewars/files/md5 | 3 -- games/dopewars/patches/patch-Makefile.in | 11 ------ games/dopewars/patches/patch-doc_Makefile_in | 12 +++++++ games/dopewars/patches/patch-dopeos.h | 10 ------ games/dopewars/pkg/DEINSTALL | 25 +++++++------- games/dopewars/pkg/INSTALL | 19 +++++------ games/dopewars/pkg/PLIST | 12 ++++--- 9 files changed, 60 insertions(+), 71 deletions(-) create mode 100644 games/dopewars/distinfo delete mode 100644 games/dopewars/files/md5 delete mode 100644 games/dopewars/patches/patch-Makefile.in create mode 100644 games/dopewars/patches/patch-doc_Makefile_in delete mode 100644 games/dopewars/patches/patch-dopeos.h diff --git a/games/dopewars/Makefile b/games/dopewars/Makefile index c59111c2411..0989335c587 100644 --- a/games/dopewars/Makefile +++ b/games/dopewars/Makefile @@ -1,14 +1,16 @@ -# $OpenBSD: Makefile,v 1.16 2001/05/06 01:06:13 lebel Exp $ +# $OpenBSD: Makefile,v 1.17 2002/03/02 22:54:05 brad Exp $ COMMENT= "game where you deal drugs on the streets of NY" -DISTNAME= dopewars-1.4.8 +DISTNAME= dopewars-1.5.3 CATEGORIES= games -NEED_VERSION= 1.402 -MASTER_SITES= http://www.evansville.net/~goatpop/ \ - http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/ +NEED_VERSION= 1.500 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dopewars -HOMEPAGE= http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/ +HOMEPAGE= http://dopewars.sourceforge.net/ + +LIB_DEPENDS= gtk.1.2::x11/gtk+ MAINTAINER= Brad Smith @@ -17,21 +19,19 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes +MODULES+= gettext + USE_GMAKE= Yes CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --enable-nls \ + --enable-strict \ + --datadir="/var/games" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" -DOCS= index.html installation.html clientplay.html server.html \ - credits.html aiplayer.html configfile.html commandline.html \ - developer.html metaserver.html servercommands.html LICENCE \ - README - -do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dopewars +post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars - ${INSTALL_PROGRAM} ${WRKSRC}/dopewars ${PREFIX}/bin - @chown root.games ${PREFIX}/bin/dopewars - @chmod 2755 ${PREFIX}/bin/dopewars - ${INSTALL_DATA} ${WRKSRC}/example-cfg ${PREFIX}/share/examples/dopewars/dopewars-cfg.sample - cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/dopewars + ${INSTALL_DATA} ${WRKSRC}/doc/example-cfg \ + ${PREFIX}/share/examples/dopewars/dopewars.cfg.sample .include diff --git a/games/dopewars/distinfo b/games/dopewars/distinfo new file mode 100644 index 00000000000..12642045efe --- /dev/null +++ b/games/dopewars/distinfo @@ -0,0 +1,3 @@ +MD5 (dopewars-1.5.3.tar.gz) = 8022a5ec7ff20330dd6526671a505022 +RMD160 (dopewars-1.5.3.tar.gz) = a77d27056d8e46b059e3b459a38e9884ba9e36d4 +SHA1 (dopewars-1.5.3.tar.gz) = 4e079472f4366b5921deb98ac11dbfb5533e48fe diff --git a/games/dopewars/files/md5 b/games/dopewars/files/md5 deleted file mode 100644 index 1a9933e58d4..00000000000 --- a/games/dopewars/files/md5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (dopewars-1.4.8.tar.gz) = c88fa5475e05d2162661b5f3200b21e9 -RMD160 (dopewars-1.4.8.tar.gz) = df3b7b3c86e073e9cee51ab6c39a0b40dafa77fb -SHA1 (dopewars-1.4.8.tar.gz) = fc4bc928e2e1c77fc0523343bd8068f0685aa52e diff --git a/games/dopewars/patches/patch-Makefile.in b/games/dopewars/patches/patch-Makefile.in deleted file mode 100644 index e4528108cfb..00000000000 --- a/games/dopewars/patches/patch-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.in.orig Fri Mar 17 18:03:25 2000 -+++ Makefile.in Fri Mar 17 18:08:31 2000 -@@ -328,7 +328,7 @@ - install-data: install-data-am - - install-am: all-am -- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -+ @$(MAKE) $(AM_MAKEFLAGS) install-binPROGRAMS - install: install-am - uninstall-am: uninstall-binPROGRAMS - uninstall: uninstall-am diff --git a/games/dopewars/patches/patch-doc_Makefile_in b/games/dopewars/patches/patch-doc_Makefile_in new file mode 100644 index 00000000000..d420201f1a1 --- /dev/null +++ b/games/dopewars/patches/patch-doc_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-doc_Makefile_in,v 1.1 2002/03/02 22:54:05 brad Exp $ +--- doc/Makefile.in.orig Sat Mar 2 14:07:12 2002 ++++ doc/Makefile.in Sat Mar 2 14:07:35 2002 +@@ -95,7 +95,7 @@ VERSION = @VERSION@ + WNDRES = @WNDRES@ + localedir = @localedir@ + +-DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/ ++DOCPATH = ${DESTDIR}${prefix}/share/doc/${PACKAGE} + DOCS = aiplayer.html configfile.html index.html i18n.html server.html \ + clientplay.html credits.html installation.html \ + servercommands.html commandline.html developer.html \ diff --git a/games/dopewars/patches/patch-dopeos.h b/games/dopewars/patches/patch-dopeos.h deleted file mode 100644 index b906bfe7ae1..00000000000 --- a/games/dopewars/patches/patch-dopeos.h +++ /dev/null @@ -1,10 +0,0 @@ ---- dopeos.h.orig Sun Jul 9 16:07:11 2000 -+++ dopeos.h Sun Jul 9 21:16:26 2000 -@@ -126,6 +126,7 @@ - #else /* Definitions for Unix build */ - - #if NETWORKING -+#include - #include - #include - #include diff --git a/games/dopewars/pkg/DEINSTALL b/games/dopewars/pkg/DEINSTALL index 319320d1188..a4d285f0b77 100644 --- a/games/dopewars/pkg/DEINSTALL +++ b/games/dopewars/pkg/DEINSTALL @@ -1,25 +1,24 @@ #!/bin/sh -# $OpenBSD: DEINSTALL,v 1.3 2000/08/07 03:54:16 brad Exp $ +# $OpenBSD: DEINSTALL,v 1.4 2002/03/02 22:54:05 brad Exp $ # # dopewars de-installation -set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin PREFIX=${PKG_PREFIX:-/usr/local} SCORE_FILE=/var/games/dopewars.sco if [ -f $SCORE_FILE ]; then - echo - echo "+---------------" - echo "| To completely deinstall the $1 package you need to perform" - echo "| this step as root:" - echo "|" - echo "| rm -f $SCORE_FILE" - echo "|" - echo "| Do not do this if you plan on re-installing $1" - echo "| at some future time." - echo "+---------------" - echo + echo + echo "+---------------" + echo "| To completely deinstall the $1 package you need to perform" + echo "| this step as root:" + echo "|" + echo "| rm -f $SCORE_FILE" + echo "|" + echo "| Do not do this if you plan on re-installing $1" + echo "| at some future time." + echo "+---------------" + echo fi exit 0 diff --git a/games/dopewars/pkg/INSTALL b/games/dopewars/pkg/INSTALL index 62812697e5a..49ba2af5157 100644 --- a/games/dopewars/pkg/INSTALL +++ b/games/dopewars/pkg/INSTALL @@ -1,22 +1,19 @@ #!/bin/sh -# $OpenBSD: INSTALL,v 1.2 2000/08/07 03:54:16 brad Exp $ +# $OpenBSD: INSTALL,v 1.3 2002/03/02 22:54:05 brad Exp $ # # Pre/post-installation setup of dopewars -# exit on errors, use a sane path and install prefix -# -set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin PREFIX=${PKG_PREFIX:-/usr/local} SCORE_FILE=/var/games/dopewars.sco -# Function: install a blank file to be used as the dopewars score file -# -do_install() +do_install_scorefile() { - touch $SCORE_FILE - chown root.games $SCORE_FILE - chmod 664 $SCORE_FILE + touch $SCORE_FILE + chown root.games $SCORE_FILE + chmod 664 $SCORE_FILE + $PREFIX/bin/dopewars -C $SCORE_FILE + rm -f $SCORE_FILE.bak } # verify proper execution @@ -34,7 +31,7 @@ case $2 in ;; POST-INSTALL) if [ ! -f $SCORE_FILE ]; then - do_install $1 + do_install_scorefile $1 fi ;; *) diff --git a/games/dopewars/pkg/PLIST b/games/dopewars/pkg/PLIST index 5f595695b66..5f10388a555 100644 --- a/games/dopewars/pkg/PLIST +++ b/games/dopewars/pkg/PLIST @@ -1,18 +1,20 @@ -@comment $OpenBSD: PLIST,v 1.9 2000/08/07 03:54:16 brad Exp $ +@comment $OpenBSD: PLIST,v 1.10 2002/03/02 22:54:05 brad Exp $ bin/dopewars -share/doc/dopewars/LICENCE -share/doc/dopewars/README +man/man6/dopewars.6 share/doc/dopewars/aiplayer.html share/doc/dopewars/clientplay.html share/doc/dopewars/commandline.html share/doc/dopewars/configfile.html share/doc/dopewars/credits.html share/doc/dopewars/developer.html +share/doc/dopewars/i18n.html share/doc/dopewars/index.html share/doc/dopewars/installation.html share/doc/dopewars/metaserver.html +share/doc/dopewars/protocol.html share/doc/dopewars/server.html share/doc/dopewars/servercommands.html -share/examples/dopewars/dopewars-cfg.sample -@dirrm share/doc/dopewars +share/doc/dopewars/windows.html +share/examples/dopewars/dopewars.cfg.sample @dirrm share/examples/dopewars +@dirrm share/doc/dopewars