Fix xcb_proto recipe

Again python stuff...
This commit is contained in:
François Revol
2014-07-29 18:41:41 +02:00
parent c81b2b4934
commit 9542a59b33

View File

@@ -21,11 +21,11 @@ REQUIRES="
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:util_macros$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:util_macros$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal
@@ -38,20 +38,26 @@ BUILD_PREREQUIRES="
SOURCE_DIR="xcb-proto-$portVersion"
GLOBAL_WRITABLE_FILES="
non-packaged/lib/python2.6/site-packages directory keep-old
"
BUILD()
{
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
make
# force python dirs as the autodected one is the non-packaged one.
export PATH="$portPackageLinksDir/cmd~python/bin:$PATH"
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
export pyexecdir=$prefix/lib/python$pythonVersion/vendor-packages
export pythondir=$prefix/lib/python$pythonVersion/vendor-packages
make pyexecdir=$pyexecdir pythondir=$pythondir
}
INSTALL()
{
make install DESTDIR=/
# force python dirs as the autodected one is the non-packaged one.
export PATH="$portPackageLinksDir/cmd~python/bin:$PATH"
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
export pyexecdir=$prefix/lib/python$pythonVersion/vendor-packages
export pythondir=$prefix/lib/python$pythonVersion/vendor-packages
make install DESTDIR=/ pyexecdir=$pyexecdir pythondir=$pythondir
fixPkgconfig
}