summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-02-18 03:36:33 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-02-18 03:36:33 +0000
commit79c64ae2e01b949c6d6e81eb9f84f10fb61a2894 (patch)
tree8c2a68710354ea753359e3675a53e4c33673f81f /games
parentUpdate port to 0.6.7 (diff)
* Support get-wraster-flags
* Remove redundant *_DEPENDS * Add example preference file PR: 16783 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=25967
Diffstat (limited to 'games')
-rw-r--r--games/wmtimebomb/Makefile16
-rw-r--r--games/wmtimebomb/files/patch-aa12
-rw-r--r--games/wmtimebomb/pkg-descr6
-rw-r--r--games/wmtimebomb/pkg-plist2
4 files changed, 21 insertions, 15 deletions
diff --git a/games/wmtimebomb/Makefile b/games/wmtimebomb/Makefile
index db08fb86a41e..a8a6b3e46739 100644
--- a/games/wmtimebomb/Makefile
+++ b/games/wmtimebomb/Makefile
@@ -12,20 +12,18 @@ MASTER_SITES= ftp://ftp.netmug.org/pub/FreeBSD/distfiles/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
- PropList.2:${PORTSDIR}/devel/libPropList \
- tiff.4:${PORTSDIR}/graphics/tiff \
- jpeg.9:${PORTSDIR}/graphics/jpeg \
- ungif.5:${PORTSDIR}/graphics/libungif \
- png.3:${PORTSDIR}/graphics/png
-BUILD_DEPENDS= ${X11BASE}/lib/libWMaker.a:${PORTSDIR}/x11-wm/windowmaker
+LIB_DEPENDS= PropList.2:${PORTSDIR}/devel/libPropList \
+ wraster.3:${PORTSDIR}/x11-wm/windowmaker
WRKSRC= ${WRKDIR}/wmtimebomb.app
USE_IMAKE= yes
NO_INSTALL_MANPAGES= yes
post-patch:
- ${PERL} -pi -e 's,\@LOCALBASE\@,${LOCALBASE},g' ${WRKSRC}/Imakefile
- ${PERL} -pi -e 's,\@X11BASE\@,${X11BASE},g' ${WRKSRC}/Imakefile
+ @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Imakefile
+
+post-install:
+ @${MKDIR} ${PREFIX}/lib/X11/wmtimebomb
+ ${INSTALL_DATA} ${WRKSRC}/example.modefile ${PREFIX}/lib/X11/wmtimebomb
.include <bsd.port.mk>
diff --git a/games/wmtimebomb/files/patch-aa b/games/wmtimebomb/files/patch-aa
index 7279fa8bfecc..04ce523d6aa2 100644
--- a/games/wmtimebomb/files/patch-aa
+++ b/games/wmtimebomb/files/patch-aa
@@ -1,14 +1,14 @@
---- Imakefile.orig Thu Apr 8 09:13:44 1999
-+++ Imakefile Thu Apr 8 09:14:16 1999
+--- Imakefile.orig Mon Nov 16 21:40:24 1998
++++ Imakefile Thu Feb 17 23:02:07 2000
@@ -1,7 +1,9 @@
--XPMLIB = -L/usr/X11R6/lib -lXpm -lm -ljpeg -lpng -lz -ltiff -lgif
+-XPMLIB = -L/usr/X11R6/lib -lXpm -lm -ljpeg -lpng -lz -ltiff -lungif
-WMAKER = -L/usr/local/lib -lWMaker -lWINGs -lwraster -lPropList
-+XPMLIB = -L@X11BASE@/lib -lXpm -lm -ljpeg -lpng -lz -ltiff -lungif
-+WMAKER = -L@LOCALBASE@/lib -lWMaker -lWINGs -lwraster -lPropList
++XPMLIB = `get-wraster-flags --libs`
++WMAKER = -lWMaker -lWINGs -lPropList -L%%LOCALBASE%%/lib
LOCAL_LIBRARIES = $(WMAKER) $(XPMLIB) $(XLIB)
+
-+EXTRA_INCLUDES= -I@LOCALBASE@/include
++EXTRA_INCLUDES= `get-wraster-flags --cflags` -I%%LOCALBASE%%/include
SRCS = timebomb.c
OBJS = timebomb.o
diff --git a/games/wmtimebomb/pkg-descr b/games/wmtimebomb/pkg-descr
index d2b5819daa12..db776c3df34d 100644
--- a/games/wmtimebomb/pkg-descr
+++ b/games/wmtimebomb/pkg-descr
@@ -1,6 +1,12 @@
Maliwan's Time Bomber
Mine sweeper like game for WindowMaker.
+Install:
+cd to your home directory and
+mkdir .wmtimebomb
+and copy the file example.modefile in /usr/X11R6/lib/X11/wmtimebomb
+(as usual) into the ".wmtimebomb" directory and rename it to "modefile".
+
Usage: wmtimebomb -t <time> -b <bombs> -x <width> -y <height> -s -c -h
-s will start timebomb with clock in its title
-c will start timebomb with counter in its title
diff --git a/games/wmtimebomb/pkg-plist b/games/wmtimebomb/pkg-plist
index 8d1d06e23da3..e01e1d95d5e6 100644
--- a/games/wmtimebomb/pkg-plist
+++ b/games/wmtimebomb/pkg-plist
@@ -1 +1,3 @@
bin/wmtimebomb
+lib/X11/wmtimebomb/example.modefile
+@dirrm lib/X11/wmtimebomb