aboutsummaryrefslogtreecommitdiff
path: root/textproc/xerces-c2/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-09-06 01:10:09 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-09-06 01:10:09 +0000
commit29887c6d8ac08a66baa3948416b4bdff449727dd (patch)
tree56d0df6ec83833bbcfe2f1c7a8dd0e652dff406e /textproc/xerces-c2/Makefile
parenta24aeb28ebac7c4473971f143405ca1b7c78c2d3 (diff)
downloadports-29887c6d8ac08a66baa3948416b4bdff449727dd.tar.gz
ports-29887c6d8ac08a66baa3948416b4bdff449727dd.zip
Notes
Diffstat (limited to 'textproc/xerces-c2/Makefile')
-rw-r--r--textproc/xerces-c2/Makefile25
1 files changed, 8 insertions, 17 deletions
diff --git a/textproc/xerces-c2/Makefile b/textproc/xerces-c2/Makefile
index 7f0cadd82928..92a2bf9caeb0 100644
--- a/textproc/xerces-c2/Makefile
+++ b/textproc/xerces-c2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xerces-c2
PORTVERSION= 2.7.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= xerces-c/source
@@ -16,8 +17,6 @@ MAINTAINER= kenm@icarz.com
COMMENT= Validating XML parser from the Apache XML Project
OPTIONS= THREADS "Build a thread enabled shared library." on \
- SAMPLES "Copy sample binaries and sources." on \
- PORTDOCS "Copy documentation." on \
DEBUG "Include debugging information, do not strip." off \
ICONVFBSD "Use IconvFBSD transcoder." on \
ICU "Use ICU transcoder." off \
@@ -84,9 +83,8 @@ CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX}
CONFIGURE_ARGS+= -t ${TRANSCODER}
-.if !defined(WITHOUT_DEBUG)
+.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= -d
-STRIP=
.endif
.if defined(ARCH) && \
@@ -109,10 +107,9 @@ XERCESC_LIB= libxerces-c.so.${PORTVERSION:S/.//}
XERCESC_DEPDOM_LIB= libxerces-depdom.so.${PORTVERSION:S/.//}
PLIST_SUB+= XERCESC_LIB=${XERCESC_LIB} \
XERCESC_DEPDOM_LIB=${XERCESC_DEPDOM_LIB} \
- XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION}
+ XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION}
-.if !defined(WITHOUT_SAMPLES)
-PLIST_SUB+= NO_SAMPLES=""
+.if !defined(NOPORTEXAMPLES)
ALL_TARGET?= all samples
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \
PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \
@@ -125,11 +122,9 @@ SAMPLES_CONFIG_ARGS+= -r pthread
SAMPLES_CONFIG_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
.endif
-.else
-PLIST_SUB+= NO_SAMPLES="@comment "
.endif
-.if !defined(WITHOUT_PORTDOCS)
+.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
@@ -149,7 +144,7 @@ pre-configure:
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure
post-configure:
-.if !defined(WITHOUT_SAMPLES)
+.if !defined(NOPORTEXAMPLES)
.if defined(TRANSCODER) && (${TRANSCODER} == "icu")
@(cd ${WRKSRC}/samples && \
${SETENV} \
@@ -168,15 +163,11 @@ post-configure:
.endif
post-install:
-.if defined(WITHOUT_DEBUG)
- @${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
- @${STRIP_CMD} ${PREFIX}/lib/${XERCESC_DEPDOM_LIB}
-.endif
-.if !defined(WITHOUT_PORTDOCS)
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif
-.if !defined(WITHOUT_SAMPLES)
+.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in ${XERCES_BINS} data
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR}