pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/openblas openblas: fix building on Darwin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e35e642eadee
branches:  trunk
changeset: 454269:e35e642eadee
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jun 07 15:52:04 2021 +0000

description:
openblas: fix building on Darwin

diffstat:

 math/openblas/Makefile.common                |   6 +-----
 math/openblas/distinfo                       |   4 ++--
 math/openblas/patches/patch-Makefile.install |  24 +++++++++++++++++++++---
 3 files changed, 24 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r 62d572f7180f -r e35e642eadee math/openblas/Makefile.common
--- a/math/openblas/Makefile.common     Mon Jun 07 15:37:39 2021 +0000
+++ b/math/openblas/Makefile.common     Mon Jun 07 15:52:04 2021 +0000
@@ -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 @@
 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 -r 62d572f7180f -r e35e642eadee math/openblas/distinfo
--- a/math/openblas/distinfo    Mon Jun 07 15:37:39 2021 +0000
+++ b/math/openblas/distinfo    Mon Jun 07 15:52:04 2021 +0000
@@ -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 @@
 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 -r 62d572f7180f -r e35e642eadee math/openblas/patches/patch-Makefile.install
--- a/math/openblas/patches/patch-Makefile.install      Mon Jun 07 15:37:39 2021 +0000
+++ b/math/openblas/patches/patch-Makefile.install      Mon Jun 07 15:52:04 2021 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index