- Switch to OptionsNg

- Use PORTDOCS
This commit is contained in:
Ganael LAPLANCHE 2012-06-15 09:58:40 +00:00
parent 4bab0482f0
commit d24c92667e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299330
2 changed files with 7 additions and 6 deletions

View File

@ -29,6 +29,10 @@ PATCH_WRKSRC= ${WRKDIR}
SUB_FILES= pkg-message SUB_FILES= pkg-message
PORTDOCS= readme.txt releasenotes.html
.include <bsd.port.options.mk>
post-patch: post-patch:
@${REINPLACE_CMD} -Ee \ @${REINPLACE_CMD} -Ee \
's|^(EROOT=)../build/|\1../jfbuild_src_${PORTVERSION}/|; \ 's|^(EROOT=)../build/|\1../jfbuild_src_${PORTVERSION}/|; \
@ -47,10 +51,10 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sw ${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/sw ${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/build ${PREFIX}/bin/${PORTNAME}-build ${INSTALL_PROGRAM} ${WRKSRC}/build ${PREFIX}/bin/${PORTNAME}-build
${MKDIR} ${DATADIR} ${MKDIR} ${DATADIR}
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
.for f in readme.txt releasenotes.html
${MKDIR} ${DOCSDIR} ${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor .endfor
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
.endif .endif

View File

@ -1,6 +1,3 @@
bin/jfsw bin/jfsw
bin/jfsw-build bin/jfsw-build
@dirrmtry %%DATADIR%% @dirrmtry %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
%%PORTDOCS%%%%DOCSDIR%%/releasenotes.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%