Lines 7-14
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= tDOM |
8 |
PORTNAME= tDOM |
9 |
PORTVERSION= 0.8.0 |
9 |
PORTVERSION= 0.8.0 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= www |
11 |
CATEGORIES= www |
11 |
MASTER_SITES= http://www.tdom.org/files/ |
12 |
MASTER_SITES= http://www.tdom.org/files/ |
|
|
13 |
PKGNAMESUFFIX?= -threads |
12 |
|
14 |
|
13 |
MAINTAINER= aldert@nooitgedagt.net |
15 |
MAINTAINER= aldert@nooitgedagt.net |
14 |
COMMENT= High performance XML data processing with Tcl (ARGS for OpenACS) |
16 |
COMMENT= High performance XML data processing with Tcl (ARGS for OpenACS) |
Lines 16-54
Link Here
|
16 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/unix |
18 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/unix |
17 |
TDOMBASE= ${PREFIX}/lib/tdom${PORTVERSION} |
19 |
TDOMBASE= ${PREFIX}/lib/tdom${PORTVERSION} |
18 |
|
20 |
|
19 |
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84-thread |
21 |
USE_TCL_VER?= 84 |
|
|
22 |
|
23 |
.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85 |
24 |
IGNORE= supported values for USE_TCL_VER are only 84 and 85 |
25 |
.endif |
26 |
|
27 |
# by default we want a threaded build |
28 |
USE_TCL= ${USE_TCL_VER}-thread |
29 |
USE_TCL_BUILD= ${USE_TCL_VER}-thread |
20 |
|
30 |
|
21 |
USE_GMAKE= yes |
31 |
USE_GMAKE= yes |
22 |
HAS_CONFIGURE= yes |
32 |
HAS_CONFIGURE= yes |
23 |
CONFIGURE_SCRIPT= ../configure |
33 |
CONFIGURE_SCRIPT= ../configure |
24 |
CONFIGURE_ARGS= --enable-threads --disable-tdomalloc --with-tcl=${LOCALBASE}/lib/tcl8.4 \ |
|
|
25 |
--with-tclinclude=${LOCALBASE}/include/tcl8.4 --prefix=${PREFIX} |
26 |
|
34 |
|
27 |
INSTALLS_SHLIB= YES |
35 |
USE_LDCONFIG= ${TDOMBASE} |
28 |
LDCONFIG_DIRS+= ${TDOMBASE} |
|
|
29 |
|
36 |
|
30 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
37 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
31 |
|
38 |
|
32 |
pre-configure: |
|
|
33 |
@${ECHO_CMD} |
34 |
@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" |
35 |
@${ECHO_CMD} " Please make sure that you either have lang/tcl84-thread or " |
36 |
@${ECHO_CMD} " no tcl84 installed before you add this port " |
37 |
@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" |
38 |
@${ECHO_CMD} |
39 |
|
40 |
post-configure: |
41 |
@if ${GREP} -qs 'enable-threads requested, but attempting building against' ${WRKSRC}/config.log ; then \ |
42 |
${ECHO_CMD} "" && \ |
43 |
${ECHO_CMD} " =====================================================" && \ |
44 |
${ECHO_CMD} " You need ${PORTSDIR}/lang/tcl84-thread but you appear " && \ |
45 |
${ECHO_CMD} " to have the non-threaded TCL version installed." && \ |
46 |
${ECHO_CMD} " =====================================================" && \ |
47 |
${ECHO_CMD} "" && \ |
48 |
${FALSE}; \ |
49 |
fi |
50 |
|
51 |
MANN= dom.n domDoc.n domNode.n expat.n expatapi.n tdomcmd.n tnc.n |
39 |
MANN= dom.n domDoc.n domNode.n expat.n expatapi.n tdomcmd.n tnc.n |
52 |
MANCOMPRESSED= no |
40 |
MANCOMPRESSED= no |
53 |
|
41 |
|
54 |
.include <bsd.port.mk> |
42 |
DOCS= CHANGES LICENSE README README.AOL |
|
|
43 |
HTMLDOCS= category-index.html dom.html domDoc.html domNode.html \ |
44 |
expat.html expatapi.html index.html keyword-index.html \ |
45 |
tdomcmd.html tnc.html |
46 |
|
47 |
.include <bsd.port.pre.mk> |
48 |
|
49 |
.if exists(${TCLSH}) |
50 |
_TCL_IS_THREADED!= ${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} || return 0 |
51 |
. if empty(_TCL_IS_THREADED) |
52 |
# Check if a threaded build is forced |
53 |
. if defined(TCL_WITH_THREADS) || defined(WITH_THREADS) |
54 |
IGNORE= tcl with threads is required. Please install tcl with WITH_THREADS defined or from lang/tcl${USE_TCL} port and try again |
55 |
. else |
56 |
# Installed tcl is not threaded, so set correct dependencies |
57 |
CONFIGURE_ARGS+= --disable-threads |
58 |
PKGNAMESUFFIX= |
59 |
USE_TCL=${USE_TCL_VER} |
60 |
USE_TCL_BUILD=${USE_TCL_VER} |
61 |
.include "${PORTSDIR}/Mk/bsd.tcl.mk" |
62 |
. endif |
63 |
. else |
64 |
CONFIGURE_ARGS+= --enable-threads |
65 |
. endif |
66 |
.else |
67 |
CONFIGURE_ARGS+= --enable-threads |
68 |
.endif |
69 |
|
70 |
CONFIGURE_ARGS+= -disable-tdomalloc --with-tcl=${TCL_LIBDIR} \ |
71 |
--with-tclinclude=${TCL_INCLUDEDIR} --prefix=${PREFIX} |
72 |
|
73 |
post-install: |
74 |
.if !defined(NOPORTDOCS) |
75 |
@${MKDIR} ${DOCSDIR}/html |
76 |
. for FILE in ${DOCS} |
77 |
@${INSTALL_DATA} ${WRKSRC}/../${FILE} ${DOCSDIR}/${FILE} |
78 |
. endfor |
79 |
. for FILE in ${HTMLDOCS} |
80 |
@${INSTALL_DATA} ${WRKSRC}/../doc/${FILE} ${DOCSDIR}/html/${FILE} |
81 |
. endfor |
82 |
.endif |
83 |
|
84 |
.include <bsd.port.post.mk> |