Files
haikuports/sys-devel/m4/m4-1.4.17.recipe

66 lines
1.6 KiB
Bash

SUMMARY="The GNU macro processor"
DESCRIPTION="GNU M4 is an implementation of the traditional UNIX macro \
processor. It is mostly SVR4 compatible although it has some extensions \
(for example, handling more than 9 positional parameters to macros).
M4 is a macro processor in the sense that it copies its input to the output \
expanding macros as it goes. Macros are either builtin or user-defined and can \
take any number of arguments. Besides just doing macro expansion, M4 has \
builtin functions for including named files, running UNIX commands, doing \
integer arithmetic, manipulating text in various ways, recursion, etc. M4 can \
be used either as a front-end to a compiler or as a macro processor in its own \
right.
One of the biggest users of M4 is the GNU Autoconf project."
HOMEPAGE="http://www.gnu.org/software/m4/"
COPYRIGHT="2000, 2005-2011 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="http://ftp.gnu.org/gnu/m4/m4-$portVersion.tar.gz"
CHECKSUM_SHA256="3ce725133ee552b8b4baca7837fb772940b25e81b2a9dc92537aeaf733538c9e"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
PROVIDES="
m4 = $portVersion compat >= 1.4
cmd:m4 = $portVersion compat >= 1.4
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:ld
cmd:make
cmd:awk
cmd:sed
cmd:grep
"
defineDebugInfoPackage m4 \
$binDir/m4
BUILD()
{
runConfigure ./configure \
--disable-rpath --with-gnu-ld \
--enable-changeword --disable-gcc-warnings
make $jobArgs
}
INSTALL()
{
make install-strip
rm $libDir/charset.alias
rmdir $libDir
}
TEST()
{
make check
}