From 0e8e3d648c1361b59304d71ce24a602525829887 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 9 Mar 2014 09:47:28 +0100 Subject: [PATCH] alsa-lib: use --libdir=/usr/lib32 on x86 for 32bit pkgs. --- srcpkgs/alsa-lib/template | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template index 25b4996091a..24b625b4716 100644 --- a/srcpkgs/alsa-lib/template +++ b/srcpkgs/alsa-lib/template @@ -1,7 +1,7 @@ # Template build file for 'alsa-lib'. pkgname=alsa-lib version=1.0.27.2 -revision=2 +revision=3 build_style=gnu-configure configure_args="--with-pythonlibs=-lpython2.7 --with-pythonincludes=-I${XBPS_CROSS_BASE}/usr/include/python2.7" hostmakedepends="automake libtool pkg-config python-devel" @@ -13,6 +13,17 @@ homepage="http://www.alsa-project.org" distfiles="ftp://ftp.alsa-project.org/pub/lib/$pkgname-$version.tar.bz2" checksum=690ed393e7efd4fc7e3a2d2cda5449298ca0c895197e5914e350882012430d19 +if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + configure_args+=" --libdir=/usr/lib32" + pre_install() { + vmkdir usr/lib + ln -s lib ${DESTDIR}/usr/lib32 + } + post_install() { + rm ${DESTDIR}/usr/lib32 + } +fi + pre_configure() { sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in autoreconf -fi