diff options
author | adam <adam> | 2004-10-14 12:28:02 +0000 |
---|---|---|
committer | adam <adam> | 2004-10-14 12:28:02 +0000 |
commit | 8552a6aaa35e190f144983109d679009edc95b15 (patch) | |
tree | 3dc87972f332779d2dd599b7b958cbf35df4bf44 /games | |
parent | a82197f0834c1212d3a36bc4131d1af24e1f43ea (diff) | |
download | pkgsrc-8552a6aaa35e190f144983109d679009edc95b15.tar.gz |
XBomb is a minesweeper clone with square, hexagonal and triangular grid.
Diffstat (limited to 'games')
-rw-r--r-- | games/xbomb/DESCR | 5 | ||||
-rw-r--r-- | games/xbomb/Makefile | 37 | ||||
-rw-r--r-- | games/xbomb/PLIST | 9 | ||||
-rw-r--r-- | games/xbomb/distinfo | 6 | ||||
-rw-r--r-- | games/xbomb/patches/patch-aa | 45 | ||||
-rw-r--r-- | games/xbomb/patches/patch-ab | 31 |
6 files changed, 133 insertions, 0 deletions
diff --git a/games/xbomb/DESCR b/games/xbomb/DESCR new file mode 100644 index 00000000000..844f367a70c --- /dev/null +++ b/games/xbomb/DESCR @@ -0,0 +1,5 @@ +XBomb is a minesweeper clone, with square, hexagonal, and triangular grid. +The game has three levels, based on the size of the grid: +* Small 8x8 grid with 10 bombs +* Medium 16x16 grid with 40 bombs +* Large 30x16 grid with 99 bombs diff --git a/games/xbomb/Makefile b/games/xbomb/Makefile new file mode 100644 index 00000000000..bec2dec8505 --- /dev/null +++ b/games/xbomb/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/10/14 12:28:02 adam Exp $ + +DISTNAME= xbomb-2.1a +CATEGORIES= games x11 +MASTER_SITES= http://www.gedanken.demon.co.uk/download-xbomb/ \ + ftp://ftp.demon.co.uk/pub/unix/xwindows/games/ \ + ftp://ftp.ibiblio.org/pub/Linux/games/strategy/ +EXTRACT_SUFX= .tgz + +MAINTAINER= adam@NetBSD.org +HOMEPAGE= http://www.gedanken.demon.co.uk/xbomb/ +COMMENT= Square, hexagonal, and triangual minesweeper clone + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_X11= yes +ALL_TARGET= xbomb +MAKE_ENV+= SCORE_PATH="${SCORE_PATH}" + +SCORE_PATH= ${VARBASE}/games/xbomb +SCORE_USER= games +SCORE_GROUP= games +PKG_USERS= ${SCORE_USER}:${SCORE_GROUP} +PKG_GROUPS= ${SCORE_GROUP} + +PLIST_SUBST+= SCORE_PATH=${SCORE_PATH} +PLIST_SUBST+= GAME_DIR="${INSTALL} -d -o ${SCORE_USER} -g ${SCORE_GROUP} -m 775" + +post-install: + ${INSTALL_DATA_DIR} ${SCORE_PATH} +.for score in . xbomb3.hi xbomb4.hi xbomb6.hi + ${TOUCH} ${SCORE_PATH}/${score} +.endfor + ${CHMOD} -R 775 ${SCORE_PATH} + ${CHOWN} -R ${SCORE_USER}:${SCORE_GROUP} ${SCORE_PATH} + +.include "../../mk/bsd.pkg.mk" diff --git a/games/xbomb/PLIST b/games/xbomb/PLIST new file mode 100644 index 00000000000..c202adb45eb --- /dev/null +++ b/games/xbomb/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/14 12:28:02 adam Exp $ +bin/xbomb +man/man6/xbomb.6 +lib/X11/app-defaults/XBomb +@exec ${GAME_DIR} ${SCORE_PATH} +@exec ${GAME_DIR} ${SCORE_PATH}/xbomb3.hi +@exec ${GAME_DIR} ${SCORE_PATH}/xbomb4.hi +@exec ${GAME_DIR} ${SCORE_PATH}/xbomb6.hi +@unexec echo Delete ${SCORE_PATH}/ if you do not need your hiscores anymore. diff --git a/games/xbomb/distinfo b/games/xbomb/distinfo new file mode 100644 index 00000000000..b2358044e81 --- /dev/null +++ b/games/xbomb/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/10/14 12:28:02 adam Exp $ + +SHA1 (xbomb-2.1a.tgz) = 55a27717d13de310656641e675b743cc51ec4f51 +Size (xbomb-2.1a.tgz) = 23942 bytes +SHA1 (patch-aa) = b064540c8b092c5c317e2a91ff72a1ce1325509e +SHA1 (patch-ab) = 4031c9e7d84560bdc449ce830eaca5277057c296 diff --git a/games/xbomb/patches/patch-aa b/games/xbomb/patches/patch-aa new file mode 100644 index 00000000000..32c7b202009 --- /dev/null +++ b/games/xbomb/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/10/14 12:28:03 adam Exp $ + +--- Makefile.orig 1996-01-20 21:02:46.000000000 +0000 ++++ Makefile +@@ -12,22 +12,20 @@ + # for conditions under which this file may be redistributed. + # + +-CC=gcc +-CFLAGS=-O2 + +-INCLUDES= ++INCLUDES=-I${X11BASE}/include + + LIB= + +-XLIB=-L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 ++XLIB=-L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXaw -lXmu -lXt -lX11 + +-COMPILE=$(CC) -c $(CFLAGS) ++COMPILE=$(CC) -c $(CFLAGS) -DSCORE_PATH=\"${SCORE_PATH}\" + + LINK=$(CC) + + OBJ=xbomb.o xwindow.o hiscore.o + +-INSTDIR=/usr/local ++INSTDIR=${PREFIX} + + ######## + +@@ -51,10 +49,6 @@ clean : + ######## + + install : +- strip xbomb +- install -d $(INSTDIR)/bin +- install -d $(INSTDIR)/man/man6 +- install -d $(INSTDIR)/lib/app-defaults +- install -m 755 xbomb $(INSTDIR)/bin +- install -m 644 xbomb.6 $(INSTDIR)/man/man6 +- install -m 644 xbomb.ad $(INSTDIR)/lib/app-defaults/XBomb ++ ${BSD_INSTALL_PROGRAM} xbomb $(INSTDIR)/bin ++ ${BSD_INSTALL_DATA} xbomb.6 $(INSTDIR)/man/man6 ++ ${BSD_INSTALL_DATA} xbomb.ad $(INSTDIR)/lib/X11/app-defaults/XBomb diff --git a/games/xbomb/patches/patch-ab b/games/xbomb/patches/patch-ab new file mode 100644 index 00000000000..678da15a754 --- /dev/null +++ b/games/xbomb/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/10/14 12:28:03 adam Exp $ + +--- hiscore.c.orig 1998-01-16 19:50:39.000000000 +0000 ++++ hiscore.c +@@ -47,7 +47,7 @@ extern int widths[NLEVELS], /*+ widt + nbombs[NLEVELS]; /*+ number of bombs. +*/ + + /*+ The names of the high score tables. +*/ +-static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"}; ++static char *filenames[NTYPES]={SCORE_PATH"/xbomb6.hi",SCORE_PATH"/xbomb4.hi",SCORE_PATH"/xbomb3.hi"}; + + /*+ The names of the positions in the high score tables. +*/ + static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"}; +@@ -131,7 +131,7 @@ void AddHighScore(int ticks) + + which_hiscore=10; + score[grid_level-GAME_LEVEL][10]=ticks; +- cuserid(name[grid_level-GAME_LEVEL][10]); ++ strcpy(name[grid_level-GAME_LEVEL][10], getlogin()); + date[grid_level-GAME_LEVEL][10]=time(NULL); + + for(j=0;j<10;j++) +@@ -147,7 +147,7 @@ void AddHighScore(int ticks) + date[grid_level-GAME_LEVEL][j]=date[grid_level-GAME_LEVEL][j-1]; + } + score[grid_level-GAME_LEVEL][changed]=ticks; +- cuserid(name[grid_level-GAME_LEVEL][changed]); ++ strcpy(name[grid_level-GAME_LEVEL][changed], getlogin()); + date[grid_level-GAME_LEVEL][changed]=time(NULL); + + save_high_scores(); |