aboutsummaryrefslogtreecommitdiff
path: root/textproc/tclExpat/Makefile
blob: 36bc729a8f8e699e6e2d1b98438ac7acac0b544f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: mi@aldan.algebra.com
# $FreeBSD$

PORTNAME=	TclExpat
PORTVERSION=	1.1
PORTREVISION=	6
CATEGORIES=	textproc tcl
#MASTER_SITES=	http://T32.TecNik93.com/FreeBSD/others_ports/${PORTNAME}/sources/

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Tcl interface to Expat library

LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2

USE_LDCONFIG=	yes

USES=		tcl uidfix
PLIST_SUB+=	TCL_VERSION=${TCL_VER}

MAKEFILE=	${FILESDIR}/Makefile
MAKE_ENV+=	TCL_VERSION=${TCL_VER}

OPTIONS_DEFINE=	DOCS

# Remove the old version of expat bundled with the package:
post-extract:
	${RM} -rf ${WRKSRC}/expat

post-build test:
	${LN} -sf libtclexpat.so ${WRKSRC}/tclexpat.so
	cd ${WRKSRC} && ${TCLSH} test-break.tcl
	cd ${WRKSRC} && ${TCLSH} test-continue.tcl
	cd ${WRKSRC} && ${TCLSH} test-error.tcl

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
	${SED} 's|PREFIX|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in > \
		${STAGEDIR}${PREFIX}/lib/${PORTNAME}/pkgIndex.tcl
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>