VC: new recipe (#3369)

This commit is contained in:
miqlas
2019-01-04 20:16:42 +01:00
committed by waddlesplash
parent 9f5a2999e4
commit c62bb34e11

View File

@@ -0,0 +1,63 @@
SUMMARY="SIMD Vector Class Library for C++"
DESCRIPTION="A library to ease explicit vectorization of C++ code."
HOMEPAGE="https://github.com/VcDevel/Vc"
COPYRIGHT="2006-2016 Arseny Kapoulkine"
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://github.com/VcDevel/Vc/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="7e8b57ed5ff9eb0835636203898c21302733973ff8eaede5134dd7cb87f915f6"
SOURCE_FILENAME="vc-$portVersion.tar.gz"
SOURCE_DIR="Vc-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vc$secondaryArchSuffix = $portVersion
devel:libvc$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
# cmd:virtest
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
mkdir -p build_haiku && cd build_haiku
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
-DTARGET_ARCHITECTURE=generic
# -DBUILD_TESTING=ON
make ${jobArgs}
}
INSTALL()
{
cd build_haiku
make install
# move include dir to correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir
# prepare develop/lib
prepareInstalledDevelLibs libVc
}
TEST()
{
# cd build_haiku
# make test
true #virtest required
}