aboutsummaryrefslogtreecommitdiff
path: root/games/njam
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-03-30 22:05:33 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-03-30 22:05:33 +0000
commit4f75163921ac3788115e1f50143ca385b92dddb9 (patch)
tree9d1dbf99dfae99986d647ab3ff6a4298ad577cd9 /games/njam
parentebd7f1c8a414e7b04c784f2df28a5c4251caf5e4 (diff)
downloadports-4f75163921ac3788115e1f50143ca385b92dddb9.tar.gz
ports-4f75163921ac3788115e1f50143ca385b92dddb9.zip
Notes
Diffstat (limited to 'games/njam')
-rw-r--r--games/njam/Makefile7
-rw-r--r--games/njam/distinfo3
-rw-r--r--games/njam/files/njam.sh4
-rw-r--r--games/njam/files/patch-Makefile11
-rw-r--r--games/njam/pkg-plist35
5 files changed, 49 insertions, 11 deletions
diff --git a/games/njam/Makefile b/games/njam/Makefile
index 8b8ccc6a187e..f772e2a3e52a 100644
--- a/games/njam/Makefile
+++ b/games/njam/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= njam
-PORTVERSION= 1.00
-PORTREVISION= 2
+PORTVERSION= 1.21
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -18,6 +17,7 @@ COMMENT= Fast paced multiplayer pac-man clone
USE_GMAKE= yes
USE_SDL= mixer image net sdl
+USE_REINPLACE= yes
DOC_FILES= assassin.gif award-2.gif cookie.gif doc-editor.html \
doc.html doc2.html door.gif freezer.gif ghactive.gif \
ghinactive.gif hunter.gif invisible.gif juice.gif \
@@ -25,6 +25,9 @@ DOC_FILES= assassin.gif award-2.gif cookie.gif doc-editor.html \
teleport.gif thinline.gif trap.gif
post-install:
+ ${CP} ${FILESDIR}/njam.sh ${WRKDIR}/njam.sh
+ ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKDIR}/njam.sh
+ ${INSTALL_SCRIPT} ${WRKDIR}/njam.sh ${PREFIX}/bin/njam
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR}
diff --git a/games/njam/distinfo b/games/njam/distinfo
index 717833b558ed..2b667a1cd240 100644
--- a/games/njam/distinfo
+++ b/games/njam/distinfo
@@ -1 +1,2 @@
-MD5 (njam-1.00-src.tar.gz) = 88b276a1334477295fc3ba3cc44e05fd
+MD5 (njam-1.21-src.tar.gz) = aa1889ea750fabff3029b95ad21ad1fa
+SIZE (njam-1.21-src.tar.gz) = 1438351
diff --git a/games/njam/files/njam.sh b/games/njam/files/njam.sh
new file mode 100644
index 000000000000..4dda52f63ebb
--- /dev/null
+++ b/games/njam/files/njam.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd %%PREFIX%%/share/njam
+%%PREFIX%%/share/njam/njam
diff --git a/games/njam/files/patch-Makefile b/games/njam/files/patch-Makefile
index c448180e5fad..50e5241c9fb0 100644
--- a/games/njam/files/patch-Makefile
+++ b/games/njam/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Fri Oct 17 01:16:56 2003
-+++ Makefile Sat Nov 15 19:28:16 2003
+--- Makefile.orig Thu Mar 25 07:34:46 2004
++++ Makefile Sun Mar 28 14:37:35 2004
@@ -20,7 +20,7 @@
# directory where the games are installed (/usr, /usr/local, ... or something)
@@ -28,10 +28,10 @@
clean:
$(RM) *.o
-@@ -45,25 +45,15 @@
+@@ -45,25 +45,16 @@
$(RM) $(PROGRAM).exe
- install:
+ install: $(PROGRAM)
- mkdir -m 755 -p $(PREFIX)/games/njam
- mkdir -m 755 -p $(PREFIX)/games/njam/data
- mkdir -m 755 -p $(PREFIX)/games/njam/skins
@@ -54,12 +54,13 @@
+ mkdir -m 755 -p $(PREFIX)/share/njam
+ mkdir -m 755 -p $(PREFIX)/share/njam/data
+ mkdir -m 755 -p $(PREFIX)/share/njam/skins
++ mkdir -m 755 -p $(PREFIX)/share/njam/html
+ mkdir -m 755 -p $(PREFIX)/share/njam/levels
+ install -o root -g games -m 755 njam $(PREFIX)/share/njam
+ install -o root -g games -m 644 data/* $(PREFIX)/share/njam/data
+ install -o root -g games -m 644 skins/* $(PREFIX)/share/njam/skins
++ install -o root -g games -m 644 html/* $(PREFIX)/share/njam/html
+ install -o root -g games -m 644 levels/* $(PREFIX)/share/njam/levels
-+ ln -s $(PREFIX)/share/njam/njam $(PREFIX)/bin/njam
uninstall:
rm -rf $(PREFIX)/games/njam
diff --git a/games/njam/pkg-plist b/games/njam/pkg-plist
index e0cb154c1a22..45f13daba74f 100644
--- a/games/njam/pkg-plist
+++ b/games/njam/pkg-plist
@@ -1,6 +1,5 @@
bin/njam
-share/njam/data/ORIGINAL.COOP
-share/njam/data/ORIGINAL.DUEL
+share/njam/data/50pts.wav
share/njam/data/bonus.wav
share/njam/data/dali.xm
share/njam/data/dead.wav
@@ -34,23 +33,53 @@ share/njam/data/stats.jpg
share/njam/data/teleport.wav
share/njam/data/trapdoor.wav
share/njam/data/tripleding.wav
+share/njam/data/winall.jpg
share/njam/data/win1.jpg
share/njam/data/win2.jpg
share/njam/data/win3.jpg
share/njam/data/win4.jpg
share/njam/levels/ORIGINAL.COOP
share/njam/levels/ORIGINAL.DUEL
+share/njam/levels/BEAMTEAM.DUEL
+share/njam/levels/DRAGON.COOP
+share/njam/levels/DULIO.DUEL
+share/njam/levels/EASY.COOP
+share/njam/levels/HUNT.DUEL
+share/njam/levels/RAVENS CURSE.COOP
+share/njam/levels/WOLF.COOP
+share/njam/levels/readme.txt
share/njam/njam
share/njam/skins/Back000.bmp
share/njam/skins/Back001.bmp
share/njam/skins/Back002.bmp
+share/njam/skins/Back003.bmp
+share/njam/html/assassin.gif
+share/njam/html/cookie.gif
+share/njam/html/doc-editor.html
+share/njam/html/doc.html
+share/njam/html/doc2.html
+share/njam/html/door.gif
+share/njam/html/freezer.gif
+share/njam/html/ghactive.gif
+share/njam/html/ghinactive.gif
+share/njam/html/hunter.gif
+share/njam/html/invisible.gif
+share/njam/html/juice.gif
+share/njam/html/sample.gif
+share/njam/html/shaddy.gif
+share/njam/html/skin000.gif
+share/njam/html/skin001.gif
+share/njam/html/skin003.gif
+share/njam/html/teleport.gif
+share/njam/html/thinline.gif
+share/njam/html/trap.gif
+@dirrm share/njam/html
@dirrm share/njam/data
@dirrm share/njam/levels
@dirrm share/njam/skins
@dirrm share/njam
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/assassin.gif
-%%PORTDOCS%%%%DOCSDIR%%/award-2.gif
%%PORTDOCS%%%%DOCSDIR%%/cookie.gif
%%PORTDOCS%%%%DOCSDIR%%/doc-editor.html
%%PORTDOCS%%%%DOCSDIR%%/doc.html