1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- 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
This commit is contained in:
Martin Wilke 2009-09-25 19:28:00 +00:00
parent 56c422c628
commit 045ac0468b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242098
4 changed files with 31 additions and 48 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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