From fa76bdb66f9b3e952d059ae742afd9a2abf2a169 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 Mar 2013 22:52:41 +0100 Subject: [PATCH] netbsd-rumpkernel: cross build support; misc tweaks. --- srcpkgs/netbsd-rumpkernel/template | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/srcpkgs/netbsd-rumpkernel/template b/srcpkgs/netbsd-rumpkernel/template index a3b752a8f27..03c40c2f4f9 100644 --- a/srcpkgs/netbsd-rumpkernel/template +++ b/srcpkgs/netbsd-rumpkernel/template @@ -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 " @@ -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() {