Support staging
This commit is contained in:
parent
8ded2a096b
commit
93e68e083c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328080
1 changed files with 2 additions and 7 deletions
|
@ -26,19 +26,14 @@ MAN6= amoebax.6
|
|||
|
||||
PORTDOCS= *
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|doc||' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's|datarootdir|datadir|' ${WRKSRC}/data/Makefile.in
|
||||
@${FIND} ${WRKSRC}/ -name Makefile.in|${XARGS}\
|
||||
${REINPLACE_CMD} -e '/^pkgdatadir =/s|=.*|= ${DATADIR}|'
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${DOCSDIR}
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue