mg: cross build support.
This commit is contained in:
parent
74b96e961e
commit
497ca0384e
1 changed files with 6 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue