From 029cdac79831e9cfbe8615c5d957dec1f17a5f71 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 20 May 2017 19:57:55 +0200 Subject: [PATCH 1/3] Add openblas version 0.2.19 --- openblas.be0 | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 openblas.be0 diff --git a/openblas.be0 b/openblas.be0 new file mode 100755 index 000000000..24e7aa2fa --- /dev/null +++ b/openblas.be0 @@ -0,0 +1,85 @@ +#!/usr/bin/env beesh + +# BEE_VERSION openblas-0.2.19-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://github.com/xianyi/OpenBLAS/archive/v${PKGVERSION}.tar.gz" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[${PKGVERSION}] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From 73f2f80ff7393a06dd5d14637d5ddc88b4eaf046 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 20 May 2017 19:59:34 +0200 Subject: [PATCH 2/3] openblas: Change to BUILDTYPE make When built with cmake it states CMake Warning at CMakeLists.txt:46 (message): CMake support is experimental. This will not produce the same Makefiles that OpenBLAS ships with. Only x86 support is currently available. Also the instructions at https://github.com/xianyi/OpenBLAS/wiki/Installation-Guide suggest to use plain make. --- openblas.be0 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openblas.be0 b/openblas.be0 index 24e7aa2fa..9ea0bfab8 100755 --- a/openblas.be0 +++ b/openblas.be0 @@ -2,6 +2,8 @@ # BEE_VERSION openblas-0.2.19-0 +BEE_BUILDTYPE=make + ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From bd00505758485330da57364db49a47885556766a Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 20 May 2017 22:34:59 +0200 Subject: [PATCH 3/3] openblas: Compile for multiple architectures Quote https://github.com/xianyi/OpenBLAS/blob/develop/Makefile.rule: # If you want to support multiple architecture in one binary # DYNAMIC_ARCH = 1 --- openblas.be0 | 1 + 1 file changed, 1 insertion(+) diff --git a/openblas.be0 b/openblas.be0 index 9ea0bfab8..00f221843 100755 --- a/openblas.be0 +++ b/openblas.be0 @@ -3,6 +3,7 @@ # BEE_VERSION openblas-0.2.19-0 BEE_BUILDTYPE=make +BEE_MAKEFLAGS+=" DYNAMIC_ARCH=1" ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.)