Support staging

This commit is contained in:
Dmitry Marakasov 2013-09-24 01:13:35 +00:00
parent 8ded2a096b
commit 93e68e083c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328080

View file

@ -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>