summaryrefslogtreecommitdiffstats
path: root/www/tdom/Makefile
blob: 18e681837b6838679f47f8a98fc2f9d346be0b38 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	tDOM
# Date created:				July 2005
# Whom:					Aldert Nooitgedagt
#
# $FreeBSD$
#

PORTNAME=	tDOM
PORTVERSION=	0.8.0
CATEGORIES=	www
MASTER_SITES=	http://www.tdom.org/files/

MAINTAINER=	aldert@nooitgedagt.net
COMMENT=	High performance XML data processing with Tcl (ARGS for OpenACS)

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/unix
TDOMBASE=	${PREFIX}/lib/tdom${PORTVERSION}

LIB_DEPENDS+=	tcl84.1:${PORTSDIR}/lang/tcl84-thread

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	../configure
CONFIGURE_ARGS=	--enable-threads --disable-tdomalloc --with-tcl=${LOCALBASE}/lib/tcl8.4 \
		--with-tclinclude=${LOCALBASE}/include/tcl8.4  --prefix=${PREFIX}

INSTALLS_SHLIB=	YES
LDCONFIG_DIRS+=	${TDOMBASE}

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

pre-configure:
	@${ECHO_CMD}
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
	@${ECHO_CMD} " Please make sure that you either have lang/tcl84-thread or "
	@${ECHO_CMD} " no tcl84 installed before you add this port "
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
	@${ECHO_CMD}

post-configure:
	@if ${GREP} -qs 'enable-threads requested, but attempting building against' ${WRKSRC}/config.log ; then \
		${ECHO_CMD} "" && \
		${ECHO_CMD} " =====================================================" && \
		${ECHO_CMD} " You need ${PORTSDIR}/lang/tcl84-thread but you appear " && \
		${ECHO_CMD} " to have the non-threaded TCL version installed." && \
		${ECHO_CMD} " =====================================================" && \
		${ECHO_CMD} "" && \
		${FALSE}; \
	fi

MANN=		dom.n domDoc.n domNode.n expat.n expatapi.n tdomcmd.n tnc.n
MANCOMPRESSED=	no

.include <bsd.port.mk>
OpenPOWER on IntegriCloud