comparison src/sundials-ida.mk @ 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
children 8b731cde3aaa
comparison
equal deleted inserted replaced
4374:988745446d56 4375:7208df703412
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 PKG := sundials-ida
5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 2.9.0
7 $(PKG)_CHECKSUM := 375a061259b06f3ae46c218b7d5473c60a46e3f8
8 $(PKG)_SUBDIR := ida-$($(PKG)_VERSION)
9 $(PKG)_FILE := ida-$($(PKG)_VERSION).tar.gz
10 $(PKG)_URL := https://computation.llnl.gov/projects/sundials/download/$($(PKG)_FILE)
11 $(PKG)_DEPS := lapack libgomp
12
13 define $(PKG)_UPDATE
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
15 echo $($(PKG)_VERSION)
16 endef
17
18 define $(PKG)_BUILD
19 mkdir '$(1).build'
20 cd '$(1).build' && cmake \
21 -DEXAMPLES_ENABLE=OFF \
22 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
23 '$(1)'
24 $(MAKE) -C '$(1).build' -j '$(JOBS)' install DESTDIR='$(3)' VERBOSE=1
25
26 if [ $(MXE_SYSTEM) = mingw ]; then \
27 echo "Install dlls"; \
28 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
29 mv '$(3)$(HOST_LIBDIR)/'libsundials*.dll '$(3)$(HOST_BINDIR)/'; \
30 fi
31 endef