From c596fcd4f5676b60f54ec8b7ada705adf10ee6d3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 28 Apr 2011 16:27:53 +0200 Subject: [PATCH] xbmc-pvr: add (ugly) hack to detect the python version if we compile between arch's Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc-pvr/build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/mediacenter/xbmc-pvr/build b/packages/mediacenter/xbmc-pvr/build index 46c5c512aa..682b6090de 100755 --- a/packages/mediacenter/xbmc-pvr/build +++ b/packages/mediacenter/xbmc-pvr/build @@ -85,6 +85,12 @@ fi # this fixes problems with faac implementation of ffmpeg LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"` + export PYTHON_VERSION="2.6" + export PYTHON_CPPFLAGS="-I$SYSROOT_PREFIX/usr/include/python$PYTHON_VERSION" + export PYTHON_LDFLAGS="-L$SYSROOT_PREFIX/usr/lib/python$PYTHON_VERSION -lpython$PYTHON_VERSION" + export PYTHON_SITE_PKG="$SYSROOT_PREFIX/usr/lib/python$PYTHON_VERSION/site-packages" + export ac_python_version="$PYTHON_VERSION" + # this fixes the "stretching picture bug" CFLAGS=`echo $CFLAGS | sed -e "s|-ftree-loop-distribution||"` CFLAGS=`echo $CFLAGS | sed -e "s|-floop-interchange||"`