libudev: cross build support.

This commit is contained in:
Juan RP 2013-02-13 09:09:46 +01:00
parent 4a72cb300c
commit 4442b3ad03

View file

@ -24,6 +24,15 @@ license="LGPL-2.1, GPL-2, MIT"
distfiles="http://www.freedesktop.org/software/systemd/systemd-${version}.tar.xz"
checksum=e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
makedepends="automake gettext-devel ${makedepends}"
crossmakedepends="dbus-devel libcap-devel liblzma-devel libgcrypt-devel"
configure_args="${configure_args} PKG_CONFIG_LIBDIR=/usr/$XBPS_CROSS_TRIPLET/lib/pkgconfig"
pre_configure() {
autoreconf -fi
}
fi
post_install() {
# We are only interested in shlibs, headers and pc files.
rm -rf ${DESTDIR}/{etc,var}