2001-02-13 13:59:35 +01:00
|
|
|
# Ports collection Makefile for: TclExpat
|
|
|
|
# Date created: Nov 16 2000
|
|
|
|
# Whom: mi@aldan.algebra.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= TclExpat
|
|
|
|
PORTVERSION= 1.1
|
2006-08-14 21:11:05 +02:00
|
|
|
PORTREVISION= 5
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= textproc tcl
|
2008-03-25 10:53:44 +01:00
|
|
|
MASTER_SITES= http://T32.TecNik93.com/FreeBSD/others_ports/${PORTNAME}/sources/
|
2001-02-13 13:59:35 +01:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The TCL interface to Expat library
|
2001-02-13 13:59:35 +01:00
|
|
|
|
|
|
|
LIB_DEPENDS= tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER} \
|
2006-08-14 21:11:05 +02:00
|
|
|
expat:${PORTSDIR}/textproc/expat2
|
2001-02-13 13:59:35 +01:00
|
|
|
|
2007-01-28 01:36:35 +01:00
|
|
|
USE_LDCONFIG= yes
|
2001-02-13 13:59:35 +01:00
|
|
|
|
2006-08-14 21:11:05 +02:00
|
|
|
TCL_VERSION?= 8.4
|
2001-02-13 13:59:35 +01:00
|
|
|
TCL_DVER= ${TCL_VERSION:S/.//}
|
|
|
|
PLIST_SUB+= TCL_VERSION=${TCL_VERSION}
|
|
|
|
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
2006-08-14 21:11:05 +02:00
|
|
|
MAKE_ENV+= TCL_VERSION=${TCL_VERSION}
|
2001-02-13 13:59:35 +01:00
|
|
|
|
|
|
|
# Remove the old version of expat bundled with the package:
|
|
|
|
post-extract:
|
|
|
|
${RM} -rf ${WRKSRC}/expat
|
|
|
|
|
2006-08-14 21:11:05 +02:00
|
|
|
post-build test:
|
2001-02-13 13:59:35 +01:00
|
|
|
${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>
|