summaryrefslogtreecommitdiffstats
path: root/textproc/libxml2/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/libxml2/files/patch-configure')
-rw-r--r--textproc/libxml2/files/patch-configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-configure b/textproc/libxml2/files/patch-configure
new file mode 100644
index 000000000..3c7222051
--- /dev/null
+++ b/textproc/libxml2/files/patch-configure
@@ -0,0 +1,25 @@
+--- configure.orig 2010-03-20 17:52:35.000000000 -0400
++++ configure 2010-03-20 17:52:35.000000000 -0400
+@@ -19865,11 +19865,12 @@ fi
+ fi
+ if test "$PYTHON_VERSION" != ""
+ then
++ with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
+ if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
+ -d $with_python/lib/python$PYTHON_VERSION/site-packages
+ then
+ PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
+- PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
++ PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
+ else
+ if test -r $prefix/include/python$PYTHON_VERSION/Python.h
+ then
+@@ -20678,6 +20679,8 @@ fi
+ fi
+ fi
+ ;;
++ *freebsd*) THREAD_LIBS=""
++ ;;
+ esac
+ if test "$WITH_THREADS" = "1" ; then
+ THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"