summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/patches
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2001-01-13 16:38:06 +0000
committerskrll <skrll@pkgsrc.org>2001-01-13 16:38:06 +0000
commit1d9a57d640d1ad8e00290576932595c2e1ca9976 (patch)
treed6795078719d9bd413cc418a430c2b65d3481616 /textproc/xerces-c/patches
parenta63f0ab2c3686c980143e2581e7d7ee7b3ff254b (diff)
downloadpkgsrc-1d9a57d640d1ad8e00290576932595c2e1ca9976.tar.gz
Import of xerces-c package based on pkg/11559 from Emmanuel Dreyfus
<p99dreyf@criens.u-psud.fr>. This is version 1.3.0 of xerces-c and XML parser written in C++
Diffstat (limited to 'textproc/xerces-c/patches')
-rw-r--r--textproc/xerces-c/patches/patch-aa24
-rw-r--r--textproc/xerces-c/patches/patch-ab28
-rw-r--r--textproc/xerces-c/patches/patch-ac12
-rw-r--r--textproc/xerces-c/patches/patch-ad12
-rw-r--r--textproc/xerces-c/patches/patch-ae12
-rw-r--r--textproc/xerces-c/patches/patch-af12
-rw-r--r--textproc/xerces-c/patches/patch-ag12
-rw-r--r--textproc/xerces-c/patches/patch-ah12
-rw-r--r--textproc/xerces-c/patches/patch-ai13
-rw-r--r--textproc/xerces-c/patches/patch-aj35
-rw-r--r--textproc/xerces-c/patches/patch-ak15
-rw-r--r--textproc/xerces-c/patches/patch-al12
-rw-r--r--textproc/xerces-c/patches/patch-am14
-rw-r--r--textproc/xerces-c/patches/patch-an13
-rw-r--r--textproc/xerces-c/patches/patch-ao14
-rw-r--r--textproc/xerces-c/patches/patch-ap12
16 files changed, 252 insertions, 0 deletions
diff --git a/textproc/xerces-c/patches/patch-aa b/textproc/xerces-c/patches/patch-aa
new file mode 100644
index 00000000000..e5d8cf695cc
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/01/13 16:38:22 skrll Exp $
+
+--- Makefile.incl.orig Sat Sep 30 18:37:28 2000
++++ Makefile.incl
+@@ -369,6 +369,19 @@
+ SHLIBSUFFIX=.so
+ endif
+
++#=============== NETBSD SPECIFIC OPTIONS ========================
++ifeq (${PLATFORM}, NETBSD)
++ PLATFORM_COMPILE_OPTIONS = -fPIC -instances=static -D${PLATFORM}
++ MAKE_SHARED = ${CXX} -D${PLATFORM} -shared
++ MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared
++ ifeq (${TRANSCODER}, ICU)
++ ALLLIBS = ${LIBS} -L${LOCALBASE} -licuuc -licudata -lm
++ else
++ ALLLIBS = ${LIBS} -L${LOCALBASE} -lm
++ endif
++ SHLIBSUFFIX=.so
++endif
++
+ ###################### STANDARD TOOLS #############################
+ ifeq (${PLATFORM}, OS400)
+ CP = -cp -fph
diff --git a/textproc/xerces-c/patches/patch-ab b/textproc/xerces-c/patches/patch-ab
new file mode 100644
index 00000000000..8086bd763cf
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- configure.orig Sat Sep 30 18:37:26 2000
++++ configure
+@@ -1315,6 +1315,7 @@
+ *-*-os400*) platform=OS400 ;;
+ *-*-OS400*) platform=OS400 ;;
+ *-*-osf*) platform=TRU64 ;;
++ *-*-netbsd*) platform=NETBSD ;;
+ *) platform=UNKNOWN ;;
+ esac
+
+@@ -1485,6 +1486,7 @@
+ util/Platforms/PTX/Makefile \
+ util/Platforms/UnixWare/Makefile \
+ util/Platforms/Tru64/Makefile \
++util/Platforms/NetBSD/Makefile \
+ util/Compilers/Makefile \
+ util/MsgLoaders/InMemory/Makefile \
+ util/MsgLoaders/ICU/Makefile \
+@@ -1613,6 +1615,7 @@
+ util/Platforms/PTX/Makefile \
+ util/Platforms/UnixWare/Makefile \
+ util/Platforms/Tru64/Makefile \
++util/Platforms/NetBSD/Makefile \
+ util/Compilers/Makefile \
+ util/MsgLoaders/InMemory/Makefile \
+ util/MsgLoaders/ICU/Makefile \
diff --git a/textproc/xerces-c/patches/patch-ac b/textproc/xerces-c/patches/patch-ac
new file mode 100644
index 00000000000..6f1e76ef69b
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- dom/Makefile.in.orig Sat Sep 30 18:37:26 2000
++++ dom/Makefile.in
+@@ -225,5 +225,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(DOM_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(DOM_CPP_PUBHEADERS) $(DOM_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(DOM_CPP_PUBHEADERS) $(DOM_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-ad b/textproc/xerces-c/patches/patch-ad
new file mode 100644
index 00000000000..c1d653a36b0
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- framework/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ framework/Makefile.in
+@@ -179,5 +179,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(FRAMEWORK_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(FRAMEWORK_CPP_PUBHEADERS) $(FRAMEWORK_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(FRAMEWORK_CPP_PUBHEADERS) $(FRAMEWORK_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-ae b/textproc/xerces-c/patches/patch-ae
new file mode 100644
index 00000000000..9eb144e5b4c
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ae
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- internal/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ internal/Makefile.in
+@@ -119,5 +119,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(INTERNAL_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(INTERNAL_CPP_PUBHEADERS) $(INTERNAL_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(INTERNAL_CPP_PUBHEADERS) $(INTERNAL_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-af b/textproc/xerces-c/patches/patch-af
new file mode 100644
index 00000000000..7e4bf6a7787
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- parsers/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ parsers/Makefile.in
+@@ -112,5 +112,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(PARSERS_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(PARSERS_CPP_PUBHEADERS) $(PARSERS_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(PARSERS_CPP_PUBHEADERS) $(PARSERS_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-ag b/textproc/xerces-c/patches/patch-ag
new file mode 100644
index 00000000000..913dd73b2f2
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ag
@@ -0,0 +1,12 @@
+$NetBSD: patch-ag,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- sax/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ sax/Makefile.in
+@@ -119,5 +119,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(SAX_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(SAX_CPP_PUBHEADERS) $(SAX_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(SAX_CPP_PUBHEADERS) $(SAX_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-ah b/textproc/xerces-c/patches/patch-ah
new file mode 100644
index 00000000000..6b527ba07ed
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ah
@@ -0,0 +1,12 @@
+$NetBSD: patch-ah,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- sax2/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ sax2/Makefile.in
+@@ -110,5 +110,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/,$(SAX2_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(SAX2_CPP_PUBHEADERS) $(SAX2_C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(SAX2_CPP_PUBHEADERS) $(SAX2_C_FILES) $(PREFIX)/include/$(MODULE)
diff --git a/textproc/xerces-c/patches/patch-ai b/textproc/xerces-c/patches/patch-ai
new file mode 100644
index 00000000000..9c42c258936
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/AutoSense.hpp.orig Sat Sep 30 18:37:28 2000
++++ util/AutoSense.hpp
+@@ -179,6 +179,8 @@
+ #define XML_MACOSX
+ #elif defined(__alpha) && defined(__osf__)
+ #define XML_TRU64
++#elif defined(__NetBSD__)
++ #define XML_NETBSD
+ #else
+ #error Code requires port to host OS!
+ #endif
diff --git a/textproc/xerces-c/patches/patch-aj b/textproc/xerces-c/patches/patch-aj
new file mode 100644
index 00000000000..6e8a718ad18
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-aj
@@ -0,0 +1,35 @@
+$NetBSD: patch-aj,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/Compilers/GCCDefs.hpp.orig Sat Sep 30 18:37:28 2000
++++ util/Compilers/GCCDefs.hpp
+@@ -130,7 +130,7 @@
+ #define XERCES_DEBUG
+ #endif
+
+-
++#ifndef __NetBSD__
+ // ---------------------------------------------------------------------------
+ // Provide some common string ops that are different/notavail on GCC
+ // ---------------------------------------------------------------------------
+@@ -147,11 +147,19 @@
+ return char(toLower + 0x20);
+ return toLower;
+ }
+-
+ int stricmp(const char* const str1, const char* const str2);
+ int strnicmp(const char* const str1, const char* const str2, const unsigned int count);
++#else /* __NetBSD__ */
++#ifndef XML_NETBSD_STRICMP_DEFINED
++#define XML_NETBSD_STRICMP_DEFINED
++#include <strings.h>
++inline int stricmp(const char* const str1, const char* const str2);
++inline int strnicmp(const char* const str1, const char* const str2, const unsigned int count);
+
+-
++inline int stricmp(const char* const str1, const char* const str2) { return strcasecmp(str1,str2);}
++inline int strnicmp(const char* const str1, const char* const str2, const unsigned int count) { return strncasecmp(str1,str2,count);}
++#endif /* XML_NETBSD_STRICMP_DEFINED */
++#endif /* __NetBSD__ */
+
+ // ---------------------------------------------------------------------------
+ // The name of the DLL that is built by the GCC version of the system.
diff --git a/textproc/xerces-c/patches/patch-ak b/textproc/xerces-c/patches/patch-ak
new file mode 100644
index 00000000000..8582e73d287
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ak
@@ -0,0 +1,15 @@
+$NetBSD: patch-ak,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/Makefile.in.orig Sat Sep 30 18:37:28 2000
++++ util/Makefile.in
+@@ -392,8 +392,8 @@
+
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)
+- $(CP) $(UTIL_CPP_PUBHEADERS) $(C_FILES) $(PREFIX)/$(MODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)
++ $(CP) $(UTIL_CPP_PUBHEADERS) $(C_FILES) $(PREFIX)/include/$(MODULE)
+ cd Platforms ; $(MAKE) $@ ; cd ..
+ cd Transcoders/$(TRANSCODERMODULE) ; $(MAKE) $@ ; cd ../..
+ cd MsgLoaders/$(MESSAGELOADERMODULE) ; $(MAKE) $@ ; cd ../..
diff --git a/textproc/xerces-c/patches/patch-al b/textproc/xerces-c/patches/patch-al
new file mode 100644
index 00000000000..58210b9db45
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-al
@@ -0,0 +1,12 @@
+$NetBSD: patch-al,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/Makefile.util.submodule.orig Sat Sep 30 18:37:32 2000
++++ util/Makefile.util.submodule
+@@ -76,5 +76,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/$(SUBMODULE)/,$(CPP_PUBHEADERS))
+
+ install:
+- -mkdir -p $(PREFIX)/$(MODULE)/$(SUBMODULE)
+- $(CP) $(CPP_PUBHEADERS) $(PREFIX)/$(MODULE)/$(SUBMODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)/$(SUBMODULE)
++ $(CP) $(CPP_PUBHEADERS) $(PREFIX)/include/$(MODULE)/$(SUBMODULE)
diff --git a/textproc/xerces-c/patches/patch-am b/textproc/xerces-c/patches/patch-am
new file mode 100644
index 00000000000..0b54d03d8e6
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-am
@@ -0,0 +1,14 @@
+$NetBSD: patch-am,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/Platforms/Makefile.in.orig Sat Sep 30 18:37:34 2000
++++ util/Platforms/Makefile.in
+@@ -148,6 +148,9 @@
+ ifeq (${PLATFORM}, TRU64)
+ SUBMODULE = Tru64
+ endif
++ifeq (${PLATFORM}, NETBSD)
++ SUBMODULE = NetBSD
++endif
+
+ includes::
+ ${CD} $(SUBMODULE) ; $(MAKE) $@ ; ${CD} ..
diff --git a/textproc/xerces-c/patches/patch-an b/textproc/xerces-c/patches/patch-an
new file mode 100644
index 00000000000..e2c26d06ae0
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-an
@@ -0,0 +1,13 @@
+$NetBSD: patch-an,v 1.1.1.1 2001/01/13 16:38:23 skrll Exp $
+
+--- util/Transcoders/Iconv/IconvTransService.cpp.orig Sat Sep 30 18:37:34 2000
++++ util/Transcoders/Iconv/IconvTransService.cpp
+@@ -66,7 +66,7 @@
+ #include <util/XMLUni.hpp>
+ #include "IconvTransService.hpp"
+ #include <wchar.h>
+-#if defined (XML_GCC) || defined (XML_PTX) || defined (XML_IBMVAOS2)
++#if (defined (XML_GCC) || defined (XML_PTX) || defined (XML_IBMVAOS2)) && (!defined (XML_NETBSD))
+ #include <wctype.h>
+ #endif
+ #include <string.h>
diff --git a/textproc/xerces-c/patches/patch-ao b/textproc/xerces-c/patches/patch-ao
new file mode 100644
index 00000000000..0c4410918f6
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ao
@@ -0,0 +1,14 @@
+$NetBSD: patch-ao,v 1.1.1.1 2001/01/13 16:38:22 skrll Exp $
+
+--- util/XercesDefs.hpp.orig Sat Sep 30 18:37:34 2000
++++ util/XercesDefs.hpp
+@@ -214,6 +214,9 @@
+ #include <util/Platforms/Tru64/Tru64Defs.hpp>
+ #endif
+
++#if defined(XML_NETBSD)
++#include <util/Platforms/NetBSD/NetBSDDefs.hpp>
++#endif
+
+ // ---------------------------------------------------------------------------
+ // And now we subinclude a header according to the development environment
diff --git a/textproc/xerces-c/patches/patch-ap b/textproc/xerces-c/patches/patch-ap
new file mode 100644
index 00000000000..bf647eaba95
--- /dev/null
+++ b/textproc/xerces-c/patches/patch-ap
@@ -0,0 +1,12 @@
+$NetBSD: patch-ap,v 1.1.1.1 2001/01/13 16:38:27 skrll Exp $
+
+--- validators/DTD/Makefile.in.orig Sat Sep 30 18:37:36 2000
++++ validators/DTD/Makefile.in
+@@ -159,5 +159,5 @@
+ $(RM2) $(addprefix $(XML_INC_DIR)/$(MODULE)/$(SUBMODULE)/,$(VALIDATORS_DTD_CPP_PUBHEADERS))
+
+ install::
+- -mkdir -p $(PREFIX)/$(MODULE)/$(SUBMODULE)
+- $(CP) $(VALIDATORS_DTD_CPP_PUBHEADERS) $(VALIDATORS_DTD_C_FILES) $(PREFIX)/$(MODULE)/$(SUBMODULE)
++ -mkdir -p $(PREFIX)/include/$(MODULE)/$(SUBMODULE)
++ $(CP) $(VALIDATORS_DTD_CPP_PUBHEADERS) $(VALIDATORS_DTD_C_FILES) $(PREFIX)/include/$(MODULE)/$(SUBMODULE)