2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2010-11-16 18:10:10 +00:00
|
|
|
|
|
|
|
PKG := cblas
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := http://www.netlib.org/blas/
|
2010-11-16 18:10:10 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2013-07-21 22:26:40 +01:00
|
|
|
$(PKG)_VERSION := 1
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 0f6354fd67fabd909baf57ced2ef84e962db58fae126e4f41b21dd4fec60a2a3
|
2010-11-16 18:10:10 +00:00
|
|
|
$(PKG)_SUBDIR := CBLAS
|
2010-11-16 23:52:47 +00:00
|
|
|
$(PKG)_FILE := $(PKG).tgz
|
|
|
|
$(PKG)_URL := http://www.netlib.org/blas/blast-forum/$($(PKG)_FILE)
|
2017-10-19 19:39:25 +01:00
|
|
|
$(PKG)_URL_2 := https://ftp.eq.uc.pt/software/math/netlib/blas/blast-forum/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc openblas
|
2017-11-21 01:10:35 +00:00
|
|
|
|
|
|
|
$(PKG)_MESSAGE :=*** cblas has been replaced by openblas ***
|
2010-11-16 18:10:10 +00:00
|
|
|
|
2010-11-16 23:52:47 +00:00
|
|
|
define $(PKG)_UPDATE
|
2017-11-21 01:10:35 +00:00
|
|
|
echo 'Warning: cblas has been replaced by openblas' >&2;
|
|
|
|
echo $(cblas_VERSION)
|
2010-11-16 23:52:47 +00:00
|
|
|
endef
|
2010-11-16 18:10:10 +00:00
|
|
|
|
2017-11-21 01:10:35 +00:00
|
|
|
define $(PKG)_DISABLED_BUILD
|
2013-09-16 05:36:04 +01:00
|
|
|
$(SED) -i 's, make , $(MAKE) ,g' '$(1)/Makefile'
|
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' \
|
|
|
|
CBDIR='$(1)' \
|
|
|
|
CBLIB='$(1)/lib/libcblas.a' \
|
|
|
|
CC='$(TARGET)-gcc' \
|
|
|
|
FC='$(TARGET)-gfortran' \
|
|
|
|
ARCH='$(TARGET)-ar' \
|
|
|
|
RANLIB='$(TARGET)-ranlib' \
|
|
|
|
alllib
|
2010-11-16 18:10:10 +00:00
|
|
|
|
2013-09-16 05:36:04 +01:00
|
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
|
|
|
|
$(INSTALL) -m644 '$(1)/lib/libcblas.a' '$(PREFIX)/$(TARGET)/lib/'
|
|
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
|
2011-03-02 19:14:39 +00:00
|
|
|
$(INSTALL) -m644 '$(1)/include/cblas.h' '$(PREFIX)/$(TARGET)/include/'
|
|
|
|
$(INSTALL) -m644 '$(1)/include/cblas_f77.h' '$(PREFIX)/$(TARGET)/include/'
|
2013-09-16 05:36:04 +01:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
|
|
|
'$(1)/examples/cblas_example1.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
2014-04-27 15:15:24 +01:00
|
|
|
-lcblas -lblas -lgfortran -lquadmath
|
2013-09-16 05:36:04 +01:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
|
|
|
'$(1)/examples/cblas_example2.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG)-F77.exe' \
|
2014-04-27 15:15:24 +01:00
|
|
|
-lcblas -lblas -lgfortran -lquadmath -DADD_
|
2010-11-16 18:10:10 +00:00
|
|
|
endef
|