- update dopewars to 1.5.12

- re-format DESCR

ok simon@
This commit is contained in:
jasper 2007-07-05 17:28:18 +00:00
parent 44c43deee1
commit 9a76dbdf36
14 changed files with 130 additions and 188 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.38 2007/01/04 20:19:53 steven Exp $
# $OpenBSD: Makefile,v 1.39 2007/07/05 17:28:18 jasper Exp $
COMMENT= "game where you deal drugs on the streets of NY"
COMMENT= game where you deal drugs on the streets of NY
DISTNAME= dopewars-1.5.7
PKGNAME= ${DISTNAME}p8
DISTNAME= dopewars-1.5.12
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dopewars/}
@ -20,16 +19,15 @@ MODULES+= gettext
LIB_DEPENDS+= glib-2.0::devel/glib2
USE_GMAKE= Yes
USE_LIBTOOL= Yes
AUTOCONF_VERSION=2.13
CONFIGURE_STYLE= autoconf
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-nls \
--enable-strict \
--disable-esd \
--without-esd \
--disable-gui-server \
--disable-plugins \
--disable-sdl
--disable-sdl \
--localstatedir="/var/games"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"

View File

@ -1,5 +1,5 @@
MD5 (dopewars-1.5.7.tar.gz) = LzFjTzn7pR/7HgKIXFkXfw==
RMD160 (dopewars-1.5.7.tar.gz) = 6DiV0w5WGPO1v5jwB1jsMeYFDVY=
SHA1 (dopewars-1.5.7.tar.gz) = 9wawR/52oO3YTU7fMXJ7Icz3wUg=
SHA256 (dopewars-1.5.7.tar.gz) = CcibzPo9h51q4X+GhQJE5CKKyu3sLzAO5kgxkSw1rTo=
SIZE (dopewars-1.5.7.tar.gz) = 869501
MD5 (dopewars-1.5.12.tar.gz) = 3r90nekFPcL7LnTDeuBiBg==
RMD160 (dopewars-1.5.12.tar.gz) = ZshrzrZ2V6n7LveUSxoGna+riuA=
SHA1 (dopewars-1.5.12.tar.gz) = rUajjiJWgOWRsHju7FY9R7lmhLw=
SHA256 (dopewars-1.5.12.tar.gz) = IwWdzeqWxgcrFI7iHXYjfvNTXlvpCzstgjnRUP7uDBk=
SIZE (dopewars-1.5.12.tar.gz) = 1419725

View File

@ -1,12 +1,12 @@
OpenBSD: patch-Makefile_in,v 1.2 2002/08/27 02:42:36 brad Exp $
--- Makefile.in.orig 2002-06-25 13:08:22.000000000 -0400
+++ Makefile.in 2003-12-23 22:06:53.000000000 -0500
@@ -356,7 +356,7 @@ all-recursive-am: config.h
install-exec-am:
install-exec: install-exec-recursive
$OpenBSD: patch-Makefile_in,v 1.5 2007/07/05 17:28:18 jasper Exp $
--- Makefile.in.orig Wed Dec 20 20:53:11 2006
+++ Makefile.in Wed Dec 20 20:53:22 2006
@@ -652,7 +652,7 @@ info: info-recursive
info-am:
-install-data-am: install-data-local
+install-data-am:
install-data: install-data-recursive
install-am: all-am
install-exec-am:

View File

