annotate src/sundials-ida.mk @ 4462:8b731cde3aaa

sundials-ida: build against the SuiteSparse KLU library * src/sundials-ida.mk: Depend on suitesparse, add cmake options to enable linking with KLU. * src/sundials-ida-1.patch: New file. * dist-files.mk (SRC_FILES_1): Include it in the list.
author Mike Miller <mtmiller@octave.org>
date Fri, 01 Sep 2017 18:04:27 -0700
parents 7208df703412
children f84b27a7e47d
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 :=
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
6 $(PKG)_VERSION := 2.9.0
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
7 $(PKG)_CHECKSUM := 375a061259b06f3ae46c218b7d5473c60a46e3f8
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
8 $(PKG)_SUBDIR := ida-$($(PKG)_VERSION)
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
9 $(PKG)_FILE := ida-$($(PKG)_VERSION).tar.gz
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)' \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
27 '$(1)'
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
28 $(MAKE) -C '$(1).build' -j '$(JOBS)' install DESTDIR='$(3)' VERBOSE=1
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
29
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
30 if [ $(MXE_SYSTEM) = mingw ]; then \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
31 echo "Install dlls"; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
32 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
33 mv '$(3)$(HOST_LIBDIR)/'libsundials*.dll '$(3)$(HOST_BINDIR)/'; \
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
34 fi
7208df703412 sundials-ida: add new package
John D
parents:
diff changeset
35 endef