summaryrefslogtreecommitdiffstats
path: root/www/tdom/Makefile
blob: 9616dc694542df440a79a80108a2f9ba868fe632 (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
# Created by: Aldert Nooitgedagt
# $FreeBSD$

PORTNAME=	tDOM
PORTVERSION=	0.8.3
CATEGORIES=	www
MASTER_SITES=	GHC http://mirrors.rit.edu/zi/

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	High performance XML data processing with Tcl (ARGS for OpenACS)

TDOMBASE=	${PREFIX}/lib/tdom${PORTVERSION}

OPTIONS_DEFINE=	DOCS

USES=		gmake tar:tgz tcl:tea
USE_GITHUB=	yes

pre-configure:
	${RM} -f ${WRKSRC}/generic/domalloc.?

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

DOCS=		CHANGES LICENSE README README.AOL
HTMLDOCS=	category-index.html dom.html domDoc.html domNode.html \
		expat.html expatapi.html index.html keyword-index.html \
		tdomcmd.html tnc.html

post-build test:
	${SETENV} LANG=C ${MAKE} -C ${WRKSRC} test

CONFIGURE_ARGS+=--enable-threads --disable-tdomalloc

post-install:
	${CHMOD} 755 ${STAGEDIR}${TDOMBASE}
	${CHMOD} 644 ${STAGEDIR}${TDOMBASE}/*

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for FILE in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}/${FILE}
.endfor
.for FILE in ${HTMLDOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}/html/${FILE}
.endfor

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