Lines 1-36
Link Here
|
1 |
# New ports collection makefile for: xerces-c2 |
1 |
# Created by: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) |
2 |
# Date created: 06 September 2002 |
2 |
# $FreeBSD: $ |
3 |
# Whom: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) |
3 |
|
4 |
# |
4 |
PORTNAME= xerces-c2 |
5 |
# $FreeBSD: ports/textproc/xerces-c2/Makefile,v 1.29 2012/01/09 04:01:17 eadler Exp $ |
5 |
PORTVERSION= 2.7.0 |
6 |
# |
6 |
PORTREVISION= 1 |
7 |
|
7 |
CATEGORIES= textproc |
8 |
PORTNAME= xerces-c2 |
8 |
MASTER_SITES= ${MASTER_SITE_APACHE_XML} |
9 |
PORTVERSION= 2.7.0 |
|
|
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= textproc |
12 |
MASTER_SITES= ${MASTER_SITE_APACHE_XML} |
13 |
MASTER_SITE_SUBDIR= xerces-c/source |
9 |
MASTER_SITE_SUBDIR= xerces-c/source |
14 |
DISTNAME= xerces-c-src_${PORTVERSION:S/./_/g} |
10 |
DISTNAME= xerces-c-src_${PORTVERSION:S/./_/g} |
15 |
|
11 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= Validating XML parser from the Apache XML Project |
13 |
COMMENT= Validating XML parser from the Apache XML Project |
18 |
|
14 |
|
19 |
OPTIONS= THREADS "Build a thread enabled shared library." on \ |
15 |
OPTIONS_DEFINE= DOCS DEBUG EXAMPLES THREADS |
20 |
DEBUG "Include debugging information, do not strip." off \ |
16 |
OPTIONS_SINGLE= TCODER |
21 |
ICONVFBSD "Use IconvFBSD transcoder." on \ |
17 |
OPTIONS_SINGLE_TCODER= ICONVFBSD ICU NATIVE |
22 |
ICU "Use ICU transcoder." off \ |
18 |
OPTIONS_DEFAULT= ICONVFBSD THREADS |
23 |
NATIVE "Use native transcoder." off |
19 |
ICONVFBSD_DESC= Use IconvFBSD transcoder |
|
|
20 |
ICU_DESC= Use ICU transcoder |
21 |
NATIVE_DESC= Use native transcoder |
24 |
|
22 |
|
25 |
.include <bsd.port.pre.mk> |
23 |
.include <bsd.port.options.mk> |
26 |
|
24 |
|
27 |
.if defined(WITH_NATIVE) |
25 |
.if ${PORT_OPTIONS:MNATIVE} |
28 |
TRANSCODER= native |
26 |
TRANSCODER= native |
29 |
.endif |
27 |
.endif |
30 |
.if defined(WITH_ICU) |
28 |
.if ${PORT_OPTIONS:MICU} |
31 |
TRANSCODER= icu |
29 |
TRANSCODER= icu |
32 |
.endif |
30 |
.endif |
33 |
.if defined(WITH_ICONVFBSD) |
31 |
.if ${PORT_OPTIONS:MICONVFBSD} |
34 |
TRANSCODER= IconvFBSD |
32 |
TRANSCODER= IconvFBSD |
35 |
.endif |
33 |
.endif |
36 |
|
34 |
|
Lines 84-90
Link Here
|
84 |
|
82 |
|
85 |
CONFIGURE_ARGS+= -t ${TRANSCODER} |
83 |
CONFIGURE_ARGS+= -t ${TRANSCODER} |
86 |
|
84 |
|
87 |
.if defined(WITH_DEBUG) |
85 |
.if ${PORT_OPTIONS:MDEBUG} |
88 |
CONFIGURE_ARGS+= -d |
86 |
CONFIGURE_ARGS+= -d |
89 |
.endif |
87 |
.endif |
90 |
|
88 |
|
Lines 96-102
Link Here
|
96 |
SAMPLES_CONFIG_ARGS+= -b 64 |
94 |
SAMPLES_CONFIG_ARGS+= -b 64 |
97 |
.endif |
95 |
.endif |
98 |
|
96 |
|
99 |
.if defined(WITHOUT_THREADS) |
97 |
.if !${PORT_OPTIONS:MTHREADS} |
100 |
CONFIGURE_ARGS+= -r none |
98 |
CONFIGURE_ARGS+= -r none |
101 |
.else |
99 |
.else |
102 |
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
100 |
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
Lines 110-122
Link Here
|
110 |
XERCESC_DEPDOM_LIB=${XERCESC_DEPDOM_LIB} \ |
108 |
XERCESC_DEPDOM_LIB=${XERCESC_DEPDOM_LIB} \ |
111 |
XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION} |
109 |
XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION} |
112 |
|
110 |
|
113 |
.if !defined(NOPORTEXAMPLES) |
111 |
.if ${PORT_OPTIONS:MEXAMPLES} |
114 |
ALL_TARGET?= all samples |
112 |
ALL_TARGET?= all samples |
115 |
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \ |
113 |
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \ |
116 |
PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \ |
114 |
PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \ |
117 |
SCMPrint SEnumVal StdInParse |
115 |
SCMPrint SEnumVal StdInParse |
118 |
SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX} |
116 |
SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX} |
119 |
.if defined(WITHOUT_THREADS) |
117 |
.if !${PORT_OPTIONS:MTHREADS} |
120 |
SAMPLES_CONFIG_ARGS+= -r none |
118 |
SAMPLES_CONFIG_ARGS+= -r none |
121 |
.else |
119 |
.else |
122 |
SAMPLES_CONFIG_ARGS+= -r pthread |
120 |
SAMPLES_CONFIG_ARGS+= -r pthread |
Lines 125-141
Link Here
|
125 |
.endif |
123 |
.endif |
126 |
.endif |
124 |
.endif |
127 |
|
125 |
|
128 |
.if !defined(NOPORTDOCS) |
126 |
.if ${PORT_OPTIONS:MDOCS} |
129 |
PORTDOCS= * |
127 |
PORTDOCS= * |
130 |
.endif |
128 |
.endif |
131 |
|
129 |
|
132 |
SCRIPTS_ENV= WITH_NATIVE="${WITH_NATIVE}" \ |
|
|
133 |
WITH_ICU="${WITH_ICU}" \ |
134 |
WITH_ICONVFBSD="${WITH_ICONVFBSD}" |
135 |
|
136 |
pre-extract: |
137 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check-config-options |
138 |
|
139 |
post-patch: |
130 |
post-patch: |
140 |
@${REINPLACE_CMD} -e 's#CP = -cp -p#CP = -cp#' \ |
131 |
@${REINPLACE_CMD} -e 's#CP = -cp -p#CP = -cp#' \ |
141 |
${WRKSRC}/src/xercesc/Makefile.incl |
132 |
${WRKSRC}/src/xercesc/Makefile.incl |
Lines 148-154
Link Here
|
148 |
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure |
139 |
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure |
149 |
|
140 |
|
150 |
post-configure: |
141 |
post-configure: |
151 |
.if !defined(NOPORTEXAMPLES) |
142 |
.if ${PORT_OPTIONS:MEXAMPLES} |
152 |
.if defined(TRANSCODER) && (${TRANSCODER} == "icu") |
143 |
.if defined(TRANSCODER) && (${TRANSCODER} == "icu") |
153 |
@(cd ${WRKSRC}/samples && \ |
144 |
@(cd ${WRKSRC}/samples && \ |
154 |
${SETENV} \ |
145 |
${SETENV} \ |
Lines 167-177
Link Here
|
167 |
.endif |
158 |
.endif |
168 |
|
159 |
|
169 |
post-install: |
160 |
post-install: |
170 |
.if !defined(NOPORTDOCS) |
161 |
.if ${PORT_OPTIONS:MDOCS} |
171 |
@${MKDIR} ${DOCSDIR} |
162 |
@${MKDIR} ${DOCSDIR} |
172 |
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR} |
163 |
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR} |
173 |
.endif |
164 |
.endif |
174 |
.if !defined(NOPORTEXAMPLES) |
165 |
.if ${PORT_OPTIONS:MEXAMPLES} |
175 |
@${MKDIR} ${EXAMPLESDIR} |
166 |
@${MKDIR} ${EXAMPLESDIR} |
176 |
.for i in ${XERCES_BINS} data |
167 |
.for i in ${XERCES_BINS} data |
177 |
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR} |
168 |
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR} |
Lines 181-184
Link Here
|
181 |
.endfor |
172 |
.endfor |
182 |
.endif |
173 |
.endif |
183 |
|
174 |
|
184 |
.include <bsd.port.post.mk> |
175 |
.include <bsd.port.mk> |