mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add recipe for BMake - portable version of NetBSD make.
This commit is contained in:
56
sys-devel/bmake/bmake-20140214.recipe
Normal file
56
sys-devel/bmake/bmake-20140214.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
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"
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="1990-2014 NetBSD and sjg@crufty.net"
|
||||
SRC_URI="http://www.crufty.net/ftp/pub/sjg/bmake-20140214.tar.gz"
|
||||
CHECKSUM_SHA256="2ec1771a800431c26361659ab0f96ec5c2536e85b46564eb69fa75a4b12886de"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
bmake = $portVersion compat >= 3.82
|
||||
cmd:bmake = $portVersion compat >= 3.82
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:awk
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="bmake"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user