diff options
author | pawel <pawel@FreeBSD.org> | 2014-08-07 22:30:18 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-08-07 22:30:18 +0800 |
commit | fa506261f9473f69c2d4a3f62f6ae86410523720 (patch) | |
tree | afc9bd2069195030bb67c9bbbba65780c4b97081 /textproc | |
parent | 8b75eed21a1272e8e1b565fb4ceb4c12b16668ad (diff) | |
download | freebsd-ports-graphics-fa506261f9473f69c2d4a3f62f6ae86410523720.tar.gz freebsd-ports-graphics-fa506261f9473f69c2d4a3f62f6ae86410523720.tar.zst freebsd-ports-graphics-fa506261f9473f69c2d4a3f62f6ae86410523720.zip |
Add staging support
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/xhtml-basic/Makefile | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/textproc/xhtml-basic/Makefile b/textproc/xhtml-basic/Makefile index c646fda6191..d4dac98691c 100644 --- a/textproc/xhtml-basic/Makefile +++ b/textproc/xhtml-basic/Makefile @@ -41,7 +41,6 @@ SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \ CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports -NO_STAGE= yes .include "${.CURDIR}/contents.inc" # I'd much rather do this stuff in line with the actual installation @@ -60,25 +59,20 @@ pre-install: ${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST} ${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST} ${ECHO} "@dirrm ${dir_DTD}" >> ${PLIST} - ${ECHO} '@unexec rmdir %D share/xml/dtd 2>/dev/null || true' >> \ + ${ECHO} '@unexec rmdir %D/share/xml/dtd 2>/dev/null || true' >> \ ${PLIST} ${ECHO} "@dirrm ${dir_DOC}" >> ${PLIST} do-install: - @[ -d ${PREFIX}/${dir_DTD} ] || \ - ${MKDIR} ${PREFIX}/${dir_DTD} - @[ -d ${PREFIX}/${dir_DOC} ] || \ - ${MKDIR} ${PREFIX}/${dir_DOC} -.for f in ${contents_DTD} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${dir_DTD}/${f} -.endfor -.for f in ${contents_DOC} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${dir_DOC}/${f} -.endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DTD} + @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DOC} + (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DTD} \ + ${STAGEDIR}${PREFIX}/${dir_DTD}) + (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DOC} \ + ${STAGEDIR}${PREFIX}/${dir_DOC}) ${SED} -e "s;@@PREFIX@@;${PREFIX};g" ${FILESDIR}/catalog.xml > \ ${WRKDIR}/catalog.xml - ${INSTALL_DATA} ${WRKDIR}/catalog.xml ${PREFIX}/${dir_DTD}/catalog.xml - ${XMLCAT_ADD} - ${SGMLCAT_ADD} + ${INSTALL_DATA} ${WRKDIR}/catalog.xml \ + ${STAGEDIR}${PREFIX}/${dir_DTD}/catalog.xml .include <bsd.port.mk> |