summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorgarbled <garbled>2000-12-13 08:19:20 +0000
committergarbled <garbled>2000-12-13 08:19:20 +0000
commitd70d464e06e52f61294986756064fac808497924 (patch)
treebbc56a8322f443c7aabcc21cc9c240da471798eb /games
parent2559e1622c1069be06c3f96f2fea70462fc3da1d (diff)
downloadpkgsrc-d70d464e06e52f61294986756064fac808497924.tar.gz
This is the client side of the new split client/server crossfire pkg.
Again, too many changes to list.
Diffstat (limited to 'games')
-rw-r--r--games/crossfire-cli/Makefile40
-rw-r--r--games/crossfire-cli/files/md54
-rw-r--r--games/crossfire-cli/files/patch-sum3
-rw-r--r--games/crossfire-cli/patches/patch-aa20
-rw-r--r--games/crossfire-cli/pkg/COMMENT1
-rw-r--r--games/crossfire-cli/pkg/DESCR11
-rw-r--r--games/crossfire-cli/pkg/PLIST39
-rw-r--r--games/crossfire-cli/pkg/deinstall19
-rw-r--r--games/crossfire-cli/pkg/install9
-rwxr-xr-xgames/crossfire-cli/scripts/post-patch14
10 files changed, 160 insertions, 0 deletions
diff --git a/games/crossfire-cli/Makefile b/games/crossfire-cli/Makefile
new file mode 100644
index 00000000000..285be9eab42
--- /dev/null
+++ b/games/crossfire-cli/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/13 08:19:20 garbled Exp $
+#
+
+DISTNAME= crossfire-client-0.95.8
+PKGNAME= crossfire_client-0.95.8
+CATEGORIES= games x11
+MASTER_SITES= ftp://ftp.ifi.uio.no/pub/crossfire/
+DISTFILES= ${CF_SRC} ${CF_SND}
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://crossfire.real-time.com/
+
+DEPENDS+= gtk+>=1.2.4:../../x11/gtk
+DEPENDS+= png>=1.0.3:../../graphics/png
+
+EXTRACT_ONLY= ${CF_SRC}
+
+CF_SRC= crossfire-client-0.95.8.tar.gz
+CF_SND= client-0.95.2-au-sounds.tgz
+
+USE_XPM= yes
+USE_PERL5= yes
+USE_X11= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+SCRIPTS_ENV+= ${SCRIPTSDIR}
+CONFIGURE_ARGS+= --prefix=${LOCALBASE}
+CONFIGURE_ARGS+= --with-includes=-I${LOCALBASE}/include
+CONFIGURE_ARGS+= --with-sound-dir=${LOCALBASE}/share/cfclient/sounds
+
+pre-build:
+ cd ${WRKSRC} && ${MAKE} soundsdef.h
+
+post-install:
+ @${MKDIR} ${LOCALBASE}/share/cfclient
+ cd ${LOCALBASE}/share/cfclient && \
+ ${GZCAT} ${DISTDIR}/${CF_SND} | ${GTAR} xmf -
+ @chown -R root:games ${LOCALBASE}/share/cfclient
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/crossfire-cli/files/md5 b/games/crossfire-cli/files/md5
new file mode 100644
index 00000000000..1a36573017e
--- /dev/null
+++ b/games/crossfire-cli/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/13 08:19:20 garbled Exp $
+
+MD5 (crossfire-client-0.95.8.tar.gz) = 2123f9d30f999f6ef64183890cbf23d0
+MD5 (client-0.95.2-au-sounds.tgz) = 9f5496b93000956014c4541f4b66acba
diff --git a/games/crossfire-cli/files/patch-sum b/games/crossfire-cli/files/patch-sum
new file mode 100644
index 00000000000..6078922c3d8
--- /dev/null
+++ b/games/crossfire-cli/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/13 08:19:20 garbled Exp $
+
+MD5 (patch-aa) = 095c2098fdda89628ef42dc7433c0020
diff --git a/games/crossfire-cli/patches/patch-aa b/games/crossfire-cli/patches/patch-aa
new file mode 100644
index 00000000000..3ccbaf2e055
--- /dev/null
+++ b/games/crossfire-cli/patches/patch-aa
@@ -0,0 +1,20 @@
+--- configure.orig Tue Nov 28 22:52:21 2000
++++ configure Wed Dec 6 08:57:37 2000
+@@ -3283,7 +3283,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpng $LIBS"
++LIBS="-lpng -lz $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 3289 "configure"
+ #include "confdefs.h"
+@@ -3313,7 +3313,7 @@
+ #define $ac_tr_lib 1
+ EOF
+
+- LIBS="-lpng $LIBS"
++ LIBS="-lpng -lz $LIBS"
+
+ else
+ echo "$ac_t""no" 1>&6
diff --git a/games/crossfire-cli/pkg/COMMENT b/games/crossfire-cli/pkg/COMMENT
new file mode 100644
index 00000000000..8d956b055dd
--- /dev/null
+++ b/games/crossfire-cli/pkg/COMMENT
@@ -0,0 +1 @@
+Client for X11 game similar to gauntlet and nethack.
diff --git a/games/crossfire-cli/pkg/DESCR b/games/crossfire-cli/pkg/DESCR
new file mode 100644
index 00000000000..d7ad3086e2a
--- /dev/null
+++ b/games/crossfire-cli/pkg/DESCR
@@ -0,0 +1,11 @@
+WHAT IS CROSSFIRE?
+
+ This is a multiplayer graphical arcade and adventure game made for
+ the X-Windows environment.
+
+ It has certain flavours from other games, especially Gauntlet (TM)
+ and Nethack/Moria.
+
+ Any number of players can move around in their own window, finding
+ and using items and battle monsters. They can choose to cooperate
+ or compete in the same "world".
diff --git a/games/crossfire-cli/pkg/PLIST b/games/crossfire-cli/pkg/PLIST
new file mode 100644
index 00000000000..0fe05ca6631
--- /dev/null
+++ b/games/crossfire-cli/pkg/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/13 08:19:20 garbled Exp $
+bin/gcfclient
+bin/cfclient
+bin/cfsndserv
+man/man1/cfclient.1
+man/man1/gcfclient.1
+share/cfclient/sounds/su-fanf.au
+share/cfclient/sounds/Teeswing.au
+share/cfclient/sounds/chord.au
+share/cfclient/sounds/Missed.au
+share/cfclient/sounds/Creaky-1.au
+share/cfclient/sounds/blip.au
+share/cfclient/sounds/click1.au
+share/cfclient/sounds/click2.au
+share/cfclient/sounds/FloorTom.au
+share/cfclient/sounds/ouch1.au
+share/cfclient/sounds/thru.au
+share/cfclient/sounds/drip.au
+share/cfclient/sounds/squish.au
+share/cfclient/sounds/gong.au
+share/cfclient/sounds/Whoosh.au
+share/cfclient/sounds/Explosion.au
+share/cfclient/sounds/TowerClock.au
+share/cfclient/sounds/boink2.au
+share/cfclient/sounds/MetalCrash.au
+share/cfclient/sounds/Puke.au
+share/cfclient/sounds/swish.au
+share/cfclient/sounds/magic.au
+share/cfclient/sounds/lightning1.au
+share/cfclient/sounds/first_try.au
+share/cfclient/sounds/Tear.au
+share/cfclient/sounds/Missle1.au
+share/cfclient/sounds/sci_fi_gun.au
+share/cfclient/sounds/Gun-5.au
+share/cfclient/sounds/Evil_Laugh.au
+share/cfclient/sounds/bugle_charge.au
+share/cfclient/sounds/README
+@dirrm share/cfclient/sounds
+@dirrm share/cfclient
diff --git a/games/crossfire-cli/pkg/deinstall b/games/crossfire-cli/pkg/deinstall
new file mode 100644
index 00000000000..7e8193476fe
--- /dev/null
+++ b/games/crossfire-cli/pkg/deinstall
@@ -0,0 +1,19 @@
+#!XXXLOCALBASEXXX/bin/perl
+#
+# $NetBSD: deinstall,v 1.1.1.1 2000/12/13 08:19:20 garbled Exp $
+#
+open (FILE,"XXXLOCALBASEXXX/etc/rplay.conf");
+open (OUT,">tmp");
+@data = <DATA>;
+while (<FILE>) {
+ $found=0;
+ foreach $datum (@data) {
+ $found++ if ($datum eq $_);
+ }
+ print OUT "$_" if ($found == 0);
+}
+close(OUT);
+close(FILE);
+system("mv tmp XXXLOCALBASEXXX/etc/rplay.conf");
+system("XXXX11BASEXXX/bin/mkfontdir XXXX11BASEXXX/lib/X11/fonts/misc");
+__END__
diff --git a/games/crossfire-cli/pkg/install b/games/crossfire-cli/pkg/install
new file mode 100644
index 00000000000..a58279686b9
--- /dev/null
+++ b/games/crossfire-cli/pkg/install
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# $NetBSD: install,v 1.1.1.1 2000/12/13 08:19:21 garbled Exp $
+#
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+XXXX11BASEXXX/bin/mkfontdir XXXX11BASEXXX/lib/X11/fonts/misc
+cat >> XXXLOCALBASEXXX/etc/rplay.conf << EOF
diff --git a/games/crossfire-cli/scripts/post-patch b/games/crossfire-cli/scripts/post-patch
new file mode 100755
index 00000000000..49e105f7cce
--- /dev/null
+++ b/games/crossfire-cli/scripts/post-patch
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $NetBSD: post-patch,v 1.1.1.1 2000/12/13 08:19:21 garbled Exp $
+#
+#this script changes all the /usr/local/bin/perl stuff to what it should be.
+
+pl=`which perl | sed 's/\//\\\\\\//g'`
+find ${WRKDIR} -name \*.pl | (
+ while read a; do
+ cp $a tmp
+ sed "s/#! *\/usr\/local\/bin\/perl/#!$pl/" tmp > $a
+ done;
+)
+rm tmp