jsoncpp: bump version.

* use cmakeDirArgs.
This commit is contained in:
Jerome Duval
2017-09-20 21:55:31 +02:00
parent 18865159bb
commit 003b0aacc2

View 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-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
}