@ -1,40 +0,0 @@
$OpenBSD: patch-configure_in,v 1.1 2002/08/27 02:42:36 brad Exp $
--- configure.in.orig Tue Jun 25 11:41:11 2002
+++ configure.in Mon Aug 26 20:26:20 2002
@@ -50,6 +50,14 @@ AC_ARG_ENABLE(glib2,
[ --disable-glib2 use GLib/GTK+ 1.x, even if 2.x is found],
[ USE_GLIB2="$enableval" ],[ USE_GLIB2="yes" ])
+AC_ARG_ENABLE(esd,
+[ --disable-esd disable ESD support],
+[ USE_ESD="$enableval" ],[ USE_ESD="yes" ])
+
+AC_ARG_ENABLE(sdl,
+[ --disable-sdl disable SDL support],
+[ USE_SDL="$enableval" ],[ USE_SDL="yes" ])
+
dnl Test for Cygwin environment
AC_CYGWIN
dnl Let the user override this with the --enable-nativewin32 option
@@ -163,7 +171,9 @@ else
dnl Add esound support if available
ESD=no
- AM_PATH_ESD(0.0.20, ESD=yes)
+ if test "$USE_ESD" = "yes"; then
+ AM_PATH_ESD(0.0.20, ESD=yes)
+ fi
if test "$ESD" = "yes"; then
SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS"
SOUND_LIBS="$SOUND_LIBS $ESD_LIBS"
@@ -175,7 +185,9 @@ else
dnl Add SDL_mixer sound support if available
SDL=no
- AM_PATH_SDL(1.0.0, SDL=yes)
+ if test "$USE_SDL" = "yes"; then
+ AM_PATH_SDL(1.0.0, SDL=yes)
+ fi
if test "$SDL" = "yes"; then
headers=no
libs=no

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-doc-help-Makefile_in,v 1.1 2007/07/05 17:28:18 jasper Exp $
--- doc/help/Makefile.in.orig Fri Dec 30 22:29:33 2005
+++ doc/help/Makefile.in Sun Nov 26 00:07:05 2006
@@ -214,7 +214,7 @@ target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
-DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/help
+DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}/help
DOCS = cops.html general.html locations.html sounds.html \
drugs.html guns.html server.html

View File

@ -1,12 +1,12 @@
$OpenBSD: patch-doc_Makefile_in,v 1.3 2003/12/24 04:00:38 brad Exp $
--- doc/Makefile.in.orig 2002-06-25 13:08:25.000000000 -0400
+++ doc/Makefile.in 2003-12-23 21:50:16.000000000 -0500
@@ -122,7 +122,7 @@ WNDRES = @WNDRES@
localedir = @localedir@
plugindir = @plugindir@
$OpenBSD: patch-doc_Makefile_in,v 1.4 2007/07/05 17:28:18 jasper Exp $
--- doc/Makefile.in.orig Fri Dec 30 22:29:33 2005
+++ doc/Makefile.in Sun Nov 26 00:07:05 2006
@@ -228,7 +228,7 @@ target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
-DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/
+DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}
DOCS = aiplayer.html configfile.html index.html i18n.html server.html \
clientplay.html credits.html example-cfg installation.html \
servercommands.html commandline.html developer.html \
+DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}/
DOCS = aiplayer.html configfile.html index.html i18n.html \
server.html clientplay.html credits.html example-cfg \
installation.html servercommands.html commandline.html \

View File

@ -1,23 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.4 2006/11/07 15:14:31 naddy Exp $
--- src/Makefile.in.orig Tue Jun 25 19:08:23 2002
+++ src/Makefile.in Tue Nov 7 16:00:56 2006
@@ -133,7 +133,7 @@ plugindir = @plugindir@
@CURSESPORT_TRUE@CURSESPORTSUBDIR = @CURSESPORT_TRUE@cursesport
SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins
-dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@
+dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GLIB_LIBS@ @GTK_LIBS@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@
dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@
bin_PROGRAMS = dopewars
@@ -144,8 +144,8 @@ dopewars_SOURCES = admin.c admin.h AIPla
$OpenBSD: patch-src_Makefile_in,v 1.5 2007/07/05 17:28:18 jasper Exp $
--- src/Makefile.in.orig Fri Dec 30 22:29:34 2005
+++ src/Makefile.in Thu Jul 5 17:39:19 2007
@@ -265,7 +265,7 @@ dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer
serverside.c serverside.h sound.c sound.h \
tstring.c tstring.h winmain.c winmain.h
-INCLUDES = -I../intl -I${srcdir} -I.. @GTK_CFLAGS@
-DEFS = @DEFS@
-INCLUDES = -I../intl -I${srcdir} -I.. @GLIB_CFLAGS@ @GTK_CFLAGS@
+INCLUDES = -I${srcdir} -I.. @GLIB_CFLAGS@ @GTK_CFLAGS@
+DEFS = @DEFS@ -DSCOREDIR="\"/var/games\""
PIXDIR = ${DESTDIR}${datadir}/pixmaps
DOPEDIR = ${DESTDIR}${bindir}
DOPEBIN = ${DOPEDIR}/dopewars

