Mercurial > mxe-octave
annotate src/netcdf.mk @ 7203:d0888036e522 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 May 2024 20:29:42 +0200 |
parents | 2e0ebe56c89b |
children |
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 := |
6929
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
6 $(PKG)_VERSION := 4.9.2 |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
7 $(PKG)_CHECKSUM := 0eb6fdcbd725bd53bb9e98405a2cb15f3c511ce2 |
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 |
6510
4b8764444acb
Create common github call define and start using it
John Donoghue <john.donoghue@ieee.org>
parents:
5870
diff
changeset
|
14 $(call GITHUB_PKG_UPDATE,Unidata,netcdf-c,v) |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 endef |
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 |
6929
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
17 define $(PKG)_BUILD |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
18 cd '$(1)' && cmake \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
19 $($(PKG)_CMAKE_FLAGS) \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
20 -DBUILD_UTILITIES=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
21 -DENABLE_EXAMPLES=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
22 -DENABLE_TESTS=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
23 -DENABLE_PARALLEL_TESTS=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
24 -DENABLE_DAP_REMOTE_TESTS=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
25 -DENABLE_DAP=ON \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
26 -DENABLE_NETCDF_4=ON \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
27 -DENABLE_BYTERANGE=OFF \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
28 -DENABLE_LOGGING=ON \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
29 -DBUILD_TESTING=no \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
30 $(CMAKE_CCACHE_FLAGS) \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
31 $(CMAKE_BUILD_SHARED_OR_STATIC) \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
32 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
33 . |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 |
6929
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
35 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
36 $(MAKE) -C '$(1)' -j '1' VERBOSE=1 DESTDIR='$(3)' install |
2e0ebe56c89b
netcdf: update to v4.9.2
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
37 |
3898 | 38 if [ ! "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ |
39 $(LN_SF) '$(HOST_BINDIR)/nc-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)nc-config'; \ | |
40 fi | |
3157
591b3d68b43e
Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
41 endef |