aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2008-08-25 03:05:39 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2008-08-25 03:05:39 +0800
commit2d966b29a09ac78248ab4443a99877ee80339309 (patch)
treee7cd275b9fc17f1af738472fabd4fd5d1518852f /games
parent1af80e7bd0163e0f4d06c441b14523eb4c918119 (diff)
downloadfreebsd-ports-gnome-2d966b29a09ac78248ab4443a99877ee80339309.tar.gz
freebsd-ports-gnome-2d966b29a09ac78248ab4443a99877ee80339309.tar.zst
freebsd-ports-gnome-2d966b29a09ac78248ab4443a99877ee80339309.zip
- Fix plist for NOPORTDOCS case
- While here, use %%DATADIR%% macros in the plist Reported by: QAT
Diffstat (limited to 'games')
-rw-r--r--games/openglad/Makefile6
-rw-r--r--games/openglad/pkg-plist68
2 files changed, 39 insertions, 35 deletions
diff --git a/games/openglad/Makefile b/games/openglad/Makefile
index e809a969751f..8a5beb87533d 100644
--- a/games/openglad/Makefile
+++ b/games/openglad/Makefile
@@ -19,10 +19,14 @@ GNU_CONFIGURE= yes
USE_SDL= sdl mixer
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
-PLIST_SUB= DOCDIR=share/doc/${PORTNAME}
NOT_FOR_ARCHS= sparc64
+.if defined(NOPORTDOCS)
+post-patch:
+ @${REINPLACE_CMD} -e 's|^docs_DOCS = |nono&|' ${WRKSRC}/Makefile.in
+.endif
+
post-configure:
${REINPLACE_CMD} -e 's|/path/to/data/dir|${LOCALBASE}/share/openglad|g' \
${WRKSRC}/openglad.cfg
diff --git a/games/openglad/pkg-plist b/games/openglad/pkg-plist
index 9fd0211e4738..ba15fa6c3e6d 100644
--- a/games/openglad/pkg-plist
+++ b/games/openglad/pkg-plist
@@ -1,36 +1,36 @@
bin/openglad
bin/openscen
-%%PORTDOCS%%%%DOCDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCDIR%%/COPYING
-%%PORTDOCS%%%%DOCDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCDIR%%/INSTALL
-%%PORTDOCS%%%%DOCDIR%%/NEWS
-%%PORTDOCS%%%%DOCDIR%%/README
-%%PORTDOCS%%%%DOCDIR%%/cheats.txt
-%%PORTDOCS%%%%DOCDIR%%/release-notes.txt
-%%PORTDOCS%%%%DOCDIR%%/scen.txt
-share/openglad/glad.hlp
-share/openglad/graphics.001
-share/openglad/levels.001
-share/openglad/openglad.cfg
-share/openglad/sound/blast1.wav
-share/openglad/sound/bolt1.wav
-share/openglad/sound/boom.wav
-share/openglad/sound/charge.wav
-share/openglad/sound/clang.wav
-share/openglad/sound/die1.wav
-share/openglad/sound/die2.wav
-share/openglad/sound/eat.wav
-share/openglad/sound/explode1.wav
-share/openglad/sound/faerie1.wav
-share/openglad/sound/fwip.wav
-share/openglad/sound/heal1.wav
-share/openglad/sound/money.wav
-share/openglad/sound/roar.wav
-share/openglad/sound/teleport.wav
-share/openglad/sound/twang.wav
-share/openglad/sound/yo.wav
-share/openglad/start.tex
-@dirrm share/openglad/sound
-@dirrm share/openglad
-%%PORTDOCS%%@dirrm %%DOCDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
+%%PORTDOCS%%%%DOCSDIR%%/release-notes.txt
+%%PORTDOCS%%%%DOCSDIR%%/scen.txt
+%%DATADIR%%/glad.hlp
+%%DATADIR%%/graphics.001
+%%DATADIR%%/levels.001
+%%DATADIR%%/openglad.cfg
+%%DATADIR%%/sound/blast1.wav
+%%DATADIR%%/sound/bolt1.wav
+%%DATADIR%%/sound/boom.wav
+%%DATADIR%%/sound/charge.wav
+%%DATADIR%%/sound/clang.wav
+%%DATADIR%%/sound/die1.wav
+%%DATADIR%%/sound/die2.wav
+%%DATADIR%%/sound/eat.wav
+%%DATADIR%%/sound/explode1.wav
+%%DATADIR%%/sound/faerie1.wav
+%%DATADIR%%/sound/fwip.wav
+%%DATADIR%%/sound/heal1.wav
+%%DATADIR%%/sound/money.wav
+%%DATADIR%%/sound/roar.wav
+%%DATADIR%%/sound/teleport.wav
+%%DATADIR%%/sound/twang.wav
+%%DATADIR%%/sound/yo.wav
+%%DATADIR%%/start.tex
+@dirrm %%DATADIR%%/sound
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%