mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
68 lines
1.6 KiB
Bash
68 lines
1.6 KiB
Bash
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-2010 Baptiste Lepilleur"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/open-source-parsers/jsoncpp/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3671ba6051e0f30849942cc66d1798fdf0362d089343a83f704c09ee7156604f"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
jsoncpp$secondaryArchSuffix = $portVersion
|
|
lib:libjsoncpp$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
jsoncpp${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libjsoncpp$secondaryArchSuffix = $portVersion
|
|
devel:libjsoncpp_static$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
jsoncpp$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
# cmd:python2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
|
|
cmake $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE='Release' \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLib libjsoncpp*
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|