aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-10 00:35:58 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-10 00:35:58 +0000
commite68134475c76935bfd67cafc59e8486150b1b597 (patch)
tree3005bbaa3675d5927ff1244504fe9c6a573572e3 /games
parentc1eaff1b565d6781255303c68bba386df2e0c884 (diff)
downloadports-e68134475c76935bfd67cafc59e8486150b1b597.tar.gz
ports-e68134475c76935bfd67cafc59e8486150b1b597.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/grubinvaders/Makefile11
-rw-r--r--games/grubinvaders/files/pkg-message.in (renamed from games/grubinvaders/pkg-message)2
-rw-r--r--games/grubinvaders/pkg-plist7
3 files changed, 12 insertions, 8 deletions
diff --git a/games/grubinvaders/Makefile b/games/grubinvaders/Makefile
index 8448a93933bc..c9b231089f62 100644
--- a/games/grubinvaders/Makefile
+++ b/games/grubinvaders/Makefile
@@ -21,11 +21,14 @@ ONLY_FOR_ARCHS= i386
STRIP=
WRKSRC= ${WRKDIR}/invaders
ALL_TARGET= clean all
+SUB_FILES= pkg-message
do-install:
- ${MKDIR} ${PREFIX}/share/grubinvaders
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/grubinvaders
- ${INSTALL_PROGRAM} ${WRKSRC}/invaders ${PREFIX}/share/grubinvaders
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
+ ${MKDIR} ${DATADIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
+.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/invaders ${DATADIR}
.include <bsd.port.mk>
diff --git a/games/grubinvaders/pkg-message b/games/grubinvaders/files/pkg-message.in
index f0c6b5b5b45b..f19da57bb97d 100644
--- a/games/grubinvaders/pkg-message
+++ b/games/grubinvaders/files/pkg-message.in
@@ -1,6 +1,6 @@
------------------------------------------------------------
-See %%PREFIX%%/share/grubinvaders/README for instructions on
+See %%DATADIR%%/README for instructions on
installing grubinvaders with grub.
------------------------------------------------------------
diff --git a/games/grubinvaders/pkg-plist b/games/grubinvaders/pkg-plist
index c2338f1a0bd4..bda635ac0640 100644
--- a/games/grubinvaders/pkg-plist
+++ b/games/grubinvaders/pkg-plist
@@ -1,3 +1,4 @@
-share/grubinvaders/README
-share/grubinvaders/invaders
-@dirrm share/grubinvaders
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%DATADIR%%/invaders
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%