mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
json-c: bump to 0.13.1, drop old patch.
This commit is contained in:
76
dev-libs/json_c/json_c-0.13.1.recipe
Normal file
76
dev-libs/json_c/json_c-0.13.1.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
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, 2016-2017 Eric Haszlakiewicz
|
||||
2004-2005, 2013 Metaparadigm Pte. Ltd.
|
||||
2009-2012 Hewlett-Packard Development Company, L.P.
|
||||
2008-2009 Yahoo! Inc.
|
||||
2016 Alexandru Ardelean"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://s3.amazonaws.com/json-c_releases/releases/json-c-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b87e608d4d3f7bfdd36ef78d56d53c74e66ab278d318b71e6002a369d36f4873"
|
||||
SOURCE_DIR="json-c-$portVersion"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="4.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
json_c$secondaryArchSuffix = $portVersion
|
||||
lib:libjson_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
json_c${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libjson_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
json_c$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage json_c$secondaryArchSuffix \
|
||||
$libDir/libjson-c.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libjson-c.la
|
||||
|
||||
prepareInstalledDevelLib libjson-c
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user