diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2013-10-27 22:29:46 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2013-10-27 22:29:46 +0000 |
commit | 338eecf23761d8a27351a0657ead88ab54a8f9da (patch) | |
tree | 2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /www/tidy | |
parent | 2078f2a7ae31de5a4474e59c2d813276c225277f (diff) | |
download | ports-338eecf23761d8a27351a0657ead88ab54a8f9da.tar.gz ports-338eecf23761d8a27351a0657ead88ab54a8f9da.zip |
- use STAGEDIR
- use OPTIONS_DEFINE
Notes
Notes:
svn path=/head/; revision=331810
Diffstat (limited to 'www/tidy')
-rw-r--r-- | www/tidy/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/www/tidy/Makefile b/www/tidy/Makefile index 47e6185373f6..001e35202c5f 100644 --- a/www/tidy/Makefile +++ b/www/tidy/Makefile @@ -15,23 +15,23 @@ COMMENT= Fixes and tidies up HTML files LICENSE= BSD LICENSE_FILE= ${FILESDIR}/COPYRIGHT -NO_STAGE= yes - -MAN1= tidy4.1 +USES= manpages ALL_TARGET= tidy DOCFILES= Overview.html tidy.gif release-notes.html grid.gif +MAN1= tidy4.1 + +.include <bsd.port.options.mk> do-configure: ${REINPLACE_CMD} -e 's|tidy|tidy4|' ${WRKSRC}/man_page.txt do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/tidy ${PREFIX}/bin/tidy4 - @${INSTALL_MAN} ${WRKSRC}/man_page.txt ${PREFIX}/man/man1/tidy4.1 -.if !defined(NOPORTDOCS) - @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/tidy ${STAGEDIR}${PREFIX}/bin/tidy4 + ${INSTALL_MAN} ${WRKSRC}/man_page.txt ${STAGEDIR}${MANPREFIX}/man/man1/tidy4.1 +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for docfile in ${DOCFILES} - @${INSTALL_MAN} ${WRKSRC}/${docfile} ${DOCSDIR}/ + ${INSTALL_MAN} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}/ .endfor .endif |