mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
jsoncpp: bump version
keep lib:libjsoncpp version 22 for compatibility.
This commit is contained in:
67
dev-libs/jsoncpp/jsoncpp22-1.9.2.recipe
Normal file
67
dev-libs/jsoncpp/jsoncpp22-1.9.2.recipe
Normal file
@@ -0,0 +1,67 @@
|
||||
SUMMARY="A C++ library for interacting with JSON"
|
||||
DESCRIPTION="JsonCpp is a C++ library that allows manipulating JSON values, \
|
||||
including serialization and deserialization to and from strings. It can also \
|
||||
preserve existing comment in unserialization/serialization steps, making it a \
|
||||
convenient format to store user input files."
|
||||
HOMEPAGE="https://github.com/open-source-parsers/jsoncpp"
|
||||
COPYRIGHT="2007-2018 Baptiste Lepilleur and The JsonCpp Authors"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/open-source-parsers/jsoncpp/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="77a402fb577b2e0e5d0bdc1cf9c65278915cdb25171e3452c68b6da8a561f8f0"
|
||||
SOURCE_DIR="jsoncpp-$portVersion"
|
||||
SOURCE_FILENAME="jsoncpp-$portVersion.tar.gz"
|
||||
PATCHES="jsoncpp-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="22"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
jsoncpp22$secondaryArchSuffix = $portVersion
|
||||
lib:libjsoncpp$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
for i in shared static; do
|
||||
meson --prefix="$prefix" --libdir="$libDir" --includedir="$includeDir" \
|
||||
--buildtype release \
|
||||
--default-library $i . build-$i
|
||||
ninja -C build-$i $jobArgs
|
||||
done
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build-shared install
|
||||
ninja -C build-static install
|
||||
|
||||
prepareInstalledDevelLib libjsoncpp
|
||||
fixPkgconfig
|
||||
|
||||
rm -rf $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
LIBRARY_PATH="$sourceDir/build-shared${LIBRARY_PATH:+:$LIBRARY_PATH}" \
|
||||
ninja -C build-shared test
|
||||
}
|
||||
Reference in New Issue
Block a user