alsa-lib: use --libdir=/usr/lib32 on x86 for 32bit pkgs.

This commit is contained in:
Juan RP 2014-03-09 09:47:28 +01:00
parent e24233a15a
commit 0e8e3d648c

View file

@ -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