SUMMARY="X.Org's C Bindings protocol headers" DESCRIPTION="The X C Bindings protocol headers." HOMEPAGE="http://xcb.freedesktop.org/" COPYRIGHT="2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett." LICENSE="MIT (no promotion)" REVISION="1" SOURCE_URI="http://xcb.freedesktop.org/dist/xcb-proto-$portVersion.tar.gz" CHECKSUM_SHA256="cfa49e65dd390233d560ce4476575e4b76e505a0e0bacdfb5ba6f8d0af53fd59" SOURCE_DIR="xcb-proto-$portVersion" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" xcb_proto$secondaryArchSuffix = $portVersion devel:xcb_proto$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:util_macros$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:autoconf cmd:libtool cmd:aclocal cmd:make cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix cmd:python " BUILD() { libtoolize --force --copy --install autoreconf -i runConfigure ./configure # 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() { # 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 # the .pc file doesn't get it anyway, force it sed -i "s,pythondir=.*/site-packages,pythondir=\${prefix}/lib/python$pythonVersion/vendor-packages," \ xcb-proto.pc make install DESTDIR=/ pyexecdir=$pyexecdir pythondir=$pythondir fixPkgconfig }