Mercurial > mxe-octave
annotate src/netcdf.mk @ 6082:480f60641fc2
Add openlibm
* src/openlibm.mk: new file
* index.html, dist-files.mk: add ref to new file
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 09 Feb 2022 09:56:44 -0500 |
parents | 9c858dd1990f |
children | 4b8764444acb |
rev | line source |
---|---|
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := netcdf |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
6 $(PKG)_VERSION := 4.8.1 |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
7 $(PKG)_CHECKSUM := ae9e8741aebdb3ba4494a78a7f5a32e92516edc1 |
5272
ed0f6eaf1280
* src/netcdf.mk: update pkg for moved tarball
John Donoghue
parents:
4558
diff
changeset
|
8 $(PKG)_SUBDIR := netcdf-c-$($(PKG)_VERSION) |
5431
440ce30431c2
* src/netcdf.mk: Update version to 4.7.4.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5413
diff
changeset
|
9 $(PKG)_FILE := netcdf-c-$($(PKG)_VERSION).tar.gz |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
10 $(PKG)_URL := https://github.com/Unidata/netcdf-c/archive/v$($(PKG)_VERSION).tar.gz |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := curl hdf5 |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/Unidata/netcdf-c/tags' | \ |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \ |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
16 head -1 |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 endef |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 |
3565
87eb6b4bf898
netcdf.mk: fix syntax error in previous change
John W. Eaton <jwe@octave.org>
parents:
3563
diff
changeset
|
19 ifeq ($(MXE_WINDOWS_BUILD),yes) |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
20 $(PKG)_CONFIGURE_OPTIONS := CPPFLAGS='-DH5_USE_110_API -DDLL_NETCDF -I$(HOST_PREFIX)/include' |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
21 else |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
22 $(PKG)_CONFIGURE_OPTIONS := CPPFLAGS='-DH5_USE_110_API -I$(HOST_PREFIX)/include' |
3563
f3fa696eae6c
netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents:
3557
diff
changeset
|
23 endif |
f3fa696eae6c
netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents:
3557
diff
changeset
|
24 |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 $(PKG)_CONFIGURE_POST_HOOK := $(CONFIGURE_POST_HOOK) |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 ifeq ($(MXE_SYSTEM),msvc) |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 $(PKG)_CONFIGURE_POST_HOOK += -x |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 endif |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
30 define $(PKG)_BUILD |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
31 if [ $(MXE_SYSTEM) = msvc ]; then \ |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
32 cd '$(1)' && autoreconf -f -i -v; \ |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
33 fi |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 cd '$(1)' && ./configure \ |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
36 --enable-hdf5 --disable-testsets --disable-utilities \ |
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
37 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
38 $(ENABLE_SHARED_OR_STATIC) \ |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
39 --prefix='$(HOST_PREFIX)' \ |
3563
f3fa696eae6c
netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents:
3557
diff
changeset
|
40 $($(PKG)_CONFIGURE_OPTIONS) \ |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
41 && $($(PKG)_CONFIGURE_POST_HOOK) |
5870
9c858dd1990f
netcdf: update to v4.8.1
John Donoghue <john.donoghue@ieee.org>
parents:
5865
diff
changeset
|
42 $(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS='-no-undefined -L$(HOST_LIBDIR)' $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) V=1 |
5439
6dc7dff06550
* src/netcdf.mk: Include lib directory in LDFLAGS.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5431
diff
changeset
|
43 $(MAKE) -C '$(1)' -j 1 install LDFLAGS='-no-undefined -L$(HOST_LIBDIR)' $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' |
3898 | 44 |
45 if [ ! "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ | |
46 $(LN_SF) '$(HOST_BINDIR)/nc-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)nc-config'; \ | |
47 fi | |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
48 endef |