aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-09-26 03:28:00 +0800
committermiwi <miwi@FreeBSD.org>2009-09-26 03:28:00 +0800
commit44750358c87a784c6245f23efd1729ccb522c109 (patch)
treeb120b214a88825edbd0f9fea28143d54c31f6d42 /games
parenta9f36df04da97facc5d0fa757db08b59abed88de (diff)
downloadfreebsd-ports-gnome-44750358c87a784c6245f23efd1729ccb522c109.tar.gz
freebsd-ports-gnome-44750358c87a784c6245f23efd1729ccb522c109.tar.zst
freebsd-ports-gnome-44750358c87a784c6245f23efd1729ccb522c109.zip
- Remove unused dependency to gengameng
- Port is now DATADIR safe - Better handling of PORTDOCS - Take maintainership of the port PR: 139131 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> Feature safe: yes
Diffstat (limited to 'games')
-rw-r--r--games/afternoonstalker/Makefile26
-rw-r--r--games/afternoonstalker/distinfo6
-rw-r--r--games/afternoonstalker/files/patch-src__sdlmain.cpp10
-rw-r--r--games/afternoonstalker/pkg-plist37
4 files changed, 31 insertions, 48 deletions
diff --git a/games/afternoonstalker/Makefile b/games/afternoonstalker/Makefile
index e2969b0db090..a149a4a34b6e 100644
--- a/games/afternoonstalker/Makefile
+++ b/games/afternoonstalker/Makefile
@@ -6,30 +6,32 @@
#
PORTNAME= afternoonstalker
-PORTVERSION= 1.1.1
-PORTREVISION= 5
+PORTVERSION= 1.1.2
CATEGORIES= games
-MASTER_SITES= http://www3.sympatico.ca/sarrazip/dev/
+MASTER_SITES= http://perso.b2b2c.ca/sarrazip/dev/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ganael.laplanche@martymac.com
COMMENT= A clone of the 1981 Night Stalker video game
-LIB_DEPENDS= gengameng.4:${PORTSDIR}/devel/gengameng \
- flatzebra-0.1.2:${PORTSDIR}/devel/flatzebra
+LIB_DEPENDS= flatzebra-0.1.2:${PORTSDIR}/devel/flatzebra
USE_SDL= mixer sdl
GNU_CONFIGURE= yes
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= afternoonstalker.6
-
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-
-CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
+PORTDOCS= AUTHORS COPYING INSTALL NEWS README THANKS TODO
post-patch:
- ${REINPLACE_CMD} "s@sounds/..PACKAGE.@afternoonstalker/sounds@g" \
+ @${REINPLACE_CMD} -e 's|^pkgsounddir =.*|pkgsounddir = ${DATADIR}/sounds|' \
${WRKSRC}/src/Makefile.in
+ @${REINPLACE_CMD} -e 's|docdir = .*|docdir = ${DOCSDIR}|' \
+ ${WRKSRC}/Makefile.in
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e '/^install-data-am/s|install-docDATA||' \
+ ${WRKSRC}/Makefile.in
+.endif
.include <bsd.port.mk>
diff --git a/games/afternoonstalker/distinfo b/games/afternoonstalker/distinfo
index c425c02d4570..bca56ab32957 100644
--- a/games/afternoonstalker/distinfo
+++ b/games/afternoonstalker/distinfo
@@ -1,3 +1,3 @@
-MD5 (afternoonstalker-1.1.1.tar.gz) = 09a6c7204a38c621dacc6a858f5abb19
-SHA256 (afternoonstalker-1.1.1.tar.gz) = 7c0c2829968ec1673d798ec412cd65620a2856aefe92c1f7c2f8cac3fb0010ca
-SIZE (afternoonstalker-1.1.1.tar.gz) = 193895
+MD5 (afternoonstalker-1.1.2.tar.gz) = 5ddaac5e13c2ab2888826911aa81e203
+SHA256 (afternoonstalker-1.1.2.tar.gz) = 9531164e0f4d9876498c75b6b174e8a50e5e1861517002f431e14972df423f70
+SIZE (afternoonstalker-1.1.2.tar.gz) = 193791
diff --git a/games/afternoonstalker/files/patch-src__sdlmain.cpp b/games/afternoonstalker/files/patch-src__sdlmain.cpp
deleted file mode 100644
index 12e58cd5cf69..000000000000
--- a/games/afternoonstalker/files/patch-src__sdlmain.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/sdlmain.cpp.orig Tue Oct 18 13:24:24 2005
-+++ src/sdlmain.cpp Tue Oct 18 13:25:35 2005
-@@ -27,6 +27,7 @@
- #include <time.h>
- #include <stdio.h>
-
-+#undef HAVE_GETOPT_LONG
- #ifdef HAVE_GETOPT_LONG
- #include <getopt.h>
- #endif
diff --git a/games/afternoonstalker/pkg-plist b/games/afternoonstalker/pkg-plist
index 630a1038e504..bff9eb9ad5d2 100644
--- a/games/afternoonstalker/pkg-plist
+++ b/games/afternoonstalker/pkg-plist
@@ -1,26 +1,17 @@
bin/afternoonstalker
-share/afternoonstalker/level1.set
-share/afternoonstalker/level2.set
-share/afternoonstalker/sounds/bat-killed.wav
-share/afternoonstalker/sounds/bomb-explodes.wav
-share/afternoonstalker/sounds/gun-pickup.wav
-share/afternoonstalker/sounds/new-life.wav
-share/afternoonstalker/sounds/player-bullet.wav
-share/afternoonstalker/sounds/player-hit.wav
-share/afternoonstalker/sounds/robot-bullet.wav
-share/afternoonstalker/sounds/robot-hit.wav
-share/afternoonstalker/sounds/shooting-blanks.wav
-share/afternoonstalker/sounds/spider-killed.wav
-%%DOCSDIR%%/AUTHORS
-%%DOCSDIR%%/COPYING
-%%DOCSDIR%%/INSTALL
-%%DOCSDIR%%/NEWS
-%%DOCSDIR%%/README
-%%DOCSDIR%%/THANKS
-%%DOCSDIR%%/TODO
-share/pixmaps/afternoonstalker.png
share/applications/afternoonstalker.desktop
-@dirrm %%DOCSDIR%%
-@dirrm share/afternoonstalker/sounds
-@dirrm share/afternoonstalker
+share/pixmaps/afternoonstalker.png
+%%DATADIR%%/level1.set
+%%DATADIR%%/level2.set
+%%DATADIR%%/sounds/bat-killed.wav
+%%DATADIR%%/sounds/gun-pickup.wav
+%%DATADIR%%/sounds/new-life.wav
+%%DATADIR%%/sounds/player-bullet.wav
+%%DATADIR%%/sounds/player-hit.wav
+%%DATADIR%%/sounds/robot-bullet.wav
+%%DATADIR%%/sounds/robot-hit.wav
+%%DATADIR%%/sounds/shooting-blanks.wav
+%%DATADIR%%/sounds/spider-killed.wav
+@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%
@dirrmtry share/applications