aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-10-25 16:18:57 +0800
committervs <vs@FreeBSD.org>2004-10-25 16:18:57 +0800
commit0bef889759dffeaaff3caec5fc951e777846f9c0 (patch)
treede626d866cc8e5296035255c981d665589d58122 /textproc
parent4d3dd862674dbdbaeecf02ec131047bba4ac77de (diff)
downloadfreebsd-ports-gnome-0bef889759dffeaaff3caec5fc951e777846f9c0.tar.gz
freebsd-ports-gnome-0bef889759dffeaaff3caec5fc951e777846f9c0.tar.zst
freebsd-ports-gnome-0bef889759dffeaaff3caec5fc951e777846f9c0.zip
- Update to 2.6.0
- Use OPTIONS The update has not been tested too well so if you experience any problems please drop me a line. PR: ports/72784 Submitted by: Bjoern A. Zeeb (maintainer)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/xerces-c2-devel/Makefile76
-rw-r--r--textproc/xerces-c2-devel/distinfo4
-rw-r--r--textproc/xerces-c2-devel/files/patch-ab29
-rw-r--r--textproc/xerces-c2-devel/files/patch-ac19
-rw-r--r--textproc/xerces-c2-devel/pkg-plist26
-rw-r--r--textproc/xerces-c2-devel/scripts/check-config-options28
-rw-r--r--textproc/xerces-c2/Makefile76
-rw-r--r--textproc/xerces-c2/distinfo4
-rw-r--r--textproc/xerces-c2/files/patch-ab29
-rw-r--r--textproc/xerces-c2/files/patch-ac19
-rw-r--r--textproc/xerces-c2/pkg-plist26
-rw-r--r--textproc/xerces-c2/scripts/check-config-options28
-rw-r--r--textproc/xerces-c27/Makefile76
-rw-r--r--textproc/xerces-c27/distinfo4
-rw-r--r--textproc/xerces-c27/files/patch-ab29
-rw-r--r--textproc/xerces-c27/files/patch-ac19
-rw-r--r--textproc/xerces-c27/pkg-plist26
-rw-r--r--textproc/xerces-c27/scripts/check-config-options28
18 files changed, 339 insertions, 207 deletions
diff --git a/textproc/xerces-c2-devel/Makefile b/textproc/xerces-c2-devel/Makefile
index 14515e8ad5e0..58c22c1994cf 100644
--- a/textproc/xerces-c2-devel/Makefile
+++ b/textproc/xerces-c2-devel/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= xerces-c2
-PORTVERSION= 2.5.0
-PORTREVISION= 2
+PORTVERSION= 2.6.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= xerces-c/source
@@ -16,9 +15,29 @@ DISTNAME= xerces-c-src_${PORTVERSION:S/./_/g}
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
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 \
+ NATIVE "Use native transcoder." off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NATIVE)
+TRANSCODER= native
+.endif
+.if defined(WITH_ICU)
+TRANSCODER= icu
+.endif
+.if defined(WITH_ICONVFBSD)
+TRANSCODER= IconvFBSD
+.endif
+
.if !defined(TRANSCODER)
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -39,7 +58,7 @@ PLIST_SUB+= TRANSICONV=""
PLIST_SUB+= TRANSICU="@comment "
.else
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -68,13 +87,11 @@ CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX}
CONFIGURE_ARGS+= -t ${TRANSCODER}
-.if defined(DEBUG)
+.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+= -d
STRIP=
.endif
-.include <bsd.port.pre.mk>
-
.if defined(ARCH) && \
(${ARCH} == "alpha" || ${ARCH} == "sparc64" || \
${ARCH} == "amd64" || ${ARCH} == "ia64")
@@ -83,7 +100,7 @@ CONFIGURE_ARGS+= -b 64
SAMPLES_CONFIG_ARGS+= -b 64
.endif
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= -r none
.else
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
@@ -92,16 +109,19 @@ CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
XERCESC_LIB_VERSION= ${PORTVERSION:S/.//:R}
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}
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
PLIST_SUB+= NO_SAMPLES=""
ALL_TARGET?= all samples
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \
- Redirect SAX2Count SAX2Print SAXCount SAXPrint SEnumVal StdInParse
+ PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \
+ SCMPrint SEnumVal StdInParse
SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX}
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
SAMPLES_CONFIG_ARGS+= -r none
.else
SAMPLES_CONFIG_ARGS+= -r pthread
@@ -112,27 +132,16 @@ SAMPLES_CONFIG_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PLIST_SUB+= NO_SAMPLES="@comment "
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
PORTDOCS= *
.endif
-pre-everything::
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
- @${ECHO} ''
- @${ECHO} 'You may use the following build options by defining'
- @${ECHO} 'them on the command line with -D'
- @${ECHO} ''
- @${ECHO} 'NO_THREADS do not build a thread enabled shared library'
- @${ECHO} 'NO_SAMPLES do not copy sample binaries and sources'
- @${ECHO} 'NOPORTDOCS do not copy documentation'
- @${ECHO} 'DEBUG include debugging information, do not strip'
- @${ECHO} ''
- @${ECHO} 'Also you may set TRANSCODER to the following values (without -D):'
- @${ECHO} ''
- @${ECHO} 'TRANSCODER=[icu|IconvFBSD|native] default: IconvFBSD'
- @${ECHO} ''
- @/bin/sleep 2
-.endif
+SCRIPTS_ENV= WITH_NATIVE="${WITH_NATIVE}" \
+ WITH_ICU="${WITH_ICU}" \
+ WITH_ICONVFBSD="${WITH_ICONVFBSD}"
+
+pre-extract:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check-config-options
post-patch:
@${REINPLACE_CMD} -e 's#CP = -cp -p#CP = -cp#' \
@@ -143,7 +152,7 @@ pre-configure:
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure
post-configure:
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
.if defined(TRANSCODER) && (${TRANSCODER} == "icu")
@(cd ${WRKSRC}/samples && \
${SETENV} \
@@ -162,14 +171,15 @@ post-configure:
.endif
post-install:
-.if !defined(DEBUG)
+.if defined(WITHOUT_DEBUG)
@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
+ @${STRIP_CMD} ${PREFIX}/lib/${XERCESC_DEPDOM_LIB}
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in ${XERCES_BINS} data
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR}
diff --git a/textproc/xerces-c2-devel/distinfo b/textproc/xerces-c2-devel/distinfo
index aec664fc78f3..d65af6105331 100644
--- a/textproc/xerces-c2-devel/distinfo
+++ b/textproc/xerces-c2-devel/distinfo
@@ -1,2 +1,2 @@
-MD5 (xerces-c-src_2_5_0.tar.gz) = e7ff7d007fabfa7e3fc8c75a8007b0b1
-SIZE (xerces-c-src_2_5_0.tar.gz) = 9379748
+MD5 (xerces-c-src_2_6_0.tar.gz) = 038b3614ae82d2878bcc820b9ccbe853
+SIZE (xerces-c-src_2_6_0.tar.gz) = 9324884
diff --git a/textproc/xerces-c2-devel/files/patch-ab b/textproc/xerces-c2-devel/files/patch-ab
index dc9393db3e6e..97af5e843c7f 100644
--- a/textproc/xerces-c2-devel/files/patch-ab
+++ b/textproc/xerces-c2-devel/files/patch-ab
@@ -1,14 +1,15 @@
---- src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Thu Mar 18 10:44:13 2004
-+++ src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Thu Mar 18 10:47:04 2004
-@@ -1340,6 +1340,11 @@
- if (wBufPtr)
- manager->deallocate(wBufPtr);//delete [] wBufPtr;
-
-+ // iconvTo resp. iconv(3) doe NOT return number of characters
-+ // converted but only number of non-reversible conversions;
-+ // thus we need to calculate correct mblen on our own
-+ mblen = ptr - toFill;
-+
- #endif /* !XML_USE_LIBICONV */
-
- // Cap it off just in case
+--- obj/Makefile.in.orig Fri Oct 15 19:55:39 2004
++++ obj/Makefile.in Fri Oct 15 19:55:53 2004
+@@ -247,10 +247,10 @@
+ (cd ${DESTDIR}$(PREFIX)/lib; rm -f ${LINK_DEPDOM}.a libxercesdepdom.dll.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a ${LINK_NAME}.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a libxercesdepdom.dll.a)
+ else
+ $(CP) ${FQ_REAL_NAME} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_NAME} ${SO_NAME}; ln -s ${REAL_NAME} ${LINK_NAME})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_NAME} ${SO_NAME}; ln -sf ${REAL_NAME} ${LINK_NAME})
+
+ $(CP) ${FQ_REAL_DEPDOM} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_DEPDOM} ${SO_DEPDOM}; ln -s ${REAL_DEPDOM} ${LINK_DEPDOM})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_DEPDOM} ${SO_DEPDOM}; ln -sf ${REAL_DEPDOM} ${LINK_DEPDOM})
+ endif
+ ifeq (${PLATFORM},OS390)
+ $(CP) ${LIBNAME}${VER}${OS390SIDEDECK} ${DESTDIR}$(PREFIX)/lib
diff --git a/textproc/xerces-c2-devel/files/patch-ac b/textproc/xerces-c2-devel/files/patch-ac
deleted file mode 100644
index 6c2f7de8a584..000000000000
--- a/textproc/xerces-c2-devel/files/patch-ac
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/xercesc/util/RefArrayOf.hpp 2004/01/29 11:48:46 1.6
-+++ src/xercesc/util/RefArrayOf.hpp 2004/06/23 22:19:35 1.7
-@@ -56,6 +56,9 @@
-
- /*
- * $Log: RefArrayOf.hpp,v $
-+ * Revision 1.7 2004/06/23 22:19:35 neilg
-+ * fix for compilation under gcc 3.5
-+ *
- * Revision 1.6 2004/01/29 11:48:46 cargilld
- * Code cleanup changes to get rid of various compiler diagnostic messages.
- *
-@@ -101,6 +104,7 @@
- #include <xercesc/util/ArrayIndexOutOfBoundsException.hpp>
- #include <xercesc/util/IllegalArgumentException.hpp>
- #include <xercesc/util/XMLEnumerator.hpp>
-+#include <xercesc/framework/MemoryManager.hpp>
-
- XERCES_CPP_NAMESPACE_BEGIN
diff --git a/textproc/xerces-c2-devel/pkg-plist b/textproc/xerces-c2-devel/pkg-plist
index f952f2884f47..e9d869245593 100644
--- a/textproc/xerces-c2-devel/pkg-plist
+++ b/textproc/xerces-c2-devel/pkg-plist
@@ -29,6 +29,7 @@ include/xercesc/dom/DOMNodeFilter.hpp
include/xercesc/dom/DOMNodeIterator.hpp
include/xercesc/dom/DOMNodeList.hpp
include/xercesc/dom/DOMNotation.hpp
+include/xercesc/dom/DOMPSVITypeInfo.hpp
include/xercesc/dom/DOMProcessingInstruction.hpp
include/xercesc/dom/DOMRange.hpp
include/xercesc/dom/DOMRangeException.hpp
@@ -135,6 +136,7 @@ include/xercesc/framework/psvi/XSObject.hpp
include/xercesc/framework/psvi/XSParticle.hpp
include/xercesc/framework/psvi/XSSimpleTypeDefinition.hpp
include/xercesc/framework/psvi/XSTypeDefinition.hpp
+include/xercesc/framework/psvi/XSValue.hpp
include/xercesc/framework/psvi/XSWildcard.hpp
include/xercesc/internal/BinFileOutputStream.hpp
include/xercesc/internal/BinMemOutputStream.hpp
@@ -159,6 +161,7 @@ include/xercesc/internal/XMLScanner.hpp
include/xercesc/internal/XMLScannerResolver.hpp
include/xercesc/internal/XObjectComparator.hpp
include/xercesc/internal/XProtoType.hpp
+include/xercesc/internal/XSAXMLScanner.hpp
include/xercesc/internal/XSObjectFactory.hpp
include/xercesc/internal/XSerializable.hpp
include/xercesc/internal/XSerializationException.hpp
@@ -416,9 +419,9 @@ include/xercesc/validators/datatype/QNameDatatypeValidator.hpp
include/xercesc/validators/datatype/StringDatatypeValidator.hpp
include/xercesc/validators/datatype/TimeDatatypeValidator.hpp
include/xercesc/validators/datatype/UnionDatatypeValidator.hpp
+include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/datatype/YearDatatypeValidator.hpp
include/xercesc/validators/datatype/YearMonthDatatypeValidator.hpp
-include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/schema/ComplexTypeInfo.hpp
include/xercesc/validators/schema/GeneralAttributeCheck.hpp
include/xercesc/validators/schema/NamespaceScope.hpp
@@ -448,6 +451,7 @@ include/xercesc/validators/schema/identity/IC_KeyRef.hpp
include/xercesc/validators/schema/identity/IC_Selector.hpp
include/xercesc/validators/schema/identity/IC_Unique.hpp
include/xercesc/validators/schema/identity/IdentityConstraint.hpp
+include/xercesc/validators/schema/identity/IdentityConstraintHandler.hpp
include/xercesc/validators/schema/identity/ValueStore.hpp
include/xercesc/validators/schema/identity/ValueStoreCache.hpp
include/xercesc/validators/schema/identity/XPathException.hpp
@@ -460,6 +464,11 @@ lib/%%XERCESC_LIB%%
@exec ln -sf %%XERCESC_LIB%% %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%
@unexec if test ! -r %D/lib/libxerces-c.so; then rm -f %D/lib/libxerces-c.so; fi
@unexec if test ! -r %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; fi
+lib/%%XERCESC_DEPDOM_LIB%%
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%
+@unexec if test ! -r %D/lib/libxerces-depdom.so; then rm -f %D/lib/libxerces-depdom.so; fi
+@unexec if test ! -r %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; fi
@dirrm include/xercesc/validators/schema/identity
@dirrm include/xercesc/validators/schema
@dirrm include/xercesc/validators/datatype
@@ -495,11 +504,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%bin/EnumVal
%%NO_SAMPLES%%bin/MemParse
%%NO_SAMPLES%%bin/PParse
+%%NO_SAMPLES%%bin/PSVIWriter
%%NO_SAMPLES%%bin/Redirect
%%NO_SAMPLES%%bin/SAX2Count
%%NO_SAMPLES%%bin/SAX2Print
%%NO_SAMPLES%%bin/SAXCount
%%NO_SAMPLES%%bin/SAXPrint
+%%NO_SAMPLES%%bin/SCMPrint
%%NO_SAMPLES%%bin/SEnumVal
%%NO_SAMPLES%%bin/StdInParse
%%NO_SAMPLES%%%%EXAMPLESDIR%%/CreateDOMDocument/CreateDOMDocument.cpp
@@ -533,6 +544,14 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParse.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Redirect.cpp
@@ -563,6 +582,9 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrint.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/SCMPrint.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/SEnumVal.cpp
@@ -580,11 +602,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/data
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/StdInParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SEnumVal
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SCMPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXCount
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Print
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Count
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/Redirect
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PSVIWriter
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/MemParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/EnumVal
diff --git a/textproc/xerces-c2-devel/scripts/check-config-options b/textproc/xerces-c2-devel/scripts/check-config-options
new file mode 100644
index 000000000000..ad49dd3b1c0a
--- /dev/null
+++ b/textproc/xerces-c2-devel/scripts/check-config-options
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $FreeBSD$
+
+rc=0
+
+if test -n "${WITH_NATIVE}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICU}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICONVFBSD}"; then
+ rc=$(expr $rc + 1)
+fi
+
+if test ${rc} -ne 1; then
+ echo "ERROR: please re-run make config and" >&2
+ if test ${rc} -gt 1; then
+ echo -n "only " >&2
+ fi
+ echo "select one of the three transcoders." >&2
+
+ exit 254
+fi
+
+exit 0
+
+# end
diff --git a/textproc/xerces-c2/Makefile b/textproc/xerces-c2/Makefile
index 14515e8ad5e0..58c22c1994cf 100644
--- a/textproc/xerces-c2/Makefile
+++ b/textproc/xerces-c2/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= xerces-c2
-PORTVERSION= 2.5.0
-PORTREVISION= 2
+PORTVERSION= 2.6.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= xerces-c/source
@@ -16,9 +15,29 @@ DISTNAME= xerces-c-src_${PORTVERSION:S/./_/g}
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
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 \
+ NATIVE "Use native transcoder." off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NATIVE)
+TRANSCODER= native
+.endif
+.if defined(WITH_ICU)
+TRANSCODER= icu
+.endif
+.if defined(WITH_ICONVFBSD)
+TRANSCODER= IconvFBSD
+.endif
+
.if !defined(TRANSCODER)
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -39,7 +58,7 @@ PLIST_SUB+= TRANSICONV=""
PLIST_SUB+= TRANSICU="@comment "
.else
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -68,13 +87,11 @@ CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX}
CONFIGURE_ARGS+= -t ${TRANSCODER}
-.if defined(DEBUG)
+.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+= -d
STRIP=
.endif
-.include <bsd.port.pre.mk>
-
.if defined(ARCH) && \
(${ARCH} == "alpha" || ${ARCH} == "sparc64" || \
${ARCH} == "amd64" || ${ARCH} == "ia64")
@@ -83,7 +100,7 @@ CONFIGURE_ARGS+= -b 64
SAMPLES_CONFIG_ARGS+= -b 64
.endif
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= -r none
.else
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
@@ -92,16 +109,19 @@ CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
XERCESC_LIB_VERSION= ${PORTVERSION:S/.//:R}
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}
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
PLIST_SUB+= NO_SAMPLES=""
ALL_TARGET?= all samples
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \
- Redirect SAX2Count SAX2Print SAXCount SAXPrint SEnumVal StdInParse
+ PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \
+ SCMPrint SEnumVal StdInParse
SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX}
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
SAMPLES_CONFIG_ARGS+= -r none
.else
SAMPLES_CONFIG_ARGS+= -r pthread
@@ -112,27 +132,16 @@ SAMPLES_CONFIG_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PLIST_SUB+= NO_SAMPLES="@comment "
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
PORTDOCS= *
.endif
-pre-everything::
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
- @${ECHO} ''
- @${ECHO} 'You may use the following build options by defining'
- @${ECHO} 'them on the command line with -D'
- @${ECHO} ''
- @${ECHO} 'NO_THREADS do not build a thread enabled shared library'
- @${ECHO} 'NO_SAMPLES do not copy sample binaries and sources'
- @${ECHO} 'NOPORTDOCS do not copy documentation'
- @${ECHO} 'DEBUG include debugging information, do not strip'
- @${ECHO} ''
- @${ECHO} 'Also you may set TRANSCODER to the following values (without -D):'
- @${ECHO} ''
- @${ECHO} 'TRANSCODER=[icu|IconvFBSD|native] default: IconvFBSD'
- @${ECHO} ''
- @/bin/sleep 2
-.endif
+SCRIPTS_ENV= WITH_NATIVE="${WITH_NATIVE}" \
+ WITH_ICU="${WITH_ICU}" \
+ WITH_ICONVFBSD="${WITH_ICONVFBSD}"
+
+pre-extract:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check-config-options
post-patch:
@${REINPLACE_CMD} -e 's#CP = -cp -p#CP = -cp#' \
@@ -143,7 +152,7 @@ pre-configure:
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure
post-configure:
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
.if defined(TRANSCODER) && (${TRANSCODER} == "icu")
@(cd ${WRKSRC}/samples && \
${SETENV} \
@@ -162,14 +171,15 @@ post-configure:
.endif
post-install:
-.if !defined(DEBUG)
+.if defined(WITHOUT_DEBUG)
@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
+ @${STRIP_CMD} ${PREFIX}/lib/${XERCESC_DEPDOM_LIB}
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in ${XERCES_BINS} data
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR}
diff --git a/textproc/xerces-c2/distinfo b/textproc/xerces-c2/distinfo
index aec664fc78f3..d65af6105331 100644
--- a/textproc/xerces-c2/distinfo
+++ b/textproc/xerces-c2/distinfo
@@ -1,2 +1,2 @@
-MD5 (xerces-c-src_2_5_0.tar.gz) = e7ff7d007fabfa7e3fc8c75a8007b0b1
-SIZE (xerces-c-src_2_5_0.tar.gz) = 9379748
+MD5 (xerces-c-src_2_6_0.tar.gz) = 038b3614ae82d2878bcc820b9ccbe853
+SIZE (xerces-c-src_2_6_0.tar.gz) = 9324884
diff --git a/textproc/xerces-c2/files/patch-ab b/textproc/xerces-c2/files/patch-ab
index dc9393db3e6e..97af5e843c7f 100644
--- a/textproc/xerces-c2/files/patch-ab
+++ b/textproc/xerces-c2/files/patch-ab
@@ -1,14 +1,15 @@
---- src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Thu Mar 18 10:44:13 2004
-+++ src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Thu Mar 18 10:47:04 2004
-@@ -1340,6 +1340,11 @@
- if (wBufPtr)
- manager->deallocate(wBufPtr);//delete [] wBufPtr;
-
-+ // iconvTo resp. iconv(3) doe NOT return number of characters
-+ // converted but only number of non-reversible conversions;
-+ // thus we need to calculate correct mblen on our own
-+ mblen = ptr - toFill;
-+
- #endif /* !XML_USE_LIBICONV */
-
- // Cap it off just in case
+--- obj/Makefile.in.orig Fri Oct 15 19:55:39 2004
++++ obj/Makefile.in Fri Oct 15 19:55:53 2004
+@@ -247,10 +247,10 @@
+ (cd ${DESTDIR}$(PREFIX)/lib; rm -f ${LINK_DEPDOM}.a libxercesdepdom.dll.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a ${LINK_NAME}.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a libxercesdepdom.dll.a)
+ else
+ $(CP) ${FQ_REAL_NAME} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_NAME} ${SO_NAME}; ln -s ${REAL_NAME} ${LINK_NAME})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_NAME} ${SO_NAME}; ln -sf ${REAL_NAME} ${LINK_NAME})
+
+ $(CP) ${FQ_REAL_DEPDOM} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_DEPDOM} ${SO_DEPDOM}; ln -s ${REAL_DEPDOM} ${LINK_DEPDOM})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_DEPDOM} ${SO_DEPDOM}; ln -sf ${REAL_DEPDOM} ${LINK_DEPDOM})
+ endif
+ ifeq (${PLATFORM},OS390)
+ $(CP) ${LIBNAME}${VER}${OS390SIDEDECK} ${DESTDIR}$(PREFIX)/lib
diff --git a/textproc/xerces-c2/files/patch-ac b/textproc/xerces-c2/files/patch-ac
deleted file mode 100644
index 6c2f7de8a584..000000000000
--- a/textproc/xerces-c2/files/patch-ac
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/xercesc/util/RefArrayOf.hpp 2004/01/29 11:48:46 1.6
-+++ src/xercesc/util/RefArrayOf.hpp 2004/06/23 22:19:35 1.7
-@@ -56,6 +56,9 @@
-
- /*
- * $Log: RefArrayOf.hpp,v $
-+ * Revision 1.7 2004/06/23 22:19:35 neilg
-+ * fix for compilation under gcc 3.5
-+ *
- * Revision 1.6 2004/01/29 11:48:46 cargilld
- * Code cleanup changes to get rid of various compiler diagnostic messages.
- *
-@@ -101,6 +104,7 @@
- #include <xercesc/util/ArrayIndexOutOfBoundsException.hpp>
- #include <xercesc/util/IllegalArgumentException.hpp>
- #include <xercesc/util/XMLEnumerator.hpp>
-+#include <xercesc/framework/MemoryManager.hpp>
-
- XERCES_CPP_NAMESPACE_BEGIN
diff --git a/textproc/xerces-c2/pkg-plist b/textproc/xerces-c2/pkg-plist
index f952f2884f47..e9d869245593 100644
--- a/textproc/xerces-c2/pkg-plist
+++ b/textproc/xerces-c2/pkg-plist
@@ -29,6 +29,7 @@ include/xercesc/dom/DOMNodeFilter.hpp
include/xercesc/dom/DOMNodeIterator.hpp
include/xercesc/dom/DOMNodeList.hpp
include/xercesc/dom/DOMNotation.hpp
+include/xercesc/dom/DOMPSVITypeInfo.hpp
include/xercesc/dom/DOMProcessingInstruction.hpp
include/xercesc/dom/DOMRange.hpp
include/xercesc/dom/DOMRangeException.hpp
@@ -135,6 +136,7 @@ include/xercesc/framework/psvi/XSObject.hpp
include/xercesc/framework/psvi/XSParticle.hpp
include/xercesc/framework/psvi/XSSimpleTypeDefinition.hpp
include/xercesc/framework/psvi/XSTypeDefinition.hpp
+include/xercesc/framework/psvi/XSValue.hpp
include/xercesc/framework/psvi/XSWildcard.hpp
include/xercesc/internal/BinFileOutputStream.hpp
include/xercesc/internal/BinMemOutputStream.hpp
@@ -159,6 +161,7 @@ include/xercesc/internal/XMLScanner.hpp
include/xercesc/internal/XMLScannerResolver.hpp
include/xercesc/internal/XObjectComparator.hpp
include/xercesc/internal/XProtoType.hpp
+include/xercesc/internal/XSAXMLScanner.hpp
include/xercesc/internal/XSObjectFactory.hpp
include/xercesc/internal/XSerializable.hpp
include/xercesc/internal/XSerializationException.hpp
@@ -416,9 +419,9 @@ include/xercesc/validators/datatype/QNameDatatypeValidator.hpp
include/xercesc/validators/datatype/StringDatatypeValidator.hpp
include/xercesc/validators/datatype/TimeDatatypeValidator.hpp
include/xercesc/validators/datatype/UnionDatatypeValidator.hpp
+include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/datatype/YearDatatypeValidator.hpp
include/xercesc/validators/datatype/YearMonthDatatypeValidator.hpp
-include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/schema/ComplexTypeInfo.hpp
include/xercesc/validators/schema/GeneralAttributeCheck.hpp
include/xercesc/validators/schema/NamespaceScope.hpp
@@ -448,6 +451,7 @@ include/xercesc/validators/schema/identity/IC_KeyRef.hpp
include/xercesc/validators/schema/identity/IC_Selector.hpp
include/xercesc/validators/schema/identity/IC_Unique.hpp
include/xercesc/validators/schema/identity/IdentityConstraint.hpp
+include/xercesc/validators/schema/identity/IdentityConstraintHandler.hpp
include/xercesc/validators/schema/identity/ValueStore.hpp
include/xercesc/validators/schema/identity/ValueStoreCache.hpp
include/xercesc/validators/schema/identity/XPathException.hpp
@@ -460,6 +464,11 @@ lib/%%XERCESC_LIB%%
@exec ln -sf %%XERCESC_LIB%% %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%
@unexec if test ! -r %D/lib/libxerces-c.so; then rm -f %D/lib/libxerces-c.so; fi
@unexec if test ! -r %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; fi
+lib/%%XERCESC_DEPDOM_LIB%%
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%
+@unexec if test ! -r %D/lib/libxerces-depdom.so; then rm -f %D/lib/libxerces-depdom.so; fi
+@unexec if test ! -r %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; fi
@dirrm include/xercesc/validators/schema/identity
@dirrm include/xercesc/validators/schema
@dirrm include/xercesc/validators/datatype
@@ -495,11 +504,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%bin/EnumVal
%%NO_SAMPLES%%bin/MemParse
%%NO_SAMPLES%%bin/PParse
+%%NO_SAMPLES%%bin/PSVIWriter
%%NO_SAMPLES%%bin/Redirect
%%NO_SAMPLES%%bin/SAX2Count
%%NO_SAMPLES%%bin/SAX2Print
%%NO_SAMPLES%%bin/SAXCount
%%NO_SAMPLES%%bin/SAXPrint
+%%NO_SAMPLES%%bin/SCMPrint
%%NO_SAMPLES%%bin/SEnumVal
%%NO_SAMPLES%%bin/StdInParse
%%NO_SAMPLES%%%%EXAMPLESDIR%%/CreateDOMDocument/CreateDOMDocument.cpp
@@ -533,6 +544,14 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParse.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Redirect.cpp
@@ -563,6 +582,9 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrint.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/SCMPrint.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/SEnumVal.cpp
@@ -580,11 +602,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/data
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/StdInParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SEnumVal
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SCMPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXCount
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Print
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Count
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/Redirect
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PSVIWriter
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/MemParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/EnumVal
diff --git a/textproc/xerces-c2/scripts/check-config-options b/textproc/xerces-c2/scripts/check-config-options
new file mode 100644
index 000000000000..ad49dd3b1c0a
--- /dev/null
+++ b/textproc/xerces-c2/scripts/check-config-options
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $FreeBSD$
+
+rc=0
+
+if test -n "${WITH_NATIVE}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICU}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICONVFBSD}"; then
+ rc=$(expr $rc + 1)
+fi
+
+if test ${rc} -ne 1; then
+ echo "ERROR: please re-run make config and" >&2
+ if test ${rc} -gt 1; then
+ echo -n "only " >&2
+ fi
+ echo "select one of the three transcoders." >&2
+
+ exit 254
+fi
+
+exit 0
+
+# end
diff --git a/textproc/xerces-c27/Makefile b/textproc/xerces-c27/Makefile
index 14515e8ad5e0..58c22c1994cf 100644
--- a/textproc/xerces-c27/Makefile
+++ b/textproc/xerces-c27/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= xerces-c2
-PORTVERSION= 2.5.0
-PORTREVISION= 2
+PORTVERSION= 2.6.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= xerces-c/source
@@ -16,9 +15,29 @@ DISTNAME= xerces-c-src_${PORTVERSION:S/./_/g}
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
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 \
+ NATIVE "Use native transcoder." off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NATIVE)
+TRANSCODER= native
+.endif
+.if defined(WITH_ICU)
+TRANSCODER= icu
+.endif
+.if defined(WITH_ICONVFBSD)
+TRANSCODER= IconvFBSD
+.endif
+
.if !defined(TRANSCODER)
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -39,7 +58,7 @@ PLIST_SUB+= TRANSICONV=""
PLIST_SUB+= TRANSICU="@comment "
.else
USE_ICONV= yes
-TRANSCODER= "IconvFBSD"
+TRANSCODER= IconvFBSD
ICONVROOT?= ${LOCALBASE}
CONFIGURE_ENV+= ICONVROOT=${ICONVROOT}
MAKE_ENV+= ICONVROOT=${ICONVROOT}
@@ -68,13 +87,11 @@ CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX}
CONFIGURE_ARGS+= -t ${TRANSCODER}
-.if defined(DEBUG)
+.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+= -d
STRIP=
.endif
-.include <bsd.port.pre.mk>
-
.if defined(ARCH) && \
(${ARCH} == "alpha" || ${ARCH} == "sparc64" || \
${ARCH} == "amd64" || ${ARCH} == "ia64")
@@ -83,7 +100,7 @@ CONFIGURE_ARGS+= -b 64
SAMPLES_CONFIG_ARGS+= -b 64
.endif
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= -r none
.else
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
@@ -92,16 +109,19 @@ CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
XERCESC_LIB_VERSION= ${PORTVERSION:S/.//:R}
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}
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
PLIST_SUB+= NO_SAMPLES=""
ALL_TARGET?= all samples
XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \
- Redirect SAX2Count SAX2Print SAXCount SAXPrint SEnumVal StdInParse
+ PSVIWriter Redirect SAX2Count SAX2Print SAXCount SAXPrint \
+ SCMPrint SEnumVal StdInParse
SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX}
-.if defined(NO_THREADS)
+.if defined(WITHOUT_THREADS)
SAMPLES_CONFIG_ARGS+= -r none
.else
SAMPLES_CONFIG_ARGS+= -r pthread
@@ -112,27 +132,16 @@ SAMPLES_CONFIG_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PLIST_SUB+= NO_SAMPLES="@comment "
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
PORTDOCS= *
.endif
-pre-everything::
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
- @${ECHO} ''
- @${ECHO} 'You may use the following build options by defining'
- @${ECHO} 'them on the command line with -D'
- @${ECHO} ''
- @${ECHO} 'NO_THREADS do not build a thread enabled shared library'
- @${ECHO} 'NO_SAMPLES do not copy sample binaries and sources'
- @${ECHO} 'NOPORTDOCS do not copy documentation'
- @${ECHO} 'DEBUG include debugging information, do not strip'
- @${ECHO} ''
- @${ECHO} 'Also you may set TRANSCODER to the following values (without -D):'
- @${ECHO} ''
- @${ECHO} 'TRANSCODER=[icu|IconvFBSD|native] default: IconvFBSD'
- @${ECHO} ''
- @/bin/sleep 2
-.endif
+SCRIPTS_ENV= WITH_NATIVE="${WITH_NATIVE}" \
+ WITH_ICU="${WITH_ICU}" \
+ WITH_ICONVFBSD="${WITH_ICONVFBSD}"
+
+pre-extract:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check-config-options
post-patch:
@${REINPLACE_CMD} -e 's#CP = -cp -p#CP = -cp#' \
@@ -143,7 +152,7 @@ pre-configure:
@${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure
post-configure:
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
.if defined(TRANSCODER) && (${TRANSCODER} == "icu")
@(cd ${WRKSRC}/samples && \
${SETENV} \
@@ -162,14 +171,15 @@ post-configure:
.endif
post-install:
-.if !defined(DEBUG)
+.if defined(WITHOUT_DEBUG)
@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
+ @${STRIP_CMD} ${PREFIX}/lib/${XERCESC_DEPDOM_LIB}
.endif
-.if !defined(NOPORTDOCS)
+.if !defined(WITHOUT_PORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif
-.if !defined(NO_SAMPLES)
+.if !defined(WITHOUT_SAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in ${XERCES_BINS} data
@${CP} -r ${WRKSRC}/samples/$i ${EXAMPLESDIR}
diff --git a/textproc/xerces-c27/distinfo b/textproc/xerces-c27/distinfo
index aec664fc78f3..d65af6105331 100644
--- a/textproc/xerces-c27/distinfo
+++ b/textproc/xerces-c27/distinfo
@@ -1,2 +1,2 @@
-MD5 (xerces-c-src_2_5_0.tar.gz) = e7ff7d007fabfa7e3fc8c75a8007b0b1
-SIZE (xerces-c-src_2_5_0.tar.gz) = 9379748
+MD5 (xerces-c-src_2_6_0.tar.gz) = 038b3614ae82d2878bcc820b9ccbe853
+SIZE (xerces-c-src_2_6_0.tar.gz) = 9324884
diff --git a/textproc/xerces-c27/files/patch-ab b/textproc/xerces-c27/files/patch-ab
index dc9393db3e6e..97af5e843c7f 100644
--- a/textproc/xerces-c27/files/patch-ab
+++ b/textproc/xerces-c27/files/patch-ab
@@ -1,14 +1,15 @@
---- src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Thu Mar 18 10:44:13 2004
-+++ src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Thu Mar 18 10:47:04 2004
-@@ -1340,6 +1340,11 @@
- if (wBufPtr)
- manager->deallocate(wBufPtr);//delete [] wBufPtr;
-
-+ // iconvTo resp. iconv(3) doe NOT return number of characters
-+ // converted but only number of non-reversible conversions;
-+ // thus we need to calculate correct mblen on our own
-+ mblen = ptr - toFill;
-+
- #endif /* !XML_USE_LIBICONV */
-
- // Cap it off just in case
+--- obj/Makefile.in.orig Fri Oct 15 19:55:39 2004
++++ obj/Makefile.in Fri Oct 15 19:55:53 2004
+@@ -247,10 +247,10 @@
+ (cd ${DESTDIR}$(PREFIX)/lib; rm -f ${LINK_DEPDOM}.a libxercesdepdom.dll.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a ${LINK_NAME}.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a libxercesdepdom.dll.a)
+ else
+ $(CP) ${FQ_REAL_NAME} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_NAME} ${SO_NAME}; ln -s ${REAL_NAME} ${LINK_NAME})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_NAME} ${SO_NAME}; ln -sf ${REAL_NAME} ${LINK_NAME})
+
+ $(CP) ${FQ_REAL_DEPDOM} ${DESTDIR}$(PREFIX)/lib
+- (cd ${DESTDIR}$(PREFIX)/lib; ln -s ${REAL_DEPDOM} ${SO_DEPDOM}; ln -s ${REAL_DEPDOM} ${LINK_DEPDOM})
++ (cd ${DESTDIR}$(PREFIX)/lib; ln -sf ${REAL_DEPDOM} ${SO_DEPDOM}; ln -sf ${REAL_DEPDOM} ${LINK_DEPDOM})
+ endif
+ ifeq (${PLATFORM},OS390)
+ $(CP) ${LIBNAME}${VER}${OS390SIDEDECK} ${DESTDIR}$(PREFIX)/lib
diff --git a/textproc/xerces-c27/files/patch-ac b/textproc/xerces-c27/files/patch-ac
deleted file mode 100644
index 6c2f7de8a584..000000000000
--- a/textproc/xerces-c27/files/patch-ac
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/xercesc/util/RefArrayOf.hpp 2004/01/29 11:48:46 1.6
-+++ src/xercesc/util/RefArrayOf.hpp 2004/06/23 22:19:35 1.7
-@@ -56,6 +56,9 @@
-
- /*
- * $Log: RefArrayOf.hpp,v $
-+ * Revision 1.7 2004/06/23 22:19:35 neilg
-+ * fix for compilation under gcc 3.5
-+ *
- * Revision 1.6 2004/01/29 11:48:46 cargilld
- * Code cleanup changes to get rid of various compiler diagnostic messages.
- *
-@@ -101,6 +104,7 @@
- #include <xercesc/util/ArrayIndexOutOfBoundsException.hpp>
- #include <xercesc/util/IllegalArgumentException.hpp>
- #include <xercesc/util/XMLEnumerator.hpp>
-+#include <xercesc/framework/MemoryManager.hpp>
-
- XERCES_CPP_NAMESPACE_BEGIN
diff --git a/textproc/xerces-c27/pkg-plist b/textproc/xerces-c27/pkg-plist
index f952f2884f47..e9d869245593 100644
--- a/textproc/xerces-c27/pkg-plist
+++ b/textproc/xerces-c27/pkg-plist
@@ -29,6 +29,7 @@ include/xercesc/dom/DOMNodeFilter.hpp
include/xercesc/dom/DOMNodeIterator.hpp
include/xercesc/dom/DOMNodeList.hpp
include/xercesc/dom/DOMNotation.hpp
+include/xercesc/dom/DOMPSVITypeInfo.hpp
include/xercesc/dom/DOMProcessingInstruction.hpp
include/xercesc/dom/DOMRange.hpp
include/xercesc/dom/DOMRangeException.hpp
@@ -135,6 +136,7 @@ include/xercesc/framework/psvi/XSObject.hpp
include/xercesc/framework/psvi/XSParticle.hpp
include/xercesc/framework/psvi/XSSimpleTypeDefinition.hpp
include/xercesc/framework/psvi/XSTypeDefinition.hpp
+include/xercesc/framework/psvi/XSValue.hpp
include/xercesc/framework/psvi/XSWildcard.hpp
include/xercesc/internal/BinFileOutputStream.hpp
include/xercesc/internal/BinMemOutputStream.hpp
@@ -159,6 +161,7 @@ include/xercesc/internal/XMLScanner.hpp
include/xercesc/internal/XMLScannerResolver.hpp
include/xercesc/internal/XObjectComparator.hpp
include/xercesc/internal/XProtoType.hpp
+include/xercesc/internal/XSAXMLScanner.hpp
include/xercesc/internal/XSObjectFactory.hpp
include/xercesc/internal/XSerializable.hpp
include/xercesc/internal/XSerializationException.hpp
@@ -416,9 +419,9 @@ include/xercesc/validators/datatype/QNameDatatypeValidator.hpp
include/xercesc/validators/datatype/StringDatatypeValidator.hpp
include/xercesc/validators/datatype/TimeDatatypeValidator.hpp
include/xercesc/validators/datatype/UnionDatatypeValidator.hpp
+include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/datatype/YearDatatypeValidator.hpp
include/xercesc/validators/datatype/YearMonthDatatypeValidator.hpp
-include/xercesc/validators/datatype/XMLCanRepGroup.hpp
include/xercesc/validators/schema/ComplexTypeInfo.hpp
include/xercesc/validators/schema/GeneralAttributeCheck.hpp
include/xercesc/validators/schema/NamespaceScope.hpp
@@ -448,6 +451,7 @@ include/xercesc/validators/schema/identity/IC_KeyRef.hpp
include/xercesc/validators/schema/identity/IC_Selector.hpp
include/xercesc/validators/schema/identity/IC_Unique.hpp
include/xercesc/validators/schema/identity/IdentityConstraint.hpp
+include/xercesc/validators/schema/identity/IdentityConstraintHandler.hpp
include/xercesc/validators/schema/identity/ValueStore.hpp
include/xercesc/validators/schema/identity/ValueStoreCache.hpp
include/xercesc/validators/schema/identity/XPathException.hpp
@@ -460,6 +464,11 @@ lib/%%XERCESC_LIB%%
@exec ln -sf %%XERCESC_LIB%% %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%
@unexec if test ! -r %D/lib/libxerces-c.so; then rm -f %D/lib/libxerces-c.so; fi
@unexec if test ! -r %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-c.so.%%XERCESC_LIB_VERSION%%; fi
+lib/%%XERCESC_DEPDOM_LIB%%
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so
+@exec ln -sf %%XERCESC_DEPDOM_LIB%% %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%
+@unexec if test ! -r %D/lib/libxerces-depdom.so; then rm -f %D/lib/libxerces-depdom.so; fi
+@unexec if test ! -r %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; then rm -f %D/lib/libxerces-depdom.so.%%XERCESC_LIB_VERSION%%; fi
@dirrm include/xercesc/validators/schema/identity
@dirrm include/xercesc/validators/schema
@dirrm include/xercesc/validators/datatype
@@ -495,11 +504,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%bin/EnumVal
%%NO_SAMPLES%%bin/MemParse
%%NO_SAMPLES%%bin/PParse
+%%NO_SAMPLES%%bin/PSVIWriter
%%NO_SAMPLES%%bin/Redirect
%%NO_SAMPLES%%bin/SAX2Count
%%NO_SAMPLES%%bin/SAX2Print
%%NO_SAMPLES%%bin/SAXCount
%%NO_SAMPLES%%bin/SAXPrint
+%%NO_SAMPLES%%bin/SCMPrint
%%NO_SAMPLES%%bin/SEnumVal
%%NO_SAMPLES%%bin/StdInParse
%%NO_SAMPLES%%%%EXAMPLESDIR%%/CreateDOMDocument/CreateDOMDocument.cpp
@@ -533,6 +544,14 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParse.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/PParse/PParseHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIUni.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriter.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.cpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/PSVIWriter/PSVIWriterHandlers.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/Redirect/Redirect.cpp
@@ -563,6 +582,9 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrint.hpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SAXPrint/SAXPrintHandlers.hpp
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/Makefile.in
+%%NO_SAMPLES%%%%EXAMPLESDIR%%/SCMPrint/SCMPrint.cpp
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/Makefile.in
%%NO_SAMPLES%%%%EXAMPLESDIR%%/SEnumVal/SEnumVal.cpp
@@ -580,11 +602,13 @@ lib/%%XERCESC_LIB%%
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/data
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/StdInParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SEnumVal
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SCMPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXPrint
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAXCount
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Print
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/SAX2Count
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/Redirect
+%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PSVIWriter
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/PParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/MemParse
%%NO_SAMPLES%%@dirrm %%EXAMPLESDIR%%/EnumVal
diff --git a/textproc/xerces-c27/scripts/check-config-options b/textproc/xerces-c27/scripts/check-config-options
new file mode 100644
index 000000000000..ad49dd3b1c0a
--- /dev/null
+++ b/textproc/xerces-c27/scripts/check-config-options
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $FreeBSD$
+
+rc=0
+
+if test -n "${WITH_NATIVE}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICU}"; then
+ rc=$(expr $rc + 1)
+fi
+if test -n "${WITH_ICONVFBSD}"; then
+ rc=$(expr $rc + 1)
+fi
+
+if test ${rc} -ne 1; then
+ echo "ERROR: please re-run make config and" >&2
+ if test ${rc} -gt 1; then
+ echo -n "only " >&2
+ fi
+ echo "select one of the three transcoders." >&2
+
+ exit 254
+fi
+
+exit 0
+
+# end