summaryrefslogtreecommitdiff
path: root/packages/freesmartphone/fsod/autofoo.patch
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-11-20 18:05:24 +0100
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-11-20 18:06:21 +0100
commitf0f46dca8706b0c63174895afa5bd180df2c9e0e (patch)
tree6902b670fe34d7349de10a4d6d63af45875f3f1f /packages/freesmartphone/fsod/autofoo.patch
parentde9c5b380e29790c4d3ad7ea7abbd41afebbd64f (diff)
fsod: make it build with python support
Diffstat (limited to 'packages/freesmartphone/fsod/autofoo.patch')
-rw-r--r--packages/freesmartphone/fsod/autofoo.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/freesmartphone/fsod/autofoo.patch b/packages/freesmartphone/fsod/autofoo.patch
new file mode 100644
index 0000000000..3ed26aeb79
--- /dev/null
+++ b/packages/freesmartphone/fsod/autofoo.patch
@@ -0,0 +1,13 @@
+Index: fsod/configure.ac
+===================================================================
+--- fsod/configure.ac
++++ ~fsod/configure.ac
+@@ -85,7 +85,7 @@ if test "x$have_python" != "xno"; then
+ PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
+ PYTHON_LIBS="-lpython$PYTHON_VERSION"
+ PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
+- PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
++ PYTHON_CFLAGS="${PYTHON_INCLUDES}" # "-I`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_inc()'`"
+ PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
+ PYTHON_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
+ PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`