freebsd-ports/devel/tclxml/Makefile
Rodrigo Osorio a99e7281f5 - stagify the port
- fix LIB_DEPENDS
- add LICENSE and LICENSE_FILE

Submitted by:	rodrigo
Approved by:	bapt (mentor)
2014-07-04 09:23:08 +00:00

45 lines
1.2 KiB
Makefile

# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
PORTNAME= tclxml
PORTVERSION= 3.3
CATEGORIES= devel tcl
MASTER_SITES= LOCAL/bf SF/tclxml/TclXML/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= API for parsing XML documents using Tcl
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 tar:xz
XML_CONFIG?= ${LOCALBASE}/bin/xml2-config
GNU_CONFIGURE= yes
USE_LDCONFIG?= ${PREFIX}/lib/Tclxml${PORTVERSION}
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
XML_CONFIG="${XML_CONFIG}"
PLIST_SUB= VER=${PORTVERSION}
OPTIONS_DEFINE= DOCS
MAKE_ENV+= TCLLIBPATH=${STAGEDIR}/usr/local/lib
post-patch:
@${REINPLACE_CMD} -e '/^TCLSH_ENV[[:blank:]]*=/,/[^\]$$/d' \
${WRKSRC}/Makefile.in
post-install:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} doc
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
check test: install
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
.include <bsd.port.mk>