SUMMARY="A C++11 library for serialization" DESCRIPTION="cereal is a header-only C++11 serialization library. cereal takes\ arbitrary data types and reversibly turns them into different representations\ , such as compact binary encodings, XML, or JSON. cereal was designed to be \ fast, light-weight, and easy to extend - it has no external dependencies and \ can be easily bundled with other code or used standalone." HOMEPAGE="https://github.com/USCiLab/cereal/" COPYRIGHT="2014, Randolph Voorhies, Shane Grant" LICENSE="BSD (3-clause)" REVISION="2" SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="1921f26d2e1daf9132da3c432e2fd02093ecaedf846e65d7679ddf868c7289c4" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="?x86" PROVIDES=" cereal$secondaryArchSuffix = $portVersion devel:cereal${secondaryArchSuffix} = $portVersion " REQUIRES=" " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libboost_serialization$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make " BUILD() { mkdir -p build && cd build cmake -DCMAKE_INSTALL_PREFIX=$prefix \ -DCMAKE_BUILD_TYPE='Release' \ -DSKIP_PORTABILITY_TEST=ON \ -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=unused-variable" \ .. make $jobArgs } INSTALL() { cd build make install mkdir -p $(dirname $includeDir) $(dirname $dataDir) mv $prefix/include $includeDir mv $prefix/share $dataDir }