View File

@ -1,12 +1,11 @@
$OpenBSD: patch-src_curses_client_Makefile_in,v 1.1 2005/02/13 18:31:15 alek Exp $
--- src/curses_client/Makefile.in.orig Sun Feb 13 19:22:58 2005
+++ src/curses_client/Makefile.in Sun Feb 13 19:23:04 2005
@@ -124,7 +124,7 @@ plugindir = @plugindir@
$OpenBSD: patch-src_curses_client_Makefile_in,v 1.2 2007/07/05 17:28:18 jasper Exp $
--- src/curses_client/Makefile.in.orig Fri Dec 30 22:29:34 2005
+++ src/curses_client/Makefile.in Sun Nov 26 00:07:05 2006
@@ -239,6 +239,7 @@ target_vendor = @target_vendor@
noinst_LIBRARIES = libcursesclient.a
libcursesclient_a_SOURCES = curses_client.c curses_client.h
-INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GLIB_CFLAGS@
INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GLIB_CFLAGS@
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../.. @GLIB_CFLAGS@
DEFS = @DEFS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
all: all-am
.SUFFIXES:

View File

@ -1,12 +1,12 @@
$OpenBSD: patch-src_cursesport_Makefile_in,v 1.1 2005/02/13 18:31:15 alek Exp $
--- src/cursesport/Makefile.in.orig Sun Feb 13 19:23:31 2005
+++ src/cursesport/Makefile.in Sun Feb 13 19:23:37 2005
@@ -124,7 +124,7 @@ plugindir = @plugindir@
$OpenBSD: patch-src_cursesport_Makefile_in,v 1.2 2007/07/05 17:28:18 jasper Exp $
--- src/cursesport/Makefile.in.orig Fri Dec 30 22:29:34 2005
+++ src/cursesport/Makefile.in Sun Nov 26 00:07:05 2006
@@ -238,7 +238,7 @@ target_os = @target_os@
target_vendor = @target_vendor@
noinst_LIBRARIES = libcursesport.a
libcursesport_a_SOURCES = cursesport.c cursesport.h
-INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../..
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../..
DEFS = @DEFS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
all: all-am
.SUFFIXES:

View File

