diff options
author | martymac <martymac@FreeBSD.org> | 2012-06-15 17:58:40 +0800 |
---|---|---|
committer | martymac <martymac@FreeBSD.org> | 2012-06-15 17:58:40 +0800 |
commit | 3db44b9d056e054d97115123c2fcb73515ea869a (patch) | |
tree | 8e9d110627e869a03210ff0b0d933d44df0126ed /games/jfsw | |
parent | c742493709778bf38ae77084def7c77e78147a62 (diff) | |
download | freebsd-ports-gnome-3db44b9d056e054d97115123c2fcb73515ea869a.tar.gz freebsd-ports-gnome-3db44b9d056e054d97115123c2fcb73515ea869a.tar.zst freebsd-ports-gnome-3db44b9d056e054d97115123c2fcb73515ea869a.zip |
- Switch to OptionsNg
- Use PORTDOCS
Diffstat (limited to 'games/jfsw')
-rw-r--r-- | games/jfsw/Makefile | 10 | ||||
-rw-r--r-- | games/jfsw/pkg-plist | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/games/jfsw/Makefile b/games/jfsw/Makefile index b40c491e1ee3..4cdb4d4a6d8b 100644 --- a/games/jfsw/Makefile +++ b/games/jfsw/Makefile @@ -29,6 +29,10 @@ PATCH_WRKSRC= ${WRKDIR} SUB_FILES= pkg-message +PORTDOCS= readme.txt releasenotes.html + +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -Ee \ 's|^(EROOT=)../build/|\1../jfbuild_src_${PORTVERSION}/|; \ @@ -47,10 +51,10 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sw ${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/build ${PREFIX}/bin/${PORTNAME}-build ${MKDIR} ${DATADIR} -.if !defined(NOPORTDOCS) -.for f in readme.txt releasenotes.html +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.for doc in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor @${CAT} ${PKGMESSAGE} .endif diff --git a/games/jfsw/pkg-plist b/games/jfsw/pkg-plist index d07292cb6763..ed0ff8732d0f 100644 --- a/games/jfsw/pkg-plist +++ b/games/jfsw/pkg-plist @@ -1,6 +1,3 @@ bin/jfsw bin/jfsw-build @dirrmtry %%DATADIR%% -%%PORTDOCS%%%%DOCSDIR%%/readme.txt -%%PORTDOCS%%%%DOCSDIR%%/releasenotes.html -%%PORTDOCS%%@dirrm %%DOCSDIR%% |