You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
OpenBLAS: keep cmake integration
Closes: https://trac.macports.org/ticket/68689
This commit is contained in:
committed by
Perry E. Metzger
parent
099bc95882
commit
ff29da7e45
@@ -33,12 +33,11 @@ if {[string first "-devel" $subport] > 0} {
|
||||
checksums rmd160 5910b6fdc4cb67f8e32f12fab303156aca5b330b \
|
||||
sha256 4fededf4eecb0def7d27217d098f44ba7029618fb46539b39e528de3a75c420b \
|
||||
size 24303945
|
||||
revision 0
|
||||
revision 1
|
||||
|
||||
conflicts OpenBLAS
|
||||
|
||||
patchfiles patch-libnoarch.devel.diff \
|
||||
patch-destroot-layout.diff \
|
||||
patch-OpenBLAS-i386-Apple.diff
|
||||
|
||||
github.livecheck.branch develop
|
||||
@@ -53,12 +52,11 @@ if {[string first "-devel" $subport] > 0} {
|
||||
checksums rmd160 eea6fe2c33762df4c47c7241808dabbdb085eed3 \
|
||||
sha256 4c25cb30c4bb23eddca05d7d0a85997b8db6144f5464ba7f8c09ce91e2f35543 \
|
||||
size 24073168
|
||||
revision 0
|
||||
revision 1
|
||||
|
||||
conflicts OpenBLAS-devel
|
||||
|
||||
patchfiles patch-libnoarch.release.diff \
|
||||
patch-destroot-layout.diff \
|
||||
patch-OpenBLAS-i386-Apple.diff
|
||||
|
||||
if {![variant_isset native]} {
|
||||
@@ -195,6 +193,9 @@ muniversal.combine ${prefix}/lib/pkgconfig/openblas.pc
|
||||
build.args-append OPENBLAS_INCLUDE_DIR=${prefix}/include/openblas
|
||||
destroot.args-append OPENBLAS_INCLUDE_DIR=${prefix}/include/openblas
|
||||
|
||||
muniversal.equivalent ${prefix}/lib/cmake/OpenBLASConfig.cmake \
|
||||
${prefix}/lib/cmake/OpenBLASConfigVersion.cmake
|
||||
|
||||
post-destroot {
|
||||
# For compatibility, put header files in ${prefix}/include
|
||||
foreach h [glob -tails -directory "${destroot}${prefix}/include/openblas" *.h] {
|
||||
@@ -213,6 +214,4 @@ post-destroot {
|
||||
system "install_name_tool -id \
|
||||
${prefix}/lib/libopenblas-r1.dylib \
|
||||
${destroot}${prefix}/lib/libopenblas-r1.dylib"
|
||||
|
||||
delete file ${destroot}${prefix}/lib/cmake
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
diff --git Makefile.install Makefile.install
|
||||
index 81f959177..29b623ff5 100644
|
||||
--- Makefile.install
|
||||
+++ Makefile.install
|
||||
@@ -42,12 +42,12 @@ lib.grd :
|
||||
$(error OpenBLAS: Please run "make" firstly)
|
||||
|
||||
install : lib.grd
|
||||
- @-mkdir -p "$(DESTDIR)$(PREFIX)"
|
||||
- @-mkdir -p "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)"
|
||||
- @-mkdir -p "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
|
||||
- @-mkdir -p "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
|
||||
- @-mkdir -p "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)"
|
||||
- @-mkdir -p "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
|
||||
+ mkdir -p "$(DESTDIR)$(PREFIX)"
|
||||
+ mkdir -p "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)"
|
||||
+ mkdir -p "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
|
||||
+ mkdir -p "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
|
||||
+ mkdir -p "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)"
|
||||
+ mkdir -p "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
|
||||
@echo Generating openblas_config.h in $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
|
||||
#for inc
|
||||
@echo \#ifndef OPENBLAS_CONFIG_H > "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/openblas_config.h"
|
||||
Reference in New Issue
Block a user