mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
75 lines
1.7 KiB
Bash
75 lines
1.7 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="5deb2462cbf0c0121c9d6c9823ec72fe71417e34242e3509bc7c003d526465bc"
|
|
|
|
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
|
|
"
|
|
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 -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_BUILD_TYPE='Release' \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $includeDir
|
|
mv $prefix/include/* $includeDir/
|
|
rm -rf $prefix/include
|
|
|
|
mkdir -p $developLibDir/pkgconfig
|
|
mv $libDir/pkgconfig/*.pc $developLibDir/pkgconfig/
|
|
rm -rf $libDir/pkgconfig
|
|
|
|
fixPkgconfig
|
|
prepareInstalledDevelLib libjsoncpp
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|