Mercurial > hg > mxe-octave-anirudha
changeset 2873:43a1c4d36636
Include arpack as a dependency of Octave
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Nov 2012 16:10:18 -0500 |
parents | eb2f17fbd971 |
children | 890aa60f7b87 |
files | index.html src/arpack.mk src/octave.mk |
diffstat | 3 files changed, 39 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html +++ b/index.html @@ -929,6 +929,11 @@ <td id="armadillo-website"><a href="http://armadillo.sf.net/">Armadillo C++ linear algebra library</a></td> </tr> <tr> + <td id="arpack-package">arpack</td> + <td id="arpack-version">3.1.2</td> + <td id="arpack-website"><a href="http://forge.scilab.org/index.php/p/arpack-ng/">ARPACK</a></td> + </tr> + <tr> <td id="atk-package">atk</td> <td id="atk-version">2.6.0</td> <td id="atk-website"><a href="http://www.gtk.org/">ATK</a></td>
new file mode 100644 --- /dev/null +++ b/src/arpack.mk @@ -0,0 +1,33 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := arpack +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := f5453e2d576f131890ca023e1d853e18920f9c3c +$(PKG)_SUBDIR := $(PKG)-ng_$($(PKG)_VERSION) +$(PKG)_FILE := arpack-ng_$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/$($(PKG)_FILE) +$(PKG)_DEPS := blas lapack + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package arpack.' >&2; + echo $(arpack_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1)/.build' + cd '$(1)/.build' && '$(1)/configure' \ + --host='$(TARGET)' \ + --build="`config.guess`" \ + --enable-static --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install + + if [ $(BUILD_SHARED) = yes ]; then \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gfortran' '$(PREFIX)/$(TARGET)/lib/libarpack.a'; \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ + $(INSTALL) -m644 '$(PREFIX)/$(TARGET)/lib/libarpack.dll.a' '$(PREFIX)/$(TARGET)/lib/libarpack.dll.a'; \ + $(INSTALL) -m644 '$(PREFIX)/$(TARGET)/lib/libarpack.dll' '$(PREFIX)/$(TARGET)/bin/libarpack.dll'; \ + rm -f '$(PREFIX)/$(TARGET)/lib/libarpack.dll'; \ + fi +endef
--- a/src/octave.mk +++ b/src/octave.mk @@ -6,7 +6,7 @@ $(PKG)_CHECKSUM := 1ea936554aaabaabb747a4fcf98ecfbbfb265656 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://jweaton.org/$($(PKG)_FILE) -$(PKG)_DEPS := blas curl fltk gcc glpk graphicsmagick lapack pcre qrupdate readline suitesparse zlib +$(PKG)_DEPS := arpack blas curl fltk gcc glpk graphicsmagick lapack pcre qrupdate readline suitesparse zlib define $(PKG)_UPDATE echo 'Warning: Updates are temporarily disabled for package octave.' >&2;