mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
85
sci-libs/blis/blis-0.4.1.recipe
Normal file
85
sci-libs/blis/blis-0.4.1.recipe
Normal file
@@ -0,0 +1,85 @@
|
||||
SUMMARY="BLAS-like Library Instantiation Software framework"
|
||||
DESCRIPTION="BLIS is a portable software framework for instantiating \
|
||||
high-performance BLAS-like dense linear algebra libraries. The framework \
|
||||
was designed to isolate essential kernels of computation that, when \
|
||||
optimized, immediately enable optimized implementations of most of its \
|
||||
commonly used and computationally intensive operations. While BLIS exports a \
|
||||
new BLAS-like API, it also includes a BLAS compatibility layer which gives \
|
||||
application developers access to BLIS implementations via traditional BLAS \
|
||||
routine calls. An object-based API unique to BLIS is also available."
|
||||
HOMEPAGE="https://github.com/flame/blis"
|
||||
COPYRIGHT="2014 The University of Texas at Austin"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/flame/blis/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a0c00e6e4ae215e8d965226c2446c2e53f121b31c3b8ff5ca983b0a51ed2fd25"
|
||||
PATCHES="blis-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
libVersion="1.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
blis$secondaryArchSuffix = $portVersion
|
||||
lib:libblis$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
blis${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libblis$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
blis$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/blis/common.mk keep-old
|
||||
settings/blis/config/haswell/make_defs.mk keep-old
|
||||
settings/blis/config.mk keep-old
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libxscrnsaver$secondaryArchSuffix \
|
||||
"$libDir"/libblis.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# Not an autotools configure
|
||||
./configure \
|
||||
--enable-threading=openmp \
|
||||
--prefix=$prefix \
|
||||
--libdir=$libDir \
|
||||
--includedir=$includeDir \
|
||||
--sharedir=$settingsDir \
|
||||
auto
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libblis
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
22
sci-libs/blis/patches/blis-0.4.1.patchset
Normal file
22
sci-libs/blis/patches/blis-0.4.1.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From bea97e74334ee7239226d09adaa91ad75e296f86 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sun, 9 Sep 2018 14:36:22 +0200
|
||||
Subject: Add Haiku to the known OS list
|
||||
|
||||
|
||||
diff --git a/frame/include/bli_system.h b/frame/include/bli_system.h
|
||||
index 3e85515..e3e7947 100644
|
||||
--- a/frame/include/bli_system.h
|
||||
+++ b/frame/include/bli_system.h
|
||||
@@ -67,7 +67,7 @@
|
||||
#elif defined(__bg__)
|
||||
#define BLIS_OS_BGP 1
|
||||
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
|
||||
- defined(__bsdi__) || defined(__DragonFly__)
|
||||
+ defined(__bsdi__) || defined(__DragonFly__) || defined(__HAIKU__)
|
||||
#define BLIS_OS_BSD 1
|
||||
#elif defined(EMSCRIPTEN)
|
||||
#define BLIS_OS_EMSCRIPTEN
|
||||
--
|
||||
2.16.4
|
||||
|
||||
Reference in New Issue
Block a user