From 7c8e4581e087330b13cd8bce453bc62871bc04eb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 9 Mar 2014 10:26:55 +0100 Subject: [PATCH] v4l-utils: use --libdir=/usr/lib32 on x86 for 32bit pkgs. --- srcpkgs/v4l-utils/template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template index f77362fef65..e31a894d667 100644 --- a/srcpkgs/v4l-utils/template +++ b/srcpkgs/v4l-utils/template @@ -1,12 +1,11 @@ # Template file for 'v4l-utils' pkgname=v4l-utils version=1.0.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-qv4l2 --with-udevdir=/usr/lib/udev" hostmakedepends="libtool which pkg-config" makedepends="libjpeg-turbo-devel libsysfs-devel" -depends="sysfsutils" conf_files="/etc/rc_maps.cfg" short_desc="Userspace tools and libraries for Video 4 Linux" maintainer="Juan RP " @@ -15,6 +14,17 @@ license="GPL-2, LGPL-2.1" distfiles="http://linuxtv.org/downloads/$pkgname/$pkgname-$version.tar.bz2" checksum=fc0132e82a18dfad9619be3abf50c206e2f449b1c14440cde36f25874fdce7df +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() { libtoolize -f }