summaryrefslogtreecommitdiff
path: root/math/openblas
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2021-06-07 15:52:04 +0000
committeradam <adam@pkgsrc.org>2021-06-07 15:52:04 +0000
commit59e4abc2da3e72195450e8671bf4417b237e9e20 (patch)
treefecb3bd20bb56f1b23b546245fa3618eee749741 /math/openblas
parent33a41634c95d653441553f6e88e95064a4fea093 (diff)
downloadpkgsrc-59e4abc2da3e72195450e8671bf4417b237e9e20.tar.gz
openblas: fix building on Darwin
Diffstat (limited to 'math/openblas')
-rw-r--r--math/openblas/Makefile.common6
-rw-r--r--math/openblas/distinfo4
-rw-r--r--math/openblas/patches/patch-Makefile.install24
3 files changed, 24 insertions, 10 deletions
diff --git a/math/openblas/Makefile.common b/math/openblas/Makefile.common
index 6a361e651e5..fce40d566a0 100644
--- a/math/openblas/Makefile.common
+++ b/math/openblas/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2021/05/29 19:57:21 thor Exp $
+# $NetBSD: Makefile.common,v 1.4 2021/06/07 15:52:04 adam Exp $
#
# used by math/openblas_pthread/Makefile
# used by math/openblas_openmp/Makefile
@@ -27,10 +27,6 @@ HOMEPAGE= https://github.com/xianyi/OpenBLAS
COMMENT= Optimized BLAS library based on GotoBLAS2
LICENSE= modified-bsd
-# Darwin has a .so/.dylib PLIST issue
-# Untested on other platforms
-ONLY_FOR_PLATFORM= Linux-*-* NetBSD-*-*
-
USE_LANGUAGES= c fortran
USE_TOOLS+= gmake perl:build
diff --git a/math/openblas/distinfo b/math/openblas/distinfo
index aeeaf0d9b04..f065da725ee 100644
--- a/math/openblas/distinfo
+++ b/math/openblas/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2021/05/29 19:57:21 thor Exp $
+$NetBSD: distinfo,v 1.4 2021/06/07 15:52:04 adam Exp $
SHA1 (openblas-0.3.15/OpenBLAS-0.3.15.tar.gz) = d7d1f67c1ef0c14c93761bdf44f0da8d0dd4bc0f
RMD160 (openblas-0.3.15/OpenBLAS-0.3.15.tar.gz) = b740a744c0405d036c39ee5224b7d18f542db788
@@ -13,7 +13,7 @@ RMD160 (openblas-0.3.15/timing.tgz) = f0fe220e7ab611d4db8d8cab960361955e2ab093
SHA512 (openblas-0.3.15/timing.tgz) = be0abfcfffdf0e118ed7e25a8451639833cf0ad6bb04d101bbe194c16f656b6ce509b2f76acf4ad626d1fb5b126bd5498cfea262f2946c2d077751112a2906af
Size (openblas-0.3.15/timing.tgz) = 1059485 bytes
SHA1 (patch-Makefile) = 6b1db300b5487fca53e7c41c27b64017658e6375
-SHA1 (patch-Makefile.install) = eadba533232b2bf7c6ab5e4efe0db9206f35011d
+SHA1 (patch-Makefile.install) = 8c767de27b8c9aa68750c3ed899add322a9e3e29
SHA1 (patch-Makefile.rule) = 45b6b4576fb521fa093252c63b899d4178a516b6
SHA1 (patch-Makefile.system) = 6dc9fd85731ca88cb1fdb9063ba3baa31edbcfb8
SHA1 (patch-common__arm.h) = f08ec61bee8317daac267e90a79f46097b3431c9
diff --git a/math/openblas/patches/patch-Makefile.install b/math/openblas/patches/patch-Makefile.install
index 2cf3d89a2ed..acbe6b42b30 100644
--- a/math/openblas/patches/patch-Makefile.install
+++ b/math/openblas/patches/patch-Makefile.install
@@ -1,13 +1,31 @@
-$NetBSD: patch-Makefile.install,v 1.3 2021/05/29 19:57:21 thor Exp $
+$NetBSD: patch-Makefile.install,v 1.4 2021/06/07 15:52:04 adam Exp $
Second part of removing the special library names.
+Separate options for "install" (needed at least on Darwin).
--- Makefile.install.orig 2021-05-02 21:50:22.000000000 +0000
+++ Makefile.install
-@@ -85,29 +85,35 @@ endif
+@@ -74,40 +74,46 @@ endif
+ ifneq ($(OSNAME), AIX)
+ ifndef NO_LAPACKE
+ @echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
+- @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapack.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapack.h"
+- @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
+- @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h"
+- @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h"
+- @-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h"
++ @-install -p -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapack.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapack.h"
++ @-install -p -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
++ @-install -p -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h"
++ @-install -p -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h"
++ @-install -p -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h"
+ endif
+
+ #for install static library
ifneq ($(NO_STATIC),1)
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
- @install -pm644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
+- @install -pm644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
++ @install -p -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
+ifneq ($(LIBNAME), $(LIBPREFIX).$(LIBSUFFIX))
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)