mg: cross build support.

This commit is contained in:
Juan RP 2013-05-14 15:34:49 +02:00
parent 74b96e961e
commit 497ca0384e

View file

@ -1,7 +1,7 @@
# Template file for 'mg'
pkgname=mg
version=20110905
revision=1
revision=2
makedepends="ncurses-devel"
homepage="http://homepage.boetes.org/software/mg"
short_desc="Micro GNU/emacs"
@ -14,7 +14,11 @@ long_desc="
by the OpenBSD team."
do_build() {
./configure && make ${makejobs}
if [ "$CROSS_BUILD" ]; then
sed -e "s,/usr/include,$XBPS_CROSS_BASE/include,g" -i configure
fi
CC="$CC" ./configure
make CC="$CC" CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {