mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Switch to OptionsNg
- Use PORTDOCS
This commit is contained in:
parent
4bab0482f0
commit
d24c92667e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299330
@ -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
|
||||
|
@ -1,6 +1,3 @@
|
||||
bin/jfsw
|
||||
bin/jfsw-build
|
||||
@dirrmtry %%DATADIR%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/releasenotes.html
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user