bmake, fix recipe (#3733)

This commit is contained in:
Schrijvers Luc
2019-04-06 19:12:12 +02:00
committed by waddlesplash
parent d8718c9734
commit 08ae265318

View File

@@ -12,7 +12,7 @@ COPYRIGHT="1990-2018 NetBSD and sjg"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://www.crufty.net/ftp/pub/sjg/bmake-$portVersion.tar.gz"
CHECKSUM_SHA256="b0dd038583fe4a627f52f109887b71d365d8c51ec87f0e3fcb3ab6a9124eccee"
CHECKSUM_SHA256="fc0948b4eb0cf21fcec4f89660c0295150c55bf070d4b7445858947f84f7e67e"
SOURCE_DIR="bmake"
ARCHITECTURES="x86_gcc2 x86 x86_64"
@@ -29,9 +29,12 @@ BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:awk
cmd:diff
cmd:gcc
cmd:libtoolize
cmd:make
cmd:sed
"
@@ -46,16 +49,23 @@ PATCH()
BUILD()
{
autoreconf -vfi
runConfigure ./configure --with-default-sys-path="$dataDir"/mk
make MANDIR="$manDir"
}
INSTALL()
{
make install MANDIR="$manDir" ROOT_GROUP="`id -g -n`"
# The install process needs a root user, and there is no such thing in the
# chroot.
echo "root:x:0:" > /etc/group
useradd root || true # Don't fail if user already exists
make install MANDIR="$manDir"
}
TEST()
{
make test ROOT_GROUP="`id -g -n`"
# not sure if this is really needed, test are run in BUILD()
make test
}