Import xerces-c-2.8.0
Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs. For an introduction to programming with Xerces-C++ refer to the Programming Guide. <...> ok landry@
This commit is contained in:
parent
1dcb1faf86
commit
ec4f145d94
68
textproc/xerces-c/Makefile
Normal file
68
textproc/xerces-c/Makefile
Normal file
@ -0,0 +1,68 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/26 23:15:15 ajacoutot Exp $
|
||||
|
||||
COMMENT= c++ validating XML parser
|
||||
|
||||
DISTNAME= xerces-c-src_2_8_0
|
||||
PKGNAME= xerces-c-2.8.0
|
||||
CATEGORIES= textproc devel
|
||||
|
||||
SO_VERSION= 0.0 # .28.0
|
||||
.for _lib in xerces-c xerces-depdom
|
||||
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
||||
.endfor
|
||||
|
||||
HOMEPAGE= http://xerces.apache.org/index.html
|
||||
|
||||
# Apache 2.0
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://apache.mirrors.crysys.hit.bme.hu/dist/xerces/c/2/sources/
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
XERCESCROOT= ${WRKDIR}/${DISTNAME}
|
||||
WRKSRC= ${XERCESCROOT}/src/xercesc
|
||||
|
||||
CONFIGURE_SCRIPT= ${XERCESCROOT}/src/xercesc/runConfigure
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ENV= XERCESCROOT="${XERCESCROOT}"
|
||||
CONFIGURE_ARGS= -p openbsd -c ${CC} -x ${CXX} -m inmem -n socket \
|
||||
-t native -r none -P ${PREFIX}
|
||||
|
||||
MAKE_ENV= XERCESCROOT="${XERCESCROOT}"
|
||||
MAKE_FLAGS= SO_TARGET_VERSION=${SO_VERSION:R} \
|
||||
SO_TARGET_VERSION_MAJOR=${SO_VERSION:E} \
|
||||
VERBOSE=1
|
||||
|
||||
post-extract:
|
||||
mkdir -p ${WRKSRC}/util/Platforms/OpenBSD
|
||||
cp ${WRKSRC}/util/Platforms/NetBSD/NetBSDPlatformUtils.cpp \
|
||||
${WRKSRC}/util/Platforms/OpenBSD/OpenBSDPlatformUtils.cpp
|
||||
cp ${FILESDIR}/{Makefile.in,OpenBSDDefs.hpp} \
|
||||
${WRKSRC}/util/Platforms/OpenBSD/
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/Makefile.incl
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xerces-c
|
||||
cp -R ${XERCESCROOT}/doc/html ${PREFIX}/share/doc/xerces-c
|
||||
chown -R ${SHAREOWN}:${SHAREGRP} \
|
||||
${PREFIX}/share/doc/xerces-c \
|
||||
${PREFIX}/include/xercesc \
|
||||
${PREFIX}/lib/*
|
||||
|
||||
do-regress:
|
||||
cd ${XERCESCROOT}/tests && \
|
||||
XERCESCROOT="${XERCESCROOT}" ./runConfigure -p openbsd -c ${CC} -x ${CXX} -r none && \
|
||||
XERCESCROOT="${XERCESCROOT}" ${MAKE_PROGRAM}
|
||||
cd ${XERCESCROOT}/samples && \
|
||||
XERCESCROOT="${XERCESCROOT}" ./runConfigure -p openbsd -c ${CC} -x ${CXX} -r none && \
|
||||
XERCESCROOT="${XERCESCROOT}" ${MAKE_PROGRAM}
|
||||
cd ${XERCESCROOT}/samples/data && \
|
||||
PATH=${PATH}:${XERCESCROOT}/bin perl ../../scripts/sanityTest.pl
|
||||
|
||||
.include <bsd.port.mk>
|
5
textproc/xerces-c/distinfo
Normal file
5
textproc/xerces-c/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (xerces-c-src_2_8_0.tar.gz) = Xa9RS3Pz4N6eP85wQ4fA0g==
|
||||
RMD160 (xerces-c-src_2_8_0.tar.gz) = 1XbfeHCwQ6M4NYg0oOEYDco56Dg=
|
||||
SHA1 (xerces-c-src_2_8_0.tar.gz) = 8IA7EzDa7D9EsX3uZMPJneazzT4=
|
||||
SHA256 (xerces-c-src_2_8_0.tar.gz) = QW6vdLvm/zs8ZKKC6IaBDK1su0hHjTyDNEZhUEwJyNY=
|
||||
SIZE (xerces-c-src_2_8_0.tar.gz) = 7893039
|
48
textproc/xerces-c/files/Makefile.in
Normal file
48
textproc/xerces-c/files/Makefile.in
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
#
|
||||
|
||||
PLATFORM = @platform@
|
||||
CC = @cc@
|
||||
CXX = @cxx@
|
||||
CXXVER = @cxxver@
|
||||
GCC = @GCC@
|
||||
GXX = @GXX@
|
||||
CXXFLAGS = @cxxflags@
|
||||
CFLAGS = @cflags@
|
||||
PREFIX = @prefix@
|
||||
PREFIX_INCLUDE = @prefix_include@
|
||||
LDFLAGS = @ldflags@
|
||||
LIBS = @libs@
|
||||
OSVER = @osver@
|
||||
USELIBWWW = @uselibwww@
|
||||
MESSAGELOADER = @messageloader@
|
||||
TRANSCODER = @transcoder@
|
||||
THREADS = @threads@
|
||||
LIBTYPE = @libtype@
|
||||
ARCH = @host_cpu@
|
||||
|
||||
MODULE = util
|
||||
|
||||
include ../../../Makefile.incl
|
||||
|
||||
SUBMODULE = Platforms/OpenBSD
|
||||
CXXFLAGS += -D_GNU_SOURCE -D__USE_GNU
|
||||
CPP_PUBHEADERS = OpenBSDDefs.hpp
|
||||
CPP_OBJECTS = OpenBSDPlatformUtils.$(TO)
|
||||
|
||||
include ../../Makefile.util.submodule
|
44
textproc/xerces-c/files/OpenBSDDefs.hpp
Normal file
44
textproc/xerces-c/files/OpenBSDDefs.hpp
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Detect endian mode
|
||||
// ---------------------------------------------------------------------------
|
||||
#include <sys/endian.h>
|
||||
#ifdef __BYTE_ORDER
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define ENDIANMODE_LITTLE
|
||||
#else
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
#define ENDIANMODE_BIG
|
||||
#else
|
||||
#error: unknown byte order!
|
||||
#endif
|
||||
#endif
|
||||
#endif /* __BYTE_ORDER */
|
||||
|
||||
typedef void* FileHandle;
|
||||
|
||||
#ifndef OPENBSD
|
||||
#define OPENBSD
|
||||
#endif
|
40
textproc/xerces-c/patches/patch-obj_Makefile_in
Normal file
40
textproc/xerces-c/patches/patch-obj_Makefile_in
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-obj_Makefile_in,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- obj/Makefile.in.orig Tue Aug 28 20:47:18 2007
|
||||
+++ obj/Makefile.in Sun Oct 26 21:21:44 2008
|
||||
@@ -148,12 +148,6 @@ ${FQ_REAL_NAME}: $(ALL_OBJECTS)
|
||||
ifeq (${PLATFORM},OS390)
|
||||
$(CP) ${LIBNAME}${VER}${OS390SIDEDECK} ${LIB}
|
||||
endif
|
||||
- ifneq (${FQ_SO_NAME},${FQ_REAL_NAME})
|
||||
- @echo symlink ${FQ_SO_NAME}
|
||||
- rm -rf ${FQ_SO_NAME} && ln -s ${FQ_REAL_NAME} ${FQ_SO_NAME}
|
||||
- endif
|
||||
- @echo symlink ${FQ_LINK_NAME}
|
||||
- rm -rf ${FQ_LINK_NAME} && ln -s ${FQ_SO_NAME} ${FQ_LINK_NAME}
|
||||
|
||||
## DepDOM ##
|
||||
${FQ_REAL_DEPDOM}: $(DEPDOM_OBJECTS)
|
||||
@@ -170,12 +164,6 @@ ${FQ_REAL_DEPDOM}: $(DEPDOM_OBJECTS)
|
||||
${MAKE_SHARED} ${LD_SODEPDOM} -o ${@} ${^} $(TEMPLATESOBJS) $(PLATFORM_LIBRARIES) $(DEPDOM_LINK_OPTIONS) $(ALLLIBS) -L${LIB} -l${LINK_LIBNAME}
|
||||
endif
|
||||
endif
|
||||
- ifneq (${FQ_SO_DEPDOM},${FQ_REAL_DEPDOM})
|
||||
- @echo symlink ${FQ_SO_DEPDOM}
|
||||
- rm -rf ${FQ_SO_DEPDOM} && ln -s ${FQ_REAL_DEPDOM} ${FQ_SO_DEPDOM}
|
||||
- endif
|
||||
- @echo symlink ${FQ_LINK_DEPDOM}
|
||||
- rm -rf ${FQ_LINK_DEPDOM} && ln -s ${FQ_SO_DEPDOM} ${FQ_LINK_DEPDOM}
|
||||
|
||||
## Start OS390 ##
|
||||
ifeq (${PLATFORM},OS390)
|
||||
@@ -266,10 +254,8 @@ ifeq (${LIBTYPE},shared)
|
||||
(cd ${DESTDIR}$(PREFIX)/lib; rm -f ${LINK_DEPDOM}.a libxercesdepdom.dll.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a ${LINK_DEPDOM}.a; rm -f libxercesdepdom.dll.a; ln -s ${LIBDEPDOM}${SO_TARGET_VERSION}${SHLIBSUFFIX}.a libxercesdepdom.dll.a)
|
||||
else
|
||||
$(CP) ${FQ_REAL_NAME} ${DESTDIR}$(PREFIX)/lib
|
||||
- (cd ${DESTDIR}$(PREFIX)/lib; rm -f ${SO_NAME}; ln -s ${REAL_NAME} ${SO_NAME}; rm -f ${LINK_NAME}; ln -s ${REAL_NAME} ${LINK_NAME})
|
||||
|
||||
$(CP) ${FQ_REAL_DEPDOM} ${DESTDIR}$(PREFIX)/lib
|
||||
- (cd ${DESTDIR}$(PREFIX)/lib; rm -f ${SO_DEPDOM}; ln -s ${REAL_DEPDOM} ${SO_DEPDOM}; rm -f ${LINK_DEPDOM}; ln -s ${REAL_DEPDOM} ${LINK_DEPDOM})
|
||||
endif
|
||||
ifeq (${PLATFORM},OS390)
|
||||
$(CP) ${LIBNAME}${VER}${OS390SIDEDECK} ${DESTDIR}$(PREFIX)/lib
|
24
textproc/xerces-c/patches/patch-samples_Makefile_incl
Normal file
24
textproc/xerces-c/patches/patch-samples_Makefile_incl
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-samples_Makefile_incl,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- samples/Makefile.incl.orig Sun Oct 26 19:46:07 2008
|
||||
+++ samples/Makefile.incl Sun Oct 26 19:47:14 2008
|
||||
@@ -284,6 +284,20 @@ ifeq (${PLATFORM}, NETBSD)
|
||||
endif
|
||||
endif
|
||||
|
||||
+#=============== OPENBSD SPECIFIC OPTIONS =========================
|
||||
+ifeq (${PLATFORM}, OPENBSD)
|
||||
+ CMP= -c ${CXXFLAGS}
|
||||
+ CC= ${COMPILER} -c -D${PLATFORM} -fPIC
|
||||
+ LINK = ${COMPILER} -D${PLATFORM} -fPIC ${LDFLAGS}
|
||||
+ PLATFORM_LIB_LINK_OPTIONS=-Wl,-rpath,${XERCESCROOT}/lib
|
||||
+ ifdef ICUROOT
|
||||
+ PLATFORM_LIB_LINK_OPTIONS+=-L${ICUROOT} -Wl,-rpath,${ICUROOT}
|
||||
+ EXTRA_LINK_OPTIONS=-licudata -lstdc++ ${EXTRA_LIBS}
|
||||
+ else
|
||||
+ EXTRA_LINK_OPTIONS=${EXTRA_LIBS} -lstdc++
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
#================= HP SPECIFIC OPTIONS ===========================
|
||||
ifeq (${PLATFORM}, HPUX)
|
||||
ifeq (${GXX}, yes)
|
11
textproc/xerces-c/patches/patch-samples_configure
Normal file
11
textproc/xerces-c/patches/patch-samples_configure
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-samples_configure,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- samples/configure.orig Sun Oct 26 19:47:29 2008
|
||||
+++ samples/configure Sun Oct 26 19:47:49 2008
|
||||
@@ -4236,6 +4236,7 @@ case "${host}" in
|
||||
*-*-nto*) platform=QNX ;;
|
||||
*-*-freebsd*) platform=FREEBSD ;;
|
||||
*-*-netbsd*) platform=NETBSD ;;
|
||||
+ *-*-openbsd*) platform=OPENBSD ;;
|
||||
*-*-irix*) platform=IRIX ;;
|
||||
*-*-aix*) platform=AIX ;;
|
||||
*-*-hp*) platform=HPUX ;
|
40
textproc/xerces-c/patches/patch-samples_runConfigure
Normal file
40
textproc/xerces-c/patches/patch-samples_runConfigure
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-samples_runConfigure,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- samples/runConfigure.orig Sun Oct 26 22:14:08 2008
|
||||
+++ samples/runConfigure Sun Oct 26 22:15:02 2008
|
||||
@@ -46,7 +46,7 @@ platforms"
|
||||
echo "Usage: runConfigure \"options\""
|
||||
echo " where options may be any of the following:"
|
||||
echo " -p <platform> (accepts 'aix', 'beos', 'linux', 'freebsd', 'netbsd',
|
||||
- 'solaris', 'hp-10', 'hp-11', 'openserver', 'unixware',
|
||||
+ 'openbsd', 'solaris', 'hp-10', 'hp-11', 'openserver', 'unixware',
|
||||
'os400', 'os390', 'irix', 'ptx', 'tru64', 'macosx', 'cygwin', 'qnx',
|
||||
'interix', 'mingw-msys')
|
||||
[required: no default]"
|
||||
@@ -197,7 +197,7 @@ echo "Extra link options: $linkeroptions"
|
||||
# Now check if the options are correct or not, bail out if incorrect
|
||||
#
|
||||
case $platform in
|
||||
- aix | openserver | unixware | beos | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
+ aix | openserver | unixware | beos | linux | freebsd | netbsd | openbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
# platform has been recognized
|
||||
;;
|
||||
*)
|
||||
@@ -272,6 +272,9 @@ else
|
||||
elif test $platform = "netbsd"; then
|
||||
threadingLibs="-pthread"
|
||||
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
+ elif test $platform = "openbsd"; then
|
||||
+ threadingLibs="-pthread"
|
||||
+ threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
elif test $platform = "aix"; then
|
||||
aix_version=`./config.guess`;
|
||||
echo Found host system to be $aix_version
|
||||
@@ -357,7 +360,7 @@ export THREADS
|
||||
|
||||
#
|
||||
# aix | beos | linux | hp-11 | solaris |
|
||||
-# hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
|
||||
+# hp-10 | freebsd | netbsd | openbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
|
||||
#
|
||||
if test $bitsToBuild = 64; then
|
||||
bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
|
58
textproc/xerces-c/patches/patch-src_xercesc_Makefile_incl
Normal file
58
textproc/xerces-c/patches/patch-src_xercesc_Makefile_incl
Normal file
@ -0,0 +1,58 @@
|
||||
$OpenBSD: patch-src_xercesc_Makefile_incl,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/Makefile.incl.orig Thu Aug 30 14:10:20 2007
|
||||
+++ src/xercesc/Makefile.incl Sun Oct 26 23:02:51 2008
|
||||
@@ -627,6 +627,30 @@ ifeq (${PLATFORM}, NETBSD)
|
||||
LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM}
|
||||
endif
|
||||
|
||||
+#=============== OPENBSD SPECIFIC OPTIONS =========================
|
||||
+ifeq (${PLATFORM}, OPENBSD)
|
||||
+ PLATFORM_COMPILE_OPTIONS = -D${PLATFORM}
|
||||
+
|
||||
+ ifeq (${LIBTYPE},shared)
|
||||
+ PLATFORM_COMPILE_OPTIONS += -fPIC
|
||||
+ MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
|
||||
+ MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
|
||||
+ endif
|
||||
+
|
||||
+ ifeq (${TRANSCODER}, ICU)
|
||||
+ PLATFORM_COMPILE_OPTIONS += -I${LOCALBASE}/include
|
||||
+ ALLLIBS = ${LIBS} -L${LOCALBASE}/lib -L${ICUROOT} -licuuc -licudata
|
||||
+ else
|
||||
+ ALLLIBS = ${LIBS}
|
||||
+ endif
|
||||
+
|
||||
+ SHLIBSUFFIX=.so
|
||||
+ ICUSHLIBSUFFIX=.so
|
||||
+ ## Compiler switch to embed a library name
|
||||
+ LD_SONAME = -Wl,-soname,${SO_NAME}
|
||||
+ LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM}
|
||||
+endif
|
||||
+
|
||||
#=============== IRIX SPECIFIC OPTIONS ============================
|
||||
ifeq (${PLATFORM}, IRIX)
|
||||
PLATFORM_COMPILE_OPTIONS = -LANG:pch -LANG:std -O2 \
|
||||
@@ -1084,6 +1108,23 @@ ifeq (${PLATFORM}, QNX)
|
||||
LINK_DEPDOM=${LIBDEPDOM}${SHLIBSUFFIX}
|
||||
SO_DEPDOM =${LIBDEPDOM}${SHLIBSUFFIX}.${SO_TARGET_VERSION}
|
||||
REAL_DEPDOM=$(SO_DEPDOM)
|
||||
+
|
||||
+endif
|
||||
+ifeq (${PLATFORM}, OPENBSD)
|
||||
+ #
|
||||
+ # LINK_NAME=SO_NAME=REAL_NAME=libxerces-c.{suffix}
|
||||
+ #
|
||||
+ LINK_NAME=${LIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ SO_NAME =${LIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ REAL_NAME=${LIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+
|
||||
+ LINK_DEPDOM=${LIBDEPDOM}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ SO_DEPDOM =${LIBDEPDOM}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ REAL_DEPDOM=${LIBDEPDOM}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+
|
||||
+ RESLIB_LINK_NAME=${RESLIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ RESLIB_SO_NAME =${RESLIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
+ RESLIB_REAL_NAME=${RESLIBNAME}${SHLIBSUFFIX}.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
|
||||
|
||||
endif
|
||||
|
28
textproc/xerces-c/patches/patch-src_xercesc_configure
Normal file
28
textproc/xerces-c/patches/patch-src_xercesc_configure
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-src_xercesc_configure,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/configure.orig Sun Oct 26 19:51:00 2008
|
||||
+++ src/xercesc/configure Sun Oct 26 19:52:06 2008
|
||||
@@ -3944,6 +3944,7 @@ case "${host}" in
|
||||
*-*-linux*) platform=LINUX ;;
|
||||
*-*-freebsd*) platform=FREEBSD ;;
|
||||
*-*-netbsd*) platform=NETBSD ;;
|
||||
+ *-*-openbsd*) platform=OPENBSD ;;
|
||||
*-*-irix*) platform=IRIX ;;
|
||||
*-*-aix*) platform=AIX
|
||||
case "${host}" in
|
||||
@@ -4024,7 +4025,7 @@ libtype=${LIBTYPE}
|
||||
bitstobuild=${BITSTOBUILD}
|
||||
|
||||
|
||||
-ac_config_files="$ac_config_files Makefile util/Makefile util/Transcoders/Cygwin/Makefile util/Transcoders/Win32/Makefile util/Transcoders/ICU/Makefile util/Transcoders/Iconv/Makefile util/Transcoders/Iconv390/Makefile util/Transcoders/Uniconv390/Makefile util/Transcoders/Iconv400/Makefile util/Transcoders/IconvFBSD/Makefile util/Transcoders/IconvGNU/Makefile util/Transcoders/MacOSUnicodeConverter/Makefile util/Platforms/Makefile util/Platforms/Solaris/Makefile util/Platforms/AIX/Makefile util/Platforms/BeOS/Makefile util/Platforms/QNX/Makefile util/Platforms/Linux/Makefile util/Platforms/FreeBSD/Makefile util/Platforms/NetBSD/Makefile util/Platforms/HPUX/Makefile util/Platforms/OS390/Makefile util/Platforms/OS400/Makefile util/Platforms/IRIX/Makefile util/Platforms/PTX/Makefile util/Platforms/OpenServer/Makefile util/Platforms/UnixWare/Makefile util/Platforms/Tru64/Makefile util/Platforms/MacOS/Makefile util/Platforms/Win32/Makefile util/Platforms/Cygwin/Makefile util/Compilers/Makefile util/MsgLoaders/InMemory/Makefile util/MsgLoaders/ICU/Makefile util/MsgLoaders/ICU/resources/Makefile util/MsgLoaders/MsgCatalog/Makefile util/MsgLoaders/MsgFile/Makefile util/NetAccessors/Socket/Makefile util/NetAccessors/WinSock/Makefile util/NetAccessors/libWWW/Makefile util/NetAccessors/MacOSURLAccessCF/Makefile util/regx/Makefile validators/Makefile validators/common/Makefile validators/datatype/Makefile validators/DTD/Makefile validators/schema/Makefile validators/schema/identity/Makefile framework/Makefile framework/psvi/Makefile dom/Makefile dom/impl/Makefile dom/deprecated/Makefile parsers/Makefile internal/Makefile sax/Makefile sax2/Makefile ../../obj/Makefile"
|
||||
+ac_config_files="$ac_config_files Makefile util/Makefile util/Transcoders/Cygwin/Makefile util/Transcoders/Win32/Makefile util/Transcoders/ICU/Makefile util/Transcoders/Iconv/Makefile util/Transcoders/Iconv390/Makefile util/Transcoders/Uniconv390/Makefile util/Transcoders/Iconv400/Makefile util/Transcoders/IconvFBSD/Makefile util/Transcoders/IconvGNU/Makefile util/Transcoders/MacOSUnicodeConverter/Makefile util/Platforms/Makefile util/Platforms/Solaris/Makefile util/Platforms/AIX/Makefile util/Platforms/BeOS/Makefile util/Platforms/QNX/Makefile util/Platforms/Linux/Makefile util/Platforms/FreeBSD/Makefile util/Platforms/NetBSD/Makefile util/Platforms/OpenBSD/Makefile util/Platforms/HPUX/Makefile util/Platforms/OS390/Makefile util/Platforms/OS400/Makefile util/Platforms/IRIX/Makefile util/Platforms/PTX/Makefile util/Platforms/OpenServer/Makefile util/Platforms/UnixWare/Makefile util/Platforms/Tru64/Makefile util/Platforms/MacOS/Makefile util/Platforms/Win32/Makefile util/Platforms/Cygwin/Makefile util/Compilers/Makefile util/MsgLoaders/InMemory/Makefile util/MsgLoaders/ICU/Makefile util/MsgLoaders/ICU/resources/Makefile util/MsgLoaders/MsgCatalog/Makefile util/MsgLoaders/MsgFile/Makefile util/NetAccessors/Socket/Makefile util/NetAccessors/WinSock/Makefile util/NetAccessors/libWWW/Makefile util/NetAccessors/MacOSURLAccessCF/Makefile util/regx/Makefile validators/Makefile validators/common/Makefile validators/datatype/Makefile validators/DTD/Makefile validators/schema/Makefile validators/schema/identity/Makefile framework/Makefile framework/psvi/Makefile dom/Makefile dom/impl/Makefile dom/deprecated/Makefile parsers/Makefile internal/Makefile sax/Makefile sax2/Makefile ../../obj/Makefile"
|
||||
|
||||
ac_config_commands="$ac_config_commands default"
|
||||
|
||||
@@ -4625,6 +4626,7 @@ do
|
||||
"util/Platforms/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/Linux/Makefile" ;;
|
||||
"util/Platforms/FreeBSD/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/FreeBSD/Makefile" ;;
|
||||
"util/Platforms/NetBSD/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/NetBSD/Makefile" ;;
|
||||
+ "util/Platforms/OpenBSD/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/OpenBSD/Makefile" ;;
|
||||
"util/Platforms/HPUX/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/HPUX/Makefile" ;;
|
||||
"util/Platforms/OS390/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/OS390/Makefile" ;;
|
||||
"util/Platforms/OS400/Makefile") CONFIG_FILES="$CONFIG_FILES util/Platforms/OS400/Makefile" ;;
|
40
textproc/xerces-c/patches/patch-src_xercesc_runConfigure
Normal file
40
textproc/xerces-c/patches/patch-src_xercesc_runConfigure
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-src_xercesc_runConfigure,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/runConfigure.orig Tue Aug 28 20:44:56 2007
|
||||
+++ src/xercesc/runConfigure Sun Oct 26 19:35:14 2008
|
||||
@@ -272,7 +272,7 @@ echo "Extra configure options: $configureoptions"
|
||||
#
|
||||
|
||||
case $platform in
|
||||
- aix | openserver | unixware | beos | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
+ aix | openserver | unixware | beos | linux | freebsd | netbsd | openbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
# platform has been recognized
|
||||
;;
|
||||
*)
|
||||
@@ -298,6 +298,8 @@ if test $debug = "off"; then
|
||||
debugflag="-DNDEBUG";
|
||||
elif test $platform = "linux"; then
|
||||
debugflag="-w -O2 -DNDEBUG";
|
||||
+ elif test $platform = "openbsd"; then
|
||||
+ debugflag="-w -DNDEBUG";
|
||||
else
|
||||
debugflag="-w -O -DNDEBUG";
|
||||
fi
|
||||
@@ -360,6 +362,9 @@ else
|
||||
elif test $platform = "netbsd"; then
|
||||
threadingLibs="-pthread -lpthread"
|
||||
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
+ elif test $platform = "openbsd"; then
|
||||
+ threadingLibs="-pthread"
|
||||
+ threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
elif test $platform = "aix"; then
|
||||
aix_version=`./config.guess`;
|
||||
echo Found host system to be $aix_version
|
||||
@@ -446,7 +451,7 @@ export THREADS
|
||||
|
||||
#
|
||||
# aix | beos | linux | hp-11 | solaris |
|
||||
-# hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
|
||||
+# hp-10 | freebsd | openbsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
|
||||
#
|
||||
if test $bitsToBuild = 64; then
|
||||
bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_xercesc_util_AutoSense_hpp,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/util/AutoSense.hpp.orig Sun Oct 26 19:52:30 2008
|
||||
+++ src/xercesc/util/AutoSense.hpp Sun Oct 26 19:53:28 2008
|
||||
@@ -107,6 +107,9 @@
|
||||
#define XML_TRU64
|
||||
#elif defined(__NetBSD__)
|
||||
#define XML_NETBSD
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ #define XML_OPENBSD
|
||||
+ #define XML_UNIX
|
||||
#elif defined(__INTERIX)
|
||||
#define XML_INTERIX
|
||||
#define XML_UNIX
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_xercesc_util_Platforms_Makefile_in,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/util/Platforms/Makefile.in.orig Sun Oct 26 19:54:14 2008
|
||||
+++ src/xercesc/util/Platforms/Makefile.in Sun Oct 26 19:54:36 2008
|
||||
@@ -155,6 +155,9 @@ endif
|
||||
ifeq (${PLATFORM}, NETBSD)
|
||||
SUBMODULE = NetBSD
|
||||
endif
|
||||
+ifeq (${PLATFORM}, OPENBSD)
|
||||
+ SUBMODULE = OpenBSD
|
||||
+endif
|
||||
ifeq (${PLATFORM}, HPUX)
|
||||
SUBMODULE = HPUX
|
||||
endif
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_xercesc_util_XercesDefs_hpp,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
--- src/xercesc/util/XercesDefs.hpp.orig Sun Oct 26 19:55:38 2008
|
||||
+++ src/xercesc/util/XercesDefs.hpp Sun Oct 26 19:56:36 2008
|
||||
@@ -237,6 +237,10 @@ typedef XMLUInt32 UCS4Ch;
|
||||
#include <xercesc/util/Platforms/NetBSD/NetBSDDefs.hpp>
|
||||
#endif
|
||||
|
||||
+#if defined(XML_OPENBSD)
|
||||
+#include <xercesc/util/Platforms/OpenBSD/OpenBSDDefs.hpp>
|
||||
+#endif
|
||||
+
|
||||
// ---------------------------------------------------------------------------
|
||||
// According to whether the compiler suports L"" type strings, we define
|
||||
// the XMLStrL() macro one way or another.
|
24
textproc/xerces-c/patches/patch-tests_Makefile_incl
Normal file
24
textproc/xerces-c/patches/patch-tests_Makefile_incl
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-tests_Makefile_incl,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- tests/Makefile.incl.orig Sun Oct 26 19:56:59 2008
|
||||
+++ tests/Makefile.incl Sun Oct 26 19:57:29 2008
|
||||
@@ -283,6 +283,20 @@ ifeq (${PLATFORM}, NETBSD)
|
||||
endif
|
||||
endif
|
||||
|
||||
+#=============== OPENBSD SPECIFIC OPTIONS =========================
|
||||
+ifeq (${PLATFORM}, OPENBSD)
|
||||
+ CMP= -c ${CXXFLAGS}
|
||||
+ CC= ${COMPILER} -c -D${PLATFORM} -fPIC
|
||||
+ LINK = ${COMPILER} -D${PLATFORM} -fPIC ${LDFLAGS}
|
||||
+ PLATFORM_LIB_LINK_OPTIONS=-Wl,-rpath,${XERCESCROOT}/lib
|
||||
+ ifdef ICUROOT
|
||||
+ PLATFORM_LIB_LINK_OPTIONS+=-L${ICUROOT} -Wl,-rpath,${ICUROOT}
|
||||
+ EXTRA_LINK_OPTIONS=-licudata -lstdc++ ${EXTRA_LIBS}
|
||||
+ else
|
||||
+ EXTRA_LINK_OPTIONS=${EXTRA_LIBS} -lstdc++
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
#================= HP SPECIFIC OPTIONS ===========================
|
||||
ifeq (${PLATFORM}, HPUX)
|
||||
ifeq (${GXX}, yes)
|
11
textproc/xerces-c/patches/patch-tests_configure
Normal file
11
textproc/xerces-c/patches/patch-tests_configure
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-tests_configure,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- tests/configure.orig Sun Oct 26 19:58:34 2008
|
||||
+++ tests/configure Sun Oct 26 19:58:47 2008
|
||||
@@ -4236,6 +4236,7 @@ case "${host}" in
|
||||
*-*-nto*) platform=QNX ;;
|
||||
*-*-freebsd*) platform=FREEBSD ;;
|
||||
*-*-netbsd*) platform=NETBSD ;;
|
||||
+ *-*-openbsd*) platform=OPENBSD ;;
|
||||
*-*-irix*) platform=IRIX ;;
|
||||
*-*-aix*) platform=AIX ;;
|
||||
*-*-hp*) platform=HPUX ;
|
31
textproc/xerces-c/patches/patch-tests_runConfigure
Normal file
31
textproc/xerces-c/patches/patch-tests_runConfigure
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-tests_runConfigure,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
|
||||
--- tests/runConfigure.orig Sun Oct 26 19:59:26 2008
|
||||
+++ tests/runConfigure Sun Oct 26 20:00:24 2008
|
||||
@@ -45,7 +45,7 @@ usage()
|
||||
echo "Usage: runConfigure \"options\""
|
||||
echo " where options may be any of the following:"
|
||||
echo " -p <platform> (accepts 'aix', 'beos', 'linux', 'freebsd', 'netbsd',
|
||||
- 'solaris', 'hp-10', 'hp-11', 'openserver', 'unixware',
|
||||
+ 'openbsd', 'solaris', 'hp-10', 'hp-11', 'openserver', 'unixware',
|
||||
'os400', 'os390', 'irix', 'ptx', 'tru64', 'macosx', 'cygwin', 'qnx',
|
||||
'interix', 'mingw-msys')
|
||||
[required: no default]"
|
||||
@@ -196,7 +196,7 @@ echo "Extra link options: $linkeroptions"
|
||||
# Now check if the options are correct or not, bail out if incorrect
|
||||
#
|
||||
case $platform in
|
||||
- aix | openserver | unixware | beos | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
+ aix | openserver | unixware | beos | linux | freebsd | netbsd | openbsd | solaris | hp-10 | hp-11 | os400 | os390 | irix | ptx | tru64 | macosx | cygwin | qnx | interix | mingw-msys)
|
||||
# platform has been recognized
|
||||
;;
|
||||
*)
|
||||
@@ -269,6 +269,9 @@ else
|
||||
threadingLibs="-pthread -lc_r"
|
||||
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
elif test $platform = "netbsd"; then
|
||||
+ threadingLibs="-pthread"
|
||||
+ threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
+ elif test $platform = "openbsd"; then
|
||||
threadingLibs="-pthread"
|
||||
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|
||||
elif test $platform = "aix"; then
|
13
textproc/xerces-c/pkg/DESCR
Normal file
13
textproc/xerces-c/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
Xerces-C++ is a validating XML parser written in a portable subset of
|
||||
C++. Xerces-C++ makes it easy to give your application the ability to
|
||||
read and write XML data. A shared library is provided for parsing,
|
||||
generating, manipulating, and validating XML documents using the DOM,
|
||||
SAX, and SAX2 APIs. For an introduction to programming with Xerces-C++
|
||||
refer to the Programming Guide.
|
||||
|
||||
Xerces-C++ is faithful to the XML 1.0 recommendation and many associated
|
||||
standards.
|
||||
The parser provides high performance, modularity, and scalability.
|
||||
Source code, samples and API documentation are provided with the parser.
|
||||
For portability, care has been taken to make minimal use of templates,
|
||||
no RTTI, and minimal use of #ifdefs.
|
3
textproc/xerces-c/pkg/PFRAG.shared
Normal file
3
textproc/xerces-c/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/10/26 23:15:17 ajacoutot Exp $
|
||||
@lib lib/libxerces-c.so.${LIBxerces-c_VERSION}
|
||||
@lib lib/libxerces-depdom.so.${LIBxerces-depdom_VERSION}
|
2808
textproc/xerces-c/pkg/PLIST
Normal file
2808
textproc/xerces-c/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user