From 2a67646695cf8d3f81087ca426836cd035f23244 Mon Sep 17 00:00:00 2001 From: ponce Date: Sat, 31 Mar 2012 18:53:35 +0200 Subject: libraries/podofo: Included a patch for gcc-4.7.x. Signed-off-by: Robby Workman --- libraries/podofo/podofo-0.9.1-unistd.patch | 11 +++++++++++ libraries/podofo/podofo.SlackBuild | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libraries/podofo/podofo-0.9.1-unistd.patch (limited to 'libraries/podofo') diff --git a/libraries/podofo/podofo-0.9.1-unistd.patch b/libraries/podofo/podofo-0.9.1-unistd.patch new file mode 100644 index 000000000000..5cb9ad68aea3 --- /dev/null +++ b/libraries/podofo/podofo-0.9.1-unistd.patch @@ -0,0 +1,11 @@ +diff -up podofo-0.9.1/test/unit/TestUtils.cpp.unistd podofo-0.9.1/test/unit/TestUtils.cpp +--- podofo-0.9.1/test/unit/TestUtils.cpp.unistd 2012-01-16 18:12:52.000000000 +0100 ++++ podofo-0.9.1/test/unit/TestUtils.cpp 2012-01-16 18:13:00.000000000 +0100 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #if defined(_WIN32) || defined(_WIN64) + #include diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild index 740f6ea597dc..83a66fd7d00d 100644 --- a/libraries/podofo/podofo.SlackBuild +++ b/libraries/podofo/podofo.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=podofo VERSION=0.9.1 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -54,6 +54,10 @@ find . \ # Fix mandir directory. sed -i 's|share/man|man|' CMakeLists.txt +# Fix building with gcc-4.7.x +# http://sourceforge.net/tracker/?func=detail&aid=3474494&group_id=154028&atid=790130 +patch -p1 < $CWD/podofo-0.9.1-unistd.patch + mkdir build cd build cmake -G "Unix Makefiles" \ -- cgit v1.2.3