mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 18:20:07 +02:00
79
dev-cpp/yaml_cpp/yaml_cpp-0.5.3.recipe
Normal file
79
dev-cpp/yaml_cpp/yaml_cpp-0.5.3.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="A YAML parser and emitter in C++"
|
||||
DESCRIPTION="yaml-cpp is a YAML parser and emitter in C++ matching the YAML \
|
||||
1.2 spec."
|
||||
HOMEPAGE="https://github.com/jbeder/yaml-cpp/"
|
||||
COPYRIGHT="2008 Jesse Beder"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/jbeder/yaml-cpp/archive/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ac50a27a201d16dc69a881b80ad39a7be66c4d755eda1f76c3a68781b922af8f"
|
||||
SOURCE_DIR="yaml-cpp-release-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
yaml_cpp$secondaryArchSuffix = $portVersion compat >= 0.5
|
||||
lib:libyaml_cpp$secondaryArchSuffix = $portVersion compat >= 0.5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
yaml_cpp${secondaryArchSuffix}_devel = $portVersion compat >= 0.5
|
||||
devel:libyaml_cpp$secondaryArchSuffix = $portVersion compat >= 0.5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
yaml_cpp$secondaryArchSuffix == $portVersion
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:ld${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -DBUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TOOLS=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix .
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p `dirname $includeDir` $libDir
|
||||
mv $prefix/include $includeDir
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
mv $prefix/lib/libyaml-cpp* $prefix/lib/pkgconfig $libDir/
|
||||
fi
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libyaml-cpp
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# tests make the build considerably longer
|
||||
# TODO: fail with: The current thread is not holding the mutex @0xf96b94
|
||||
# probably because gtest is not ported (also it uses bundled one)
|
||||
cmake -DBUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TOOLS=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix .
|
||||
make $jobArgs
|
||||
cd test
|
||||
./run-tests
|
||||
}
|
||||
Reference in New Issue
Block a user