annotate src/sundials-ida.mk @ 5025:0cbc51911dd0

Update sundials to 4.1.0 while keeping version 2.7.0 * src/sundials-27-ida.mk, src/sundials-27-ida-1.patch: Rename files. * src/sundials-ida.mk: Update version and checksum. * src/default-octave.mk: Add suitesparse headers to CPPFLAGS. * stable-octave.mk, release-octave.mk: Depend on older version of Sundials IDA. * index.html: Add item for Sundials IDA at version 2.7.0. * dist-files.mk: Add and rename files.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 16 Mar 2019 18:23:21 +0100
parents f84b27a7e47d
children 3307ec11073e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4375
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
1 # This file is part of MXE.
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
2 # See index.html for further information.
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
3
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
4 PKG := sundials-ida
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
5 $(PKG)_IGNORE :=
5025
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents: 4534
diff changeset
6 $(PKG)_VERSION := 4.1.0
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents: 4534
diff changeset
7 $(PKG)_CHECKSUM := ef2a4175b3974960febd5cba4f65e53628009cc6
4534
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
8 $(PKG)_SUBDIR := sundials-$($(PKG)_VERSION)
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
9 $(PKG)_FILE := sundials-$($(PKG)_VERSION).tar.gz
4375
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
10 $(PKG)_URL := https://computation.llnl.gov/projects/sundials/download/$($(PKG)_FILE)
4462
8b731cde3aaa sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents: 4375
diff changeset
11 $(PKG)_DEPS := lapack libgomp suitesparse
4375
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
12
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
13 define $(PKG)_UPDATE
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
15 echo $($(PKG)_VERSION)
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
16 endef
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
17
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
18 define $(PKG)_BUILD
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
19 mkdir '$(1).build'
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
20 cd '$(1).build' && cmake \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
21 -DEXAMPLES_ENABLE=OFF \
4462
8b731cde3aaa sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents: 4375
diff changeset
22 -DKLU_ENABLE=ON \
8b731cde3aaa sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents: 4375
diff changeset
23 -DKLU_INCLUDE_DIR=$(HOST_INCDIR)/suitesparse \
8b731cde3aaa sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents: 4375
diff changeset
24 -DKLU_LIBRARY_DIR=$(HOST_LIBDIR) \
8b731cde3aaa sundials-ida: build against the SuiteSparse KLU library
Mike Miller <mtmiller@octave.org>
parents: 4375
diff changeset
25 -DSUITESPARSECONFIG_LIBRARY=$(HOST_LIBDIR)/libsuitesparseconfig.dll.a \
4375
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
26 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
4534
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
27 -DBUILD_ARKODE=OFF \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
28 -DBUILD_CVODE=OFF \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
29 -DBUILD_CVODES=OFF \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
30 -DBUILD_IDA=ON \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
31 -DBUILD_IDAS=OFF \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
32 -DBUILD_KINSOL=OFF \
f84b27a7e47d sundials-ida: build from archived sundials package
John Donoghue <john.donoghue@ieee.org>
parents: 4462
diff changeset
33 -DBUILD_CPODES=OFF \
4375
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
34 '$(1)'
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
35 $(MAKE) -C '$(1).build' -j '$(JOBS)' install DESTDIR='$(3)' VERBOSE=1
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
36
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
37 if [ $(MXE_SYSTEM) = mingw ]; then \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
38 echo "Install dlls"; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
39 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
40 mv '$(3)$(HOST_LIBDIR)/'libsundials*.dll '$(3)$(HOST_BINDIR)/'; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
41 fi
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
42 endef