diff options
author | lofi <lofi@FreeBSD.org> | 2005-07-04 14:01:12 +0000 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2005-07-04 14:01:12 +0000 |
commit | 779e373093ba7ea5250a3875bf519e317233ff33 (patch) | |
tree | 9d0c9b7f44db303cd555265a202f05439a4c143d /textproc/libwpd | |
parent | 01b2ab2253216243bd11eb6163428bafc850ef4f (diff) | |
download | FreeBSD-ports-779e373093ba7ea5250a3875bf519e317233ff33.zip FreeBSD-ports-779e373093ba7ea5250a3875bf519e317233ff33.tar.gz |
Unbreak on FreeBSD 4.
Diffstat (limited to 'textproc/libwpd')
-rw-r--r-- | textproc/libwpd/Makefile | 8 | ||||
-rw-r--r-- | textproc/libwpd/files/patch-src-conv-html-HtmlListener.cpp | 11 | ||||
-rw-r--r-- | textproc/libwpd/files/patch-src-lib-WPXString.cpp | 11 |
3 files changed, 23 insertions, 7 deletions
diff --git a/textproc/libwpd/Makefile b/textproc/libwpd/Makefile index 25d81d7..3495017 100644 --- a/textproc/libwpd/Makefile +++ b/textproc/libwpd/Makefile @@ -20,10 +20,4 @@ USE_LIBTOOL_VER=15 USE_GNOME= gnomehack libgsf INSTALLS_SHLIB= yes -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 500000 -BROKEN= "Does not compile on FreeBSD 4.x" -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/textproc/libwpd/files/patch-src-conv-html-HtmlListener.cpp b/textproc/libwpd/files/patch-src-conv-html-HtmlListener.cpp new file mode 100644 index 0000000..8446822 --- /dev/null +++ b/textproc/libwpd/files/patch-src-conv-html-HtmlListener.cpp @@ -0,0 +1,11 @@ +--- src/conv/html/HtmlListenerImpl.cpp.orig Tue Jun 28 00:31:29 2005 ++++ src/conv/html/HtmlListenerImpl.cpp Tue Jun 28 00:33:48 2005 +@@ -144,7 +144,7 @@ + + printf("<span style=\""); + if (propList["style:font-name"]) +- printf("font-family: \'%s\'\;", propList["style:font-name"]->getStr().cstr()); ++ printf("font-family: \'%s\';",propList["style:font-name"]->getStr().cstr()); + if (propList["fo:font-size"]) + printf("font-size: %s;", propList["fo:font-size"]->getStr().cstr()); + if (propList["fo:font-weight"]) diff --git a/textproc/libwpd/files/patch-src-lib-WPXString.cpp b/textproc/libwpd/files/patch-src-lib-WPXString.cpp new file mode 100644 index 0000000..77103cf --- /dev/null +++ b/textproc/libwpd/files/patch-src-lib-WPXString.cpp @@ -0,0 +1,11 @@ +--- src/lib/WPXString.cpp.orig Tue Jun 28 00:17:50 2005 ++++ src/lib/WPXString.cpp Tue Jun 28 00:15:50 2005 +@@ -179,7 +179,7 @@ + + void WPXString::clear() + { +- static_cast<std::string *>(m_buf)->clear(); ++ static_cast<std::string *>(m_buf)->erase(static_cast<std::string *>(m_buf)->begin(), static_cast<std::string *>(m_buf)->end()); + } + + int WPXString::len() const |