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

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

MAINTAINER= martin@matuska.org
COMMENT=    High performance XML data processing with Tcl (ARGS for OpenACS)

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

USE_TCL=    84+
USE_TCL_THREADS=    yes

USE_GMAKE=  yes
HAS_CONFIGURE=  yes
CONFIGURE_SCRIPT=   ../configure

USE_LDCONFIG=   ${TDOMBASE}

PLIST_SUB+= PORTVERSION=${PORTVERSION}

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

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

.include <bsd.port.pre.mk>

CONFIGURE_ARGS+=    --enable-threads --disable-tdomalloc \
        --with-tcl=${TCL_LIBDIR} \
        --with-tclinclude=${TCL_INCLUDEDIR} --prefix=${PREFIX}

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/html
. for FILE in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/../${FILE} ${DOCSDIR}/${FILE}
. endfor
. for FILE in ${HTMLDOCS}
    @${INSTALL_DATA} ${WRKSRC}/../doc/${FILE} ${DOCSDIR}/html/${FILE}
. endfor
.endif

.include <bsd.port.post.mk>