diff --git a/games/Makefile b/games/Makefile index a144f23c5dee..778557a00fa6 100644 --- a/games/Makefile +++ b/games/Makefile @@ -305,6 +305,7 @@ SUBDIR += wmeyes SUBDIR += wmfortune SUBDIR += wmminichess + SUBDIR += wmpuzzle SUBDIR += wmshuffle SUBDIR += wmtictactoe SUBDIR += wmtimebomb diff --git a/games/wmpuzzle/Makefile b/games/wmpuzzle/Makefile new file mode 100644 index 000000000000..4f4c57f1dc57 --- /dev/null +++ b/games/wmpuzzle/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: wmpuzzle +# Date created: 15 May 2002 +# Whom: Alexey Dokuchaev +# +# $FreeBSD$ +# + +PORTNAME= wmpuzzle +PORTVERSION= 0.1.1 +CATEGORIES= games windowmaker afterstep +MASTER_SITES= http://wwwtcs.inf.tu-dresden.de/~godisch/debian/wmpuzzle/ \ + ${MASTER_SITE_LOCAL:S/$/:bsdpics/} +MASTER_SITE_SUBDIR= petef/:bsdpics +DISTFILES= wmpuzzle_${PORTVERSION}.orig${EXTRACT_SUFX} \ + daemon.gif:bsdpics daemon.xpm:bsdpics +DIST_SUBDIR= wmpuzzle +EXTRACT_ONLY= wmpuzzle_${PORTVERSION}.orig${EXTRACT_SUFX} + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt + +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +USE_X_PREFIX= yes +USE_XPM= yes + +MAN6= wmpuzzle.6 + +BSDIMAGES= daemon.gif daemon.xpm + +post-extract: +.for i in ${BSDIMAGES} + ${CP} ${DISTDIR}/${DIST_SUBDIR}/$i ${WRKSRC}/xpm +.endfor + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/wmpuzzle ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/wmpuzzle.6 ${PREFIX}/man/man6 + +.include diff --git a/games/wmpuzzle/distinfo b/games/wmpuzzle/distinfo new file mode 100644 index 000000000000..d5450010077b --- /dev/null +++ b/games/wmpuzzle/distinfo @@ -0,0 +1,3 @@ +MD5 (wmpuzzle/wmpuzzle_0.1.1.orig.tar.gz) = 9d3ce8638068ecb7202e77429c9b3867 +MD5 (wmpuzzle/daemon.gif) = 08659de4c16b7f0e4e874eece1ef56fa +MD5 (wmpuzzle/daemon.xpm) = 2822c63820f67a68702fe8627b0ae688 diff --git a/games/wmpuzzle/files/patch-Makefile b/games/wmpuzzle/files/patch-Makefile new file mode 100644 index 000000000000..b5f77e78a1eb --- /dev/null +++ b/games/wmpuzzle/files/patch-Makefile @@ -0,0 +1,61 @@ +$FreeBSD$ + +--- Makefile.orig Wed Mar 13 23:09:33 2002 ++++ Makefile Wed May 15 20:32:38 2002 +@@ -1,45 +1,18 @@ +-# $Id: Makefile,v 1.11 2002/03/13 17:09:33 godisch Exp $ ++CC ?= gcc ++CFLAGS += -c -Wall -pedantic ++INCDIR = -I${X11BASE}/include -I/usr/local/include ++LIBDIR = -L${X11BASE}/lib -L/usr/local/lib ++LIBS = -lXpm -lXext -lX11 -lgnugetopt ++OBJS = wmpuzzle.o wmgeneral.o + +-prefix = /usr/local +-exec_prefix = ${prefix} +-bindir = ${exec_prefix}/bin +-mandir = ${prefix}/share/man ++.c.o: ++ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o + +-DESTDIR = +- +-CFLAGS = -O2 -Wall -pedantic +-LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext +-XPMS = xpm/debian.xpm xpm/eagle.xpm xpm/earth.xpm xpm/linux.xpm ++wmpuzzle: $(OBJS) ++ ${CC} -o wmpuzzle $^ ${LIBDIR} ${LIBS} + + all: wmpuzzle + +-wmpuzzle: wmpuzzle.o wmgeneral.o +- $(CC) $(LIBS) -o $@ $^ +- +-wmpuzzle.o: wmpuzzle.c wmpuzzle.h $(XPMS) +-wmgeneral.o: wmgeneral.c wmgeneral.h +- +-install: install-bin install-doc +- +-install-bin: wmpuzzle +- install -D -s -m 755 $< $(DESTDIR)$(bindir)/wmpuzzle +- +-install-doc: wmpuzzle.6 +- install -D -m 644 $< $(DESTDIR)$(mandir)/man6/wmpuzzle.6 +- +-uninstall: uninstall-bin uninstall-doc +- +-uninstall-bin: +- rm -f $(DESTDIR)$(bindir)/wmpuzzle +- +-uninstall-doc: +- rm -f $(DESTDIR)$(mandir)/man6/wmpuzzle.6 +- + clean: + rm -f *.o +- +-distclean: clean +- rm -f wmpuzzle +- +-.PHONY: all clean dist-clean install install-bin install-doc \ +- uninstall uninstall-bin uninstall-doc ++ rm -f wmpuzzle core diff --git a/games/wmpuzzle/files/patch-wmpuzzle.6 b/games/wmpuzzle/files/patch-wmpuzzle.6 new file mode 100644 index 000000000000..ced79ca91983 --- /dev/null +++ b/games/wmpuzzle/files/patch-wmpuzzle.6 @@ -0,0 +1,14 @@ +$FreeBSD$ + +--- wmpuzzle.6.orig Wed Mar 13 23:09:33 2002 ++++ wmpuzzle.6 Wed May 15 21:22:41 2002 +@@ -26,7 +26,8 @@ + .TP + \fB\-i\fP, \fB\-\-image=\fIimage\fP + the image which shall be shown. +-Valid images are \fIdebian\fP, \fIeagle\fP, \fIearth\fP, and \fIlinux\fP. ++Valid images are \fIdebian\fP, \fIeagle\fP, \fIearth\fP, \fIlinux\fP, ++and \fIdaemon\fP. + Other images will be included on request. + .TP + \fB\-k\fP, \fB\-\-keyboard\fP diff --git a/games/wmpuzzle/files/patch-wmpuzzle.c b/games/wmpuzzle/files/patch-wmpuzzle.c new file mode 100644 index 000000000000..e5afbe286733 --- /dev/null +++ b/games/wmpuzzle/files/patch-wmpuzzle.c @@ -0,0 +1,30 @@ +$FreeBSD$ + +--- wmpuzzle.c.orig Thu Apr 18 00:13:52 2002 ++++ wmpuzzle.c Wed May 15 21:21:20 2002 +@@ -22,6 +22,7 @@ + #include "xpm/eagle.xpm" + #include "xpm/earth.xpm" + #include "xpm/linux.xpm" ++#include "xpm/daemon.xpm" + + #define PROGRAM_NAME "wmpuzzle" + #define PROGRAM_VERSION "0.1.1" +@@ -203,6 +204,8 @@ + *wmpuzzle = earth_xpm; + else if (!strcmp(optarg, "linux")) + *wmpuzzle = linux_xpm; ++ else if (!strcmp(optarg, "daemon")) ++ *wmpuzzle = daemon_xpm; + else { + fprintf(stderr, "%s: invalid image `%s'\n", PROGRAM_NAME, optarg); + exit(1); +@@ -224,7 +227,7 @@ + printf("Usage: %s [-h] [-i ] [-k] [-s ] [-v]\n", PROGRAM_NAME); + printf(" -h, --help displays this command line summary.\n"); + printf(" -i, --image uses , valid images are `debian', `eagle',\n"); +- printf(" `earth', and `linux'.\n"); ++ printf(" `earth', `linux', and `daemon'.\n"); + printf(" -k, --keyboard enables the arrow keys on the keyboard.\n"); + printf(" -s, --shuffle shuffles the image times.\n"); + printf(" -v, --version displays the version number.\n"); diff --git a/games/wmpuzzle/pkg-comment b/games/wmpuzzle/pkg-comment new file mode 100644 index 000000000000..fc59d8c1e8b8 --- /dev/null +++ b/games/wmpuzzle/pkg-comment @@ -0,0 +1 @@ +A dockable puzzle game for WindowMaker and AfterStep diff --git a/games/wmpuzzle/pkg-descr b/games/wmpuzzle/pkg-descr new file mode 100644 index 000000000000..fe460a716525 --- /dev/null +++ b/games/wmpuzzle/pkg-descr @@ -0,0 +1,6 @@ +wmPuzzle is exactly what it sounds like: a puzzle game for your +WindowMaker Dock or AfterStep Wharf. +Now includes special BSD Daemon skin not present in original +distribution! + +WWW: http://wwwtcs.inf.tu-dresden.de/~godisch/debian/wmpuzzle/ diff --git a/games/wmpuzzle/pkg-plist b/games/wmpuzzle/pkg-plist new file mode 100644 index 000000000000..7af1a5c850e4 --- /dev/null +++ b/games/wmpuzzle/pkg-plist @@ -0,0 +1 @@ +bin/wmpuzzle