From 79c64ae2e01b949c6d6e81eb9f84f10fb61a2894 Mon Sep 17 00:00:00 2001 From: "Chris D. Faulhaber" Date: Fri, 18 Feb 2000 03:36:33 +0000 Subject: * Support get-wraster-flags * Remove redundant *_DEPENDS * Add example preference file PR: 16783 Submitted by: KATO Tsuguru --- games/wmtimebomb/Makefile | 16 +++++++--------- games/wmtimebomb/files/patch-aa | 12 ++++++------ games/wmtimebomb/pkg-descr | 6 ++++++ games/wmtimebomb/pkg-plist | 2 ++ 4 files changed, 21 insertions(+), 15 deletions(-) (limited to 'games') 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 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