mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
@@ -4,9 +4,9 @@ DESCRIPTION="yaml-cpp is a YAML parser and emitter in C++ matching the YAML \
|
||||
HOMEPAGE="https://github.com/jbeder/yaml-cpp/"
|
||||
COPYRIGHT="2008 Jesse Beder"
|
||||
LICENSE="MIT"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/jbeder/yaml-cpp/archive/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0c88c49889e9b69e67a7ed55938bb3f8063fa787cfd36fc810ee01ef342e1e77"
|
||||
CHECKSUM_SHA256="ac50a27a201d16dc69a881b80ad39a7be66c4d755eda1f76c3a68781b922af8f"
|
||||
SOURCE_DIR="yaml-cpp-release-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
@@ -42,7 +42,8 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=$prefix .
|
||||
cmake -DBUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TOOLS=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix .
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -64,3 +65,15 @@ INSTALL()
|
||||
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