annotate src/sundials-27-ida.mk @ 5339:25a483af6aa7

* src/build-cmake.mk, src/cmake.mk: update to v3.16.5
author John Donoghue
date Thu, 05 Mar 2020 12:55:24 -0500
parents 3307ec11073e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5025
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
1 # This file is part of MXE.
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
2 # See index.html for further information.
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
3 # This file can be removed once Octave 5 is phased out.
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
4
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
5 PKG := sundials-27-ida
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
6 $(PKG)_IGNORE :=
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
7 $(PKG)_VERSION := 2.7.0
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 3559c375ce9f875542e4a39978908f91792e6d57
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
9 $(PKG)_SUBDIR := sundials-$($(PKG)_VERSION)
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
10 $(PKG)_FILE := sundials-$($(PKG)_VERSION).tar.gz
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
11 $(PKG)_URL := https://computation.llnl.gov/projects/sundials/download/$($(PKG)_FILE)
5201
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 5025
diff changeset
12 $(PKG)_DEPS := lapack suitesparse
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 5025
diff changeset
13 ifeq ($(USE_SYSTEM_GCC),no)
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 5025
diff changeset
14 $(PKG)_DEPS += libgomp
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 5025
diff changeset
15 endif
5025
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
16
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
17 define $(PKG)_UPDATE
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
18 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
19 echo $($(PKG)_VERSION)
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
20 endef
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
21
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
22 define $(PKG)_BUILD
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
23 mkdir '$(1).build'
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
24 cd '$(1).build' && cmake \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
25 -DEXAMPLES_ENABLE=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
26 -DKLU_ENABLE=ON \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
27 -DKLU_INCLUDE_DIR=$(HOST_INCDIR)/suitesparse \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
28 -DKLU_LIBRARY_DIR=$(HOST_LIBDIR) \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
29 -DSUITESPARSECONFIG_LIBRARY=$(HOST_LIBDIR)/libsuitesparseconfig.dll.a \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
30 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
31 -DBUILD_ARKODE=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
32 -DBUILD_CVODE=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
33 -DBUILD_CVODES=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
34 -DBUILD_IDA=ON \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
35 -DBUILD_IDAS=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
36 -DBUILD_KINSOL=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
37 -DBUILD_CPODES=OFF \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
38 '$(1)'
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
39 $(MAKE) -C '$(1).build' -j '$(JOBS)' install DESTDIR='$(3)' VERBOSE=1
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
40
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
41 if [ $(MXE_SYSTEM) = mingw ]; then \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
42 echo "Install dlls"; \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
43 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
44 mv '$(3)$(HOST_LIBDIR)/'libsundials*.dll '$(3)$(HOST_BINDIR)/'; \
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
45 fi
0cbc51911dd0 Update sundials to 4.1.0 while keeping version 2.7.0
Markus Mützel <markus.muetzel@gmx.de>
parents:
diff changeset
46 endef