mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
65 lines
1.4 KiB
Bash
65 lines
1.4 KiB
Bash
SUMMARY="A JSON implementation in C"
|
|
DESCRIPTION="
|
|
JSON-C implements a reference counting object model that allows you to easily \
|
|
construct JSON objects in C, output them as JSON formatted strings and parse \
|
|
JSON formatted strings back into the C representation of JSON objects."
|
|
HOMEPAGE="https://github.com/json-c/json-c/wiki"
|
|
COPYRIGHT="2009-2012 Eric Haszlakiewicz
|
|
2004, 2005 Metaparadigm Pte Ltd"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://s3.amazonaws.com/json-c_releases/releases/json-c-$portVersion-nodoc.tar.gz"
|
|
CHECKSUM_SHA256="5a617da9aade997938197ef0f8aabd7f97b670c216dc173977e1d56eef9e1291"
|
|
SOURCE_DIR="json-c-$portVersion"
|
|
PATCHES="json_c-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
json_c$secondaryArchSuffix = $portVersion
|
|
lib:libjson_c$secondaryArchSuffix = 2.0.2 compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
json_c${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libjson_c$secondaryArchSuffix = 2.0.2 compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
json_c$secondaryArchSuffix == $portVersion base
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtool
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libjson-c.la
|
|
|
|
prepareInstalledDevelLib libjson-c
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|