netbsd-rumpkernel: cross build support; misc tweaks.

This commit is contained in:
Juan RP 2013-03-20 22:52:41 +01:00
parent ccf848b4c8
commit fa76bdb66f

View File

@ -1,7 +1,7 @@
# Template file for 'netbsd-rumpkernel'.
pkgname=netbsd-rumpkernel
version=20130318
revision=3
version=20130320
revision=1
makedepends="cvs"
short_desc="NetBSD rump kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -24,19 +24,16 @@ noextract=yes
do_fetch() {
local url="git://github.com/anttikantee/buildrump.sh.git"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
git clone -bcrossbuild ${url} ${pkgname}-${version}
}
do_configure() {
CVS_PASSFILE=/dev/null ./buildrump.sh checkout
}
do_build() {
vmkdir usr
CVS_PASSFILE=/dev/null ./buildrump.sh checkout
if [ -n "$XBPS_CROSS_BUILD" ]; then
env CC="gcc" LD="ld" AS="as" RANLIB="ranlib" ./buildrump.sh tools
else
./buildrump.sh -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
fi
./buildrump.sh -r -d ${DESTDIR}/usr build
./buildrump.sh ${makejobs} -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
./buildrump.sh ${makejobs} -r -d ${DESTDIR}/usr build
}
do_install() {