Mercurial > mxe-octave
changeset 4375:7208df703412
sundials-ida: add new package
* src/sundials-ida.mk: new file
* index.html: add sundials-ida
* dist-files.mk: add sundials-ida.mk
author | John D |
---|---|
date | Fri, 07 Apr 2017 09:55:29 -0400 |
parents | 988745446d56 |
children | b0d049115f65 |
files | dist-files.mk index.html src/sundials-ida.mk |
diffstat | 3 files changed, 36 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Mon Apr 03 07:52:35 2017 -0400 +++ b/dist-files.mk Fri Apr 07 09:55:29 2017 -0400 @@ -643,6 +643,7 @@ stable-octave.mk \ suitesparse-1.patch \ suitesparse.mk \ + sundials-ida.mk \ t4k_common.mk \ taglib-1-static.patch \ taglib.mk \
--- a/index.html Mon Apr 03 07:52:35 2017 -0400 +++ b/index.html Fri Apr 07 09:55:29 2017 -0400 @@ -2310,6 +2310,10 @@ <td class="website"><a href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/">SuiteSparse</a></td> </tr> <tr> + <td class="package">sundials-ida</td> + <td class="website"><a href="http://computation.llnl.gov/projects/sundials/">Sundials IDA</a></td> + </tr> + <tr> <td class="package">t4k_common</td> <td class="website"><a href="http://tux4kids.alioth.debian.org/">t4k_common</a></td> </tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/sundials-ida.mk Fri Apr 07 09:55:29 2017 -0400 @@ -0,0 +1,31 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := sundials-ida +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.9.0 +$(PKG)_CHECKSUM := 375a061259b06f3ae46c218b7d5473c60a46e3f8 +$(PKG)_SUBDIR := ida-$($(PKG)_VERSION) +$(PKG)_FILE := ida-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://computation.llnl.gov/projects/sundials/download/$($(PKG)_FILE) +$(PKG)_DEPS := lapack libgomp + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && cmake \ + -DEXAMPLES_ENABLE=OFF \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + '$(1)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' install DESTDIR='$(3)' VERBOSE=1 + + if [ $(MXE_SYSTEM) = mingw ]; then \ + echo "Install dlls"; \ + $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ + mv '$(3)$(HOST_LIBDIR)/'libsundials*.dll '$(3)$(HOST_BINDIR)/'; \ + fi +endef