summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/tclxml/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/devel/tclxml/Makefile b/devel/tclxml/Makefile
index ae28a99b002a..337bfb67d334 100644
--- a/devel/tclxml/Makefile
+++ b/devel/tclxml/Makefile
@@ -9,15 +9,17 @@ MASTER_SITES= LOCAL/bf SF/tclxml/TclXML/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= API for parsing XML documents using Tcl
-LIB_DEPENDS= xslt:${PORTSDIR}/textproc/libxslt
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libxslt.so:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS?= dtplite:${PORTSDIR}/devel/tcllib
PORTDOCS= README.xml html.xsl man.macros nroff.xsl tcldoc-1.0.dtd \
tcldom.html tcldom.xml tclxml.css tclxml.html tclxml.xml \
tclxslt.html tclxslt.xml transform.tcl txt.xsl
-USES= tcl
-USE_XZ= yes
+USES= tcl tar:xz
XML_CONFIG?= ${LOCALBASE}/bin/xml2-config
GNU_CONFIGURE= yes
USE_LDCONFIG?= ${PREFIX}/lib/Tclxml${PORTVERSION}
@@ -25,22 +27,17 @@ CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
XML_CONFIG="${XML_CONFIG}"
PLIST_SUB= VER=${PORTVERSION}
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS
-
-.include <bsd.port.options.mk>
+MAKE_ENV+= TCLLIBPATH=${STAGEDIR}/usr/local/lib
post-patch:
@${REINPLACE_CMD} -e '/^TCLSH_ENV[[:blank:]]*=/,/[^\]$$/d' \
${WRKSRC}/Makefile.in
-.if ${PORT_OPTIONS:MDOCS}
post-install:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} doc
- @${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
check test: install
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test