diff options
-rw-r--r-- | games/grubinvaders/Makefile | 11 | ||||
-rw-r--r-- | games/grubinvaders/files/pkg-message.in (renamed from games/grubinvaders/pkg-message) | 2 | ||||
-rw-r--r-- | games/grubinvaders/pkg-plist | 7 |
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%% |