aboutsummaryrefslogtreecommitdiff
path: root/www/tidy-devel
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-03-31 16:01:33 +0000
committerRene Ladan <rene@FreeBSD.org>2014-03-31 16:01:33 +0000
commit9cf5a6946935ac216e050f23d5dff80560fecf6d (patch)
treeb90503790fe67c180858749116d65041b9d06458 /www/tidy-devel
parentd7fe482fd91be3a43df37c4d8394879e99d2c299 (diff)
downloadports-9cf5a6946935ac216e050f23d5dff80560fecf6d.tar.gz
ports-9cf5a6946935ac216e050f23d5dff80560fecf6d.zip
Notes
Diffstat (limited to 'www/tidy-devel')
-rw-r--r--www/tidy-devel/Makefile18
-rw-r--r--www/tidy-devel/pkg-plist1
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