diff options
author | James E. Housley <jeh@FreeBSD.org> | 2001-02-13 12:59:35 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2001-02-13 12:59:35 +0000 |
commit | c88e11f89652f120373f04427f40737138c98e1e (patch) | |
tree | 54f61fc4a90dd71b0da354414fad23e7f2d1b575 /textproc/tclExpat/Makefile | |
parent | 2d692e019728cf48b8cd2ab272f9575eca518b91 (diff) | |
download | ports-c88e11f89652f120373f04427f40737138c98e1e.tar.gz ports-c88e11f89652f120373f04427f40737138c98e1e.zip |
Notes
Diffstat (limited to 'textproc/tclExpat/Makefile')
-rw-r--r-- | textproc/tclExpat/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/textproc/tclExpat/Makefile b/textproc/tclExpat/Makefile new file mode 100644 index 000000000000..7cde397c5850 --- /dev/null +++ b/textproc/tclExpat/Makefile @@ -0,0 +1,49 @@ +# Ports collection Makefile for: TclExpat +# Date created: Nov 16 2000 +# Whom: mi@aldan.algebra.com +# +# $FreeBSD$ +# + +PORTNAME= TclExpat +PORTVERSION= 1.1 +CATEGORIES= textproc tcl83 +MASTER_SITES= http://www.zveno.com/in-tclxml/ + +MAINTAINER= mi@aldan.algebra.com + +LIB_DEPENDS= tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER} \ + expat:${PORTSDIR}/textproc/expat2 + +INSTALLS_SHLIB= yes + +TCL_VERSION= 8.3 +TCL_DVER= ${TCL_VERSION:S/.//} +PLIST_SUB+= TCL_VERSION=${TCL_VERSION} + +MAKEFILE= ${FILESDIR}/Makefile + +# Remove the old version of expat bundled with the package: +post-extract: + ${RM} -rf ${WRKSRC}/expat + +post-patch: + ${PERL} -pi -e 's/TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 0/TCL_MAJOR_VERSION >= 8/;' \ + -e 's/xmlparse.h/expat.h/;' ${WRKSRC}/tclexpat.c + +test: build + ${LN} -sf libtclexpat.so ${WRKSRC}/tclexpat.so + cd ${WRKSRC} && tclsh${TCL_VERSION} test-break.tcl + cd ${WRKSRC} && tclsh${TCL_VERSION} test-continue.tcl + cd ${WRKSRC} && tclsh${TCL_VERSION} test-error.tcl + +post-install: + ${MKDIR} ${LOCALBASE}/lib/tcl${TCL_VERSION}/${PORTNAME} + ${SED} 's|PREFIX|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in > \ + ${LOCALBASE}/lib/tcl${TCL_VERSION}/${PORTNAME}/pkgIndex.tcl +.if !defined(NOPORTDOCS) + ${MKDIR} ${LOCALBASE}/share/doc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/README ${LOCALBASE}/share/doc/${PORTNAME}/ +.endif + +.include <bsd.port.mk> |