pciutils: fix crosscompilation

This commit is contained in:
pancake 2013-04-11 17:09:16 +02:00
parent 7d4a70c3f4
commit 8cdd99d886

View file

@ -1,7 +1,7 @@
# Template file for 'pciutils'
pkgname=pciutils
version=3.1.10
revision=1
revision=2
homepage="http://mj.ucw.cz/pciutils.html"
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
subpackages="$pkgname-devel"
@ -15,16 +15,19 @@ long_desc="
setting devices connected to the PCI bus."
do_build() {
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr \
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no AR=${AR} \
RANLIB=${RANLIB} PREFIX=/usr CC="${CC}" \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
make clean
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=yes PREFIX=/usr \
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=yes \
AR=${AR} RANLIB=${RANLIB} PREFIX=/usr CC="${CC}" \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
}
do_install() {
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata \
STRIP="-s --strip-program=${STRIP} " \
MANDIR=/usr/share/man DESTDIR=${DESTDIR} install install-lib
vinstall ${XBPS_MASTERDIR}/tmp/libpci.a 644 usr/lib