getconf: Add recipe to build the FreeBSD getconf

We provide a makefile-engine makefile as a patch since
the existing makefile requires FreeBSD's buildsystem.
This commit is contained in:
François Revol
2013-12-28 09:55:15 +01:00
parent 8e1c7cbcaa
commit f754c72bb9
2 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
SUMMARY="Prints out values of POSIX configuration variables"
DESCRIPTION="FreeBSD getconf
The getconf command prints values of system configuration variables.
It is a command interface to the values returned by sysconf(3), confstr(3), and pathconf(3)."
HOMEPAGE="http://www.freebsd.org/"
COPYRIGHT="2000 Massachusetts Institute of Technology"
LICENSE="MIT"
SRC_URI="svn+http://svn.freebsd.org/base/head/usr.bin/getconf#260000"
#CHECKSUM_MD5=""
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="getconf-makefile.patch"
PROVIDES="
getconf = $portVersion
cmd:getconf = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
makefile_engine
cmd:mkdepend
cmd:gcc
cmd:make
"
BUILD()
{
export COPYRIGHT
export LICENSE
export PORT_VERSION=$portVersion
make -f makefile.haiku $jobArgs
}
INSTALL()
{
make -f makefile.haiku install INSTALL_DIR=$binDir
mkdir -p $manDir/man1
install -m 644 getconf.1 $manDir/man1/
}