wpa_supplicant: cross build support.

This commit is contained in:
Juan RP 2013-02-16 10:39:59 +01:00
parent 7a02a61c88
commit b37586354f

View file

@ -11,12 +11,20 @@ distfiles="$homepage/releases/$pkgname-$version.tar.gz"
checksum=2c115609fbb5223d51381084a5c944455a8afcda81d584173ff55ba233379e09
makedepends="pkg-config libnl3-devel openssl-devel dbus-devel readline-devel"
crossmakedepends="libnl3-devel openssl-devel dbus-devel readline-devel"
conf_files="/etc/${pkgname}.conf"
do_build() {
sed -i 's|/usr/local|$(PREFIX)|g' Makefile
cp -f ${FILESDIR}/config .config
make PREFIX=/usr ${makejobs}
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
make CC="$XBPS_CROSS_TRIPLET-gcc" LD="$XBPS_CROSS_TRIPLET-ld" \
AR="$XBPS_CROSS_TRIPLET-ar" RANLIB="$XBPS_CROSS_TRIPLET-ranlib" \
PREFIX=/usr ${makejobs}
else
make PREFIX=/usr ${makejobs}
fi
}
do_install() {