diff --git a/dev-libs/cereal/cereal-1.2.2.recipe b/dev-libs/cereal/cereal-1.2.2.recipe new file mode 100644 index 000000000..01207f751 --- /dev/null +++ b/dev-libs/cereal/cereal-1.2.2.recipe @@ -0,0 +1,54 @@ +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="1" +SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="1921f26d2e1daf9132da3c432e2fd02093ecaedf846e65d7679ddf868c7289c4" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +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:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + " + +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 +}