Files
haikuports/sys-devel/bmake/bmake-20160220.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

59 lines
1.4 KiB
Bash

SUMMARY="Portable version of NetBSD make"
DESCRIPTION="Bmake is derived from NetBSD's make(1), its goal is to be a \
portable version of same, so new features are added via imports of NetBSD's \
make (I'm one of the contributors to NetBSD). Thus bmake is kept in sync with \
NetBSD's make.
This version of Make features several extensions that are not in GNU Make, and \
does not has all of GNU Make extensions. Some projects explicitly require one \
or the other."
HOMEPAGE="http://www.crufty.net/help/sjg/bmake.htm"
COPYRIGHT="1990-2014 NetBSD and sjg"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="http://www.crufty.net/ftp/pub/sjg/bmake-$portVersion.tar.gz"
CHECKSUM_SHA256="df874ff0976a161d2b94476299cae4d13f69ad2d238c10582378e41dcfd5ccdd"
SOURCE_DIR="bmake"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
bmake = $portVersion compat >= 20140214
cmd:bmake = $portVersion compat >= 20140214
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:make
cmd:diff
cmd:sed
"
BUILD()
{
runConfigure ./configure --with-default-sys-path=$dataDir/mk
make MANDIR=$manDir
}
INSTALL()
{
# 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
# Even when configured to look for files in dataDir, they are installed in
# share...
rm -rf $dataDir
mv $prefix/share $dataDir
}