From 968a91ee79bf95e8cc0a43f89f5a2207982b105e Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Thu, 24 Jul 2003 15:51:39 +0000 Subject: Fix building under ${OSVERSION} >= 500113 Submitted by: Simon Barner --- textproc/xmlpp/Makefile | 9 ++------- textproc/xmlpp/files/patch-src::xmlcommon.h | 11 +++++++++++ textproc/xmlpp/files/patch-src::xmlpp.cpp | 15 +++++++++++++++ textproc/xmlpp/files/patch-src::xmltokenizer.cpp | 11 +++++++++++ textproc/xmlpp/files/patch-test::nodetest.cpp | 10 ++++++++++ 5 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 textproc/xmlpp/files/patch-src::xmlcommon.h create mode 100644 textproc/xmlpp/files/patch-src::xmlpp.cpp create mode 100644 textproc/xmlpp/files/patch-src::xmltokenizer.cpp create mode 100644 textproc/xmlpp/files/patch-test::nodetest.cpp (limited to 'textproc/xmlpp') diff --git a/textproc/xmlpp/Makefile b/textproc/xmlpp/Makefile index 88749dfe382b..a3de73cdaa1b 100644 --- a/textproc/xmlpp/Makefile +++ b/textproc/xmlpp/Makefile @@ -19,14 +19,9 @@ FETCH_CMD= /usr/bin/fetch USE_GMAKE= yes USE_LIBTOOL= yes -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (bad C++ code)" -.endif - pre-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|/usr/local/share|$$(datadir)|g' + @${RM} ${WRKSRC}/config.cache -.include +.include diff --git a/textproc/xmlpp/files/patch-src::xmlcommon.h b/textproc/xmlpp/files/patch-src::xmlcommon.h new file mode 100644 index 000000000000..0a86e5acf3ff --- /dev/null +++ b/textproc/xmlpp/files/patch-src::xmlcommon.h @@ -0,0 +1,11 @@ +--- src/xmlcommon.h.orig Wed Jul 23 04:10:04 2003 ++++ src/xmlcommon.h Wed Jul 23 04:12:03 2003 +@@ -20,6 +20,8 @@ + + //! dummy define + #define XMLPP_API ++ ++using std::string; + + //! handle to a tagname string in a tagname map + typedef int xmltagnamehandle; diff --git a/textproc/xmlpp/files/patch-src::xmlpp.cpp b/textproc/xmlpp/files/patch-src::xmlpp.cpp new file mode 100644 index 000000000000..366a1d4cbbb8 --- /dev/null +++ b/textproc/xmlpp/files/patch-src::xmlpp.cpp @@ -0,0 +1,15 @@ +--- ./src/xmlpp.cpp.orig Wed Jul 23 04:12:52 2003 ++++ ./src/xmlpp.cpp Wed Jul 23 04:13:52 2003 +@@ -21,6 +21,12 @@ + //debug + #include + ++using std::cout; ++using std::cerr; ++using std::endl; ++using std::ifstream; ++using std::ofstream; ++ + namespace xmlpp { + + // internal use for saving diff --git a/textproc/xmlpp/files/patch-src::xmltokenizer.cpp b/textproc/xmlpp/files/patch-src::xmltokenizer.cpp new file mode 100644 index 000000000000..ced263bff89d --- /dev/null +++ b/textproc/xmlpp/files/patch-src::xmltokenizer.cpp @@ -0,0 +1,11 @@ +--- src/xmltokenizer.cpp.orig Wed Jul 23 04:14:53 2003 ++++ src/xmltokenizer.cpp Wed Jul 23 04:29:18 2003 +@@ -15,7 +15,7 @@ + // needed includes + #include "xmlpp.h" + #include "xmltokenizer.h" +- ++#include + + // namespace declaration + namespace xmlpp { diff --git a/textproc/xmlpp/files/patch-test::nodetest.cpp b/textproc/xmlpp/files/patch-test::nodetest.cpp new file mode 100644 index 000000000000..4d76d88a3f34 --- /dev/null +++ b/textproc/xmlpp/files/patch-test::nodetest.cpp @@ -0,0 +1,10 @@ +--- test/nodetest.cpp.orig Wed Jul 23 04:18:02 2003 ++++ test/nodetest.cpp Wed Jul 23 04:19:01 2003 +@@ -5,6 +5,7 @@ + */ + + #include ++#include + #include "xmlpp.h" + + using namespace xmlpp; -- cgit v1.2.3