mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
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="329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5"
|
|
|
|
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 -Wno-error=dangling-reference" \
|
|
..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $(dirname $includeDir) $(dirname $dataDir)
|
|
mv $prefix/include $includeDir
|
|
mv $prefix/share $dataDir
|
|
}
|