mg: cross build support.
This commit is contained in:
parent
74b96e961e
commit
497ca0384e
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'mg'
|
# Template file for 'mg'
|
||||||
pkgname=mg
|
pkgname=mg
|
||||||
version=20110905
|
version=20110905
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="ncurses-devel"
|
makedepends="ncurses-devel"
|
||||||
homepage="http://homepage.boetes.org/software/mg"
|
homepage="http://homepage.boetes.org/software/mg"
|
||||||
short_desc="Micro GNU/emacs"
|
short_desc="Micro GNU/emacs"
|
||||||
@ -14,7 +14,11 @@ long_desc="
|
|||||||
by the OpenBSD team."
|
by the OpenBSD team."
|
||||||
|
|
||||||
do_build() {
|
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() {
|
do_install() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user