Mercurial > mxe-octave
changeset 3067:bdb4b64f2ff8
Add initial openblas codebase to mxe
* src/openblas.mk: New file.
* index.html: openblas 0.2.6 package information.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 18 Jun 2013 21:04:49 -0400 |
parents | 23e3e2955cf5 |
children | fb0836e4a677 |
files | index.html src/openblas.mk |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Tue Jun 18 18:40:40 2013 -0400 +++ b/index.html Tue Jun 18 21:04:49 2013 -0400 @@ -1933,6 +1933,11 @@ <td id="openal-version">1.14</td> <td id="openal-website"><a href="http://kcat.strangesoft.net/openal.html">openal</a></td> </tr> + <tr> + <td id="openblas-package">openblas</td> + <td id="openblas-version">0.2.6</td> + <td id="openblas-website"><a href="http://xianyi.github.io/OpenBLAS/">OpenBLAS</a></td> + </tr> <tr> <td id="opencore-amr-package">opencore-amr</td> <td id="opencore-amr-version">0.1.2</td>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/openblas.mk Tue Jun 18 21:04:49 2013 -0400 @@ -0,0 +1,35 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := openblas +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := f5c040660cb83630f9ac3e34a907889dcfac3415 +$(PKG)_SUBDIR := OpenBLAS-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := http://github.com/xianyi/OpenBLAS/archive/v$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := + +$(PKG)_MAKE_OPTS := PREFIX=$(HOST_PREFIX) DYNAMIC_ARCH=1 NO_LAPACK=1 + +ifneq ($(MXE_NATIVE_BUILD),yes) + $(PKG)_MAKE_OPTS += NO_CBLAS=1 USE_THREAD=0 CC=$(MXE_CC) FC=$(MXE_F77) HOSTCC=gcc HOSTFC=gfortran CROSS=1 +endif + +ifeq ($(ENABLE_64),yes) + $(PKG)_MAKE_OPTS += BINARY=64 +else + $(PKG)_MAKE_OPTS += BINARY=32 +endif + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS) + $(MAKE) -C '$(1)' -j 1 PREFIX='$(HOST_PREFIX)' install + if [ $(BUILD_SHARED) = yes ]; then \ + $(INSTALL) $(HOST_LIBDIR)/libopenblas.dll $(HOST_BINDIR)/; \ + fi +endef