upgrade to dopewars 1.5.3

- adds Gtk+ based GUI version
This commit is contained in:
brad 2002-03-02 22:54:05 +00:00
parent 274bf7f109
commit b03a3ff2a8
9 changed files with 60 additions and 71 deletions

View File

@ -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 <brad@openbsd.org>
@ -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 <bsd.port.mk>

3
games/dopewars/distinfo Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 \

View File

@ -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 <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View File

@ -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

View File

@ -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
;;
*)

View File

@ -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