0
0
Fork 0
haikuports/sys-devel/ucpp/ucpp-1.3.5.recipe

65 lines
1.5 KiB
Bash

SUMMARY="A quick and light preprocessor, fully compliant with C99"
DESCRIPTION="ucpp is a C preprocessor. It is designed to be quick and light, \
but anyway fully compliant to the ISO standard 9899:1999, also known as C99. \
ucpp can be compiled as a stand-alone program, or linked to some other code; \
in the latter case, ucpp will output tokens, one at a time, on demand, as an \
integrated lexer."
HOMEPAGE="https://gitlab.com/scarabeusiv/ucpp"
COPYRIGHT="1999-2002 Thomas Pornin"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://gitlab.com/scarabeusiv/ucpp/uploads/79f08e39c676f15ed8a59335f6c9b924/ucpp-$portVersion.tar.xz"
CHECKSUM_SHA256="23c488d944592034601b88a6d416949c6f6adfae42ea8517f41e9ecaec18558a"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ucpp$secondaryArchSuffix = $portVersion
cmd:ucpp = $portVersion
lib:libucpp$secondaryArchSuffix = 13.0.5 compat >= 13
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
ucpp${secondaryArchSuffix}_devel = $portVersion
devel:libucpp$secondaryArchSuffix = 13.0.5 compat >= 13
"
REQUIRES_devel="
ucpp$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libucpp.a $libDir/libucpp.la
prepareInstalledDevelLibs libucpp
fixPkgconfig
packageEntries devel \
$developDir
}