summaryrefslogtreecommitdiff
path: root/graphics/inkscape/patches
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2010-12-14 22:19:52 +0000
committeradam <adam@pkgsrc.org>2010-12-14 22:19:52 +0000
commit31429c1ce85f76b06a1e01640fffc80e888749e7 (patch)
treeb22f937f61b68ec7b8ec3a4f5f2cb1db8b73b058 /graphics/inkscape/patches
parent663b73804bdb2ca35f507063cf063c717e055782 (diff)
downloadpkgsrc-31429c1ce85f76b06a1e01640fffc80e888749e7.tar.gz
Fix buildling on Mac OS X, without X11, with OpenMP
Diffstat (limited to 'graphics/inkscape/patches')
-rw-r--r--graphics/inkscape/patches/patch-ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/graphics/inkscape/patches/patch-ac b/graphics/inkscape/patches/patch-ac
new file mode 100644
index 00000000000..ceddfac19ac
--- /dev/null
+++ b/graphics/inkscape/patches/patch-ac
@@ -0,0 +1,27 @@
+$NetBSD: patch-ac,v 1.6 2010/12/14 22:19:52 adam Exp $
+
+--- configure.orig 2010-08-04 16:46:39.000000000 +0000
++++ configure
+@@ -8133,11 +8133,11 @@ for ax_openmp_flag in $ax_openmp_flags;
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char omp_set_num_threads ();
++#include <omp.h>
+ int
+ main ()
+ {
+-return omp_set_num_threads ();
++return omp_get_num_threads ();
+ ;
+ return 0;
+ }
+@@ -10765,7 +10765,7 @@ $as_echo "#define HAVE_CAIRO_PDF 1" >>co
+
+ fi
+
+-INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2"
++INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lxml2"
+ if test "x$openmp_ok" = "xyes"; then
+ INKSCAPE_LIBS="$INKSCAPE_LIBS -lgomp"
+ fi