1 # Template file for 'bmake'
6 short_desc="Portable version of the NetBSD make build tool"
7 maintainer="Juan RP <xtraeme@voidlinux.eu>"
9 homepage="http://www.crufty.net/help/sjg/bmake.html"
10 distfiles="http://www.crufty.net/ftp/pub/sjg/bmake-${version}.tar.gz"
11 checksum=ac3cd262065fcc20c1dec7c95f06306c8138b3e17025b949343a06a8980a5508
15 sed -i 's/op_test() {/& return 0;/' boot-strap
16 sed -i '1s,:,#!/bin/sh,g' install-sh
17 if [ "$CROSS_BUILD" ]; then
20 # Build a native bmake for installation
21 unset CC LD AR CFLAGS LDFLAGS
22 ../boot-strap op=build
28 mkdir -p bmake/bmake-build
30 if [ "$CROSS_BUILD" ]; then
31 _args="--host=${XBPS_CROSS_TRIPLET}"
33 ../boot-strap ${_args} --prefix=/usr op=build
38 if [ "$CROSS_BUILD" ]; then
39 sed -i "s,^BMAKE=$,BMAKE=${wrksrc}/bmake/bmake-host/bmake," ../boot-strap
41 ../boot-strap --prefix=/usr --install-destdir=${DESTDIR} op=install
42 rm -rf ${DESTDIR}/usr/share/man/cat1
45 sed -n '/#/q;p' ../make.c >LICENSE