mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
90 lines
1.9 KiB
Bash
90 lines
1.9 KiB
Bash
SUMMARY="A C library for encoding, decoding and manipulating JSON data"
|
|
DESCRIPTION="Jansson is a C library for encoding, decoding and manipulating \
|
|
JSON data. It features a simple and intuitive API and data model, \
|
|
comprehensive documentation, no dependencies on other libraries, full unicode \
|
|
support (UTF-8) and an extensive test suite."
|
|
HOMEPAGE="http://www.digip.org/jansson/"
|
|
COPYRIGHT="2009-2016 Petri Lehtinen
|
|
2011-2012 Basile Starynkevitch
|
|
2011-2012 Graeme Smecher"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.digip.org/jansson/releases/jansson-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="241125a55f739cd713808c4e0089986b8c3da746da8b384952912ad659fa2f5a"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
jansson$secondaryArchSuffix = $portVersion compat >= 2
|
|
lib:libjansson$secondaryArchSuffix = 4.10.0 compat >= 4
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libjansson${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libjansson$secondaryArchSuffix = 4.10.0 compat >= 4
|
|
"
|
|
REQUIRES_devel="
|
|
jansson$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:autoheader
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:diff
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
|
sed -i \
|
|
-e "/AM_CFLAGS=/ s/ -Wextra//" \
|
|
-e "/AM_CFLAGS=/ s/ -Wdeclaration-after-statement//" \
|
|
configure.ac
|
|
fi
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/libjansson.la
|
|
|
|
# devel package
|
|
prepareInstalledDevelLib libjansson
|
|
|
|
fixPkgconfig
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|