@ -1,56 +1,12 @@
$OpenBSD: patch-src_dopewars_c,v 1.2 2006/11/07 15:14:31 naddy Exp $
--- src/dopewars.c.orig Mon Jun 24 19:48:39 2002
+++ src/dopewars.c Tue Nov 7 16:00:20 2006
@@ -2217,8 +2217,7 @@ gchar *GetDocIndex(void)
path = g_strdup_printf("file://%s\\%s", bindir, indexfile);
$OpenBSD: patch-src_dopewars_c,v 1.3 2007/07/05 17:28:18 jasper Exp $
--- src/dopewars.c.orig Wed Dec 20 20:50:21 2006
+++ src/dopewars.c Wed Dec 20 20:52:11 2006
@@ -2356,7 +2356,7 @@ gchar *GetDocRoot(void)
path = g_strdup_printf("file://%s\\", bindir);
g_free(bindir);
#else
- path = g_strdup_printf("file://%s/doc/%s-%s/%s", DATADIR, PACKAGE,
- VERSION, indexfile);
+ path = g_strdup_printf("file://%s/doc/%s/%s", DATADIR, PACKAGE, indexfile);
- path = g_strdup_printf("file://%s/doc/%s-%s/", DPDATADIR, PACKAGE, VERSION);
+ path = g_strdup_printf("file://%s/doc/%s/", DPDATADIR, PACKAGE);
#endif
return path;
}
@@ -2419,7 +2418,7 @@ Drug dealing game based on \"Drug Wars\"
client (GTK+ or Win32)\n\
-t, --text-client force the use of a text-mode client (curses) (by\n\
default, a windowed client is used when possible)\n\
- -C, --convert=FILE convert an \"old format\" score file to the new format\n"), DATADIR);
+ -C, --convert=FILE convert an \"old format\" score file to the new format\n"), SCOREDIR);
PluginHelp();
g_print(_(" -h, --help display this help information\n\
-v, --version output version information and exit\n\n\
@@ -2457,7 +2456,7 @@ Drug dealing game based on \"Drug Wars\"
-h display this help information\n\
-v output version information and exit\n\n\
dopewars is Copyright (C) Ben Webb 1998-2002, and released under the GNU GPL\n\
-Report bugs to the author at ben@bellatrix.pcl.ox.ac.uk\n"), DATADIR);
+Report bugs to the author at ben@bellatrix.pcl.ox.ac.uk\n"), SCOREDIR);
#endif
}
@@ -2574,16 +2573,18 @@ void GeneralStartup(int argc, char *argv
{
gchar *priv_hiscore;
+ ConfigErrors = 0;
+ SetupParameters();
+ HandleCmdLine(argc, argv);
+
/* First, open the hard-coded high score file with possibly
* elevated privileges */
- priv_hiscore = g_strdup_printf("%s/dopewars.sco", DATADIR);
+ priv_hiscore = g_strdup_printf("%s/dopewars.sco", SCOREDIR);
HiScoreFile = g_strdup(priv_hiscore);
- OpenHighScoreFile();
+ if (!WantConvert) {
+ OpenHighScoreFile();
+ }
DropPrivileges();
-
- ConfigErrors = 0;
- SetupParameters();
- HandleCmdLine(argc, argv);
if (!WantVersion && !WantHelp && !AIPlayer && !WantConvert && !WantAdmin) {
/* Open a user-specified high score file with no privileges, if one

View File

@ -1,12 +1,11 @@
$OpenBSD: patch-src_gtkport_Makefile_in,v 1.1 2005/02/13 18:31:15 alek Exp $
--- src/gtkport/Makefile.in.orig Sun Feb 13 19:23:12 2005
+++ src/gtkport/Makefile.in Sun Feb 13 19:23:19 2005
@@ -124,7 +124,7 @@ plugindir = @plugindir@
$OpenBSD: patch-src_gtkport_Makefile_in,v 1.2 2007/07/05 17:28:18 jasper Exp $
--- src/gtkport/Makefile.in.orig Fri Dec 30 22:29:34 2005
+++ src/gtkport/Makefile.in Thu Jul 5 17:39:19 2007
@@ -242,6 +242,7 @@ libgtkport_a_SOURCES = gtkport.c gtkport.h clist.c cli
unicodewrap.c unicodewrap.h
noinst_LIBRARIES = libgtkport.a
libgtkport_a_SOURCES = gtkport.c gtkport.h clist.c clist.h
-INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@
DEFS = @DEFS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@
all: all-am
.SUFFIXES:

View File

@ -1,12 +1,12 @@
$OpenBSD: patch-src_gui_client_Makefile_in,v 1.1 2005/02/13 18:31:15 alek Exp $
--- src/gui_client/Makefile.in.orig Sun Feb 13 19:17:15 2005
+++ src/gui_client/Makefile.in Sun Feb 13 19:18:13 2005
@@ -127,7 +127,7 @@ libguiclient_a_SOURCES = gtk_client.c gt
$OpenBSD: patch-src_gui_client_Makefile_in,v 1.2 2007/07/05 17:28:18 jasper Exp $
--- src/gui_client/Makefile.in.orig Fri Dec 30 22:29:34 2005
+++ src/gui_client/Makefile.in Thu Jul 5 17:39:19 2007
@@ -242,7 +242,7 @@ libguiclient_a_SOURCES = gtk_client.c gtk_client.h \
optdialog.c optdialog.h \
newgamedia.c newgamedia.h dopewars-pill.xpm
-INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@
DEFS = @DEFS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
-INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@
+INCLUDES = -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@
all: all-am
.SUFFIXES:

View File

@ -1,8 +1,7 @@
dopewars is a UNIX rewrite of a game originally based
on "Drug Wars" by John E. Dell. The idea of dopewars
is to deal in drugs on the streets of New York, amassing
a huge fortune and paying off the loan shark, while
avoiding the ever-annoying police. The UNIX rewrite, as
well as featuring a so-called "antique" mode which closely
follows the original, introduces new features such as the
ability to take part in multi-player games.
dopewars is a UNIX rewrite of a game originally based on "Drug Wars" by
John E. Dell. The idea of dopewars is to deal in drugs on the streets of
New York, amassing a huge fortune and paying off the loan shark, while
avoiding the ever-annoying police. The UNIX rewrite, as well as
featuring a so-called "antique" mode which closely follows the original,
introduces new features such as the ability to take part in multi-player
games.

View File

@ -1,9 +1,9 @@
@comment $OpenBSD: PLIST,v 1.16 2004/09/24 10:36:49 espie Exp $
@comment $OpenBSD: PLIST,v 1.17 2007/07/05 17:28:18 jasper Exp $
@mode g+s
@group games
bin/dopewars
@group
@mode
@group
@man man/man6/dopewars.6
share/doc/dopewars/
@comment share/doc/dopewars/LICENCE
@ -11,9 +11,19 @@ share/doc/dopewars/aiplayer.html
share/doc/dopewars/clientplay.html
share/doc/dopewars/commandline.html
share/doc/dopewars/configfile.html
share/doc/dopewars/contribute.html
share/doc/dopewars/credits.html
share/doc/dopewars/developer.html
share/doc/dopewars/example-cfg
share/doc/dopewars/example-igneous
share/doc/dopewars/help/
share/doc/dopewars/help/cops.html
share/doc/dopewars/help/drugs.html
share/doc/dopewars/help/general.html
share/doc/dopewars/help/guns.html
share/doc/dopewars/help/locations.html
share/doc/dopewars/help/server.html
share/doc/dopewars/help/sounds.html
share/doc/dopewars/i18n.html
share/doc/dopewars/index.html
share/doc/dopewars/installation.html
@ -22,16 +32,36 @@ share/doc/dopewars/protocol.html
share/doc/dopewars/server.html
share/doc/dopewars/servercommands.html
share/doc/dopewars/windows.html
share/dopewars/
share/dopewars/bye.wav
share/dopewars/colt.wav
share/dopewars/die.wav
share/dopewars/gun.wav
share/dopewars/jet.wav
share/dopewars/losebitch.wav
share/dopewars/message.wav
share/dopewars/murmur.wav
share/dopewars/punch.wav
share/dopewars/run.wav
share/dopewars/shotdown.wav
share/dopewars/train.wav
share/examples/dopewars/
share/examples/dopewars/dopewars.cfg
share/examples/dopewars/dopewars.sco
@mode 664
@group games
@sample /var/games/dopewars.sco
@group
@mode
@group
share/locale/de/LC_MESSAGES/dopewars.mo
share/locale/es/LC_MESSAGES/dopewars.mo
share/locale/es_ES/
share/locale/es_ES/LC_MESSAGES/
share/locale/es_ES/LC_MESSAGES/dopewars.mo
share/locale/fr/LC_MESSAGES/dopewars.mo
share/locale/fr_CA/
share/locale/fr_CA/LC_MESSAGES/
share/locale/fr_CA/LC_MESSAGES/dopewars.mo
share/locale/nn/LC_MESSAGES/dopewars.mo
share/locale/pl/LC_MESSAGES/dopewars.mo
share/locale/pt_BR/LC_MESSAGES/dopewars.mo