mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
VC: new recipe (#3369)
This commit is contained in:
63
dev-libs/vc/vc-1.4.1.recipe
Normal file
63
dev-libs/vc/vc-1.4.1.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user