diff options
author | rene <rene@FreeBSD.org> | 2014-04-01 00:01:33 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2014-04-01 00:01:33 +0800 |
commit | 77232c9d701f5a113869b55e4130b70e46e90b10 (patch) | |
tree | b90503790fe67c180858749116d65041b9d06458 /www/tidy-devel | |
parent | 7e35a8dc1608a405a47e82dd94f3dbef178d2d55 (diff) | |
download | freebsd-ports-gnome-77232c9d701f5a113869b55e4130b70e46e90b10.tar.gz freebsd-ports-gnome-77232c9d701f5a113869b55e4130b70e46e90b10.tar.zst freebsd-ports-gnome-77232c9d701f5a113869b55e4130b70e46e90b10.zip |
- Add stage support by modifying MAKE_ARGS
- Convert NOPORTDOCS to PORT_OPTIONS:MDOCS
Approved by: portmgr (blanket infrastructure)
Diffstat (limited to 'www/tidy-devel')
-rw-r--r-- | www/tidy-devel/Makefile | 18 | ||||
-rw-r--r-- | www/tidy-devel/pkg-plist | 1 |
2 files changed, 9 insertions, 10 deletions
diff --git a/www/tidy-devel/Makefile b/www/tidy-devel/Makefile index db824594ce4d..333c94fc88c9 100644 --- a/www/tidy-devel/Makefile +++ b/www/tidy-devel/Makefile @@ -18,7 +18,6 @@ COMMENT?= Utility to clean up and pretty print HTML/XHTML/XML BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt USES= tar:bzip2 -NO_STAGE= yes SLAVEDIRS= www/tidy-lib WRKSRC= ${WRKDIR}/${PORTNAME} @@ -27,6 +26,7 @@ MAKE_JOBS_UNSAFE= yes .if !defined(WITH_SHLIB) USES+= gmake PLIST_SUB= SHLIB="@comment " NSHLIB="" +MAKE_ARGS+= PREFIX=${STAGEDIR}${PREFIX} CONFLICTS= tidy-20000804* tidy-lib-[0-9]* .else USE_AUTOTOOLS= automake autoconf libtool @@ -40,11 +40,9 @@ DESCR= ${.CURDIR}/pkg-descr BIN2STRIP= tidy tab2space -.if !defined(WITH_SHLIB) -MAN1= tidy.1 -.endif +.include <bsd.port.options.mk> -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} . if !defined(WITH_SHLIB) ALL_TARGET= all doc DOCFILES= quickref.html @@ -101,15 +99,15 @@ patch-autotools-libtool:: post-install: .for pgm in ${BIN2STRIP} - ${STRIP_CMD} ${PREFIX}/bin/${pgm} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${pgm} .endfor .if defined(WITH_SHLIB) - ${STRIP_CMD} ${PREFIX}/lib/libtidy-0.99.so.0 + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtidy-0.99.so.0 .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/htmldoc/|} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/htmldoc/|} ${STAGEDIR}${DOCSDIR} @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." .endif diff --git a/www/tidy-devel/pkg-plist b/www/tidy-devel/pkg-plist index 2cd7b0cde432..788c4253df47 100644 --- a/www/tidy-devel/pkg-plist +++ b/www/tidy-devel/pkg-plist @@ -9,6 +9,7 @@ include/tidy/tidyenum.h %%SHLIB%%lib/libtidy.la %%SHLIB%%lib/libtidy.so lib/libtidy.a +%%NSHLIB%%man/man1/tidy.1.gz %%PORTDOCS%%%%DOCSDIR%%/Overview.html %%PORTDOCS%%%%DOCSDIR%%/checked_by_tidy.gif %%PORTDOCS%%%%DOCSDIR%%/faq.html |