mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Fix xcb_proto recipe
Again python stuff...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user