diff --git a/srcpkgs/mg/template b/srcpkgs/mg/template index e486db0817..cd3efaae55 100644 --- a/srcpkgs/mg/template +++ b/srcpkgs/mg/template @@ -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() {