annotate src/netcdf.mk @ 4558:7e8c6bb47c21

update: additional pkg update updates * src/dbus.mk, src/gst-plugins-base.mk, src/gst-plugins-good.mk, src/gstreamer.mk, src/harfbuzz.mk, src/liboil.mk, src/netcdf.mk, src/protobuf.mk: update PKG_UPDATE macro
author John D
date Wed, 29 Nov 2017 15:50:53 -0500
parents abf9c5216a21
children ed0f6eaf1280
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
3665
d28dcb8df4eb netcdf: update version
John Donoghue
parents: 3565
diff changeset
6 $(PKG)_VERSION := 4.3.2
d28dcb8df4eb netcdf: update version
John Donoghue
parents: 3565
diff changeset
7 $(PKG)_CHECKSUM := 6e1bacab02e5220954fe0328d710ebb71c071d19
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := netcdf-$($(PKG)_VERSION)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := netcdf-$($(PKG)_VERSION).tar.gz
3889
0aa02478a5d9 fix download location for netcdf 4.3.2
John W. Eaton <jwe@octave.org>
parents: 3665
diff changeset
10 $(PKG)_URL := ftp://ftp.unidata.ucar.edu/pub/netcdf/old/$($(PKG)_FILE)
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
4558
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3898
diff changeset
14 $(WGET) -q -O- 'ftp://ftp.unidata.ucar.edu/pub/netcdf/old/' | \
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3898
diff changeset
15 $(SED) -n 's,.*netcdf-\([0-9]\.[^>]*\)\.tar.*,\1,p' | \
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3898
diff changeset
16 $(SORT) -V | \
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3898
diff changeset
17 tail -1
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
18 endef
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19
3565
87eb6b4bf898 netcdf.mk: fix syntax error in previous change
John W. Eaton <jwe@octave.org>
parents: 3563
diff changeset
20 ifeq ($(MXE_WINDOWS_BUILD),yes)
3563
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
21 $(PKG)_CONFIGURE_OPTIONS := --enable-dll
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
22 endif
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
23
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 $(PKG)_CONFIGURE_POST_HOOK := $(CONFIGURE_POST_HOOK)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 ifeq ($(MXE_SYSTEM),msvc)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 $(PKG)_CONFIGURE_POST_HOOK += -x
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27 endif
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 define $(PKG)_BUILD
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 if [ $(MXE_SYSTEM) = msvc ]; then \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 cd '$(1)' && autoreconf -f -i -v; \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 fi
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 cd '$(1)' && ./configure \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3665
d28dcb8df4eb netcdf: update version
John Donoghue
parents: 3565
diff changeset
35 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
36 $(ENABLE_SHARED_OR_STATIC) \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 --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
38 $($(PKG)_CONFIGURE_OPTIONS) \
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 && $($(PKG)_CONFIGURE_POST_HOOK)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 $(MAKE) -C '$(1)' -j '$(JOBS)'
3557
b1a7cff2d2a9 Add octave forge of-netcdf package (and support files)
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
41 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
3898
abf9c5216a21 allow compile fo of-netcdf
John D
parents: 3889
diff changeset
42
abf9c5216a21 allow compile fo of-netcdf
John D
parents: 3889
diff changeset
43 if [ ! "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \
abf9c5216a21 allow compile fo of-netcdf
John D
parents: 3889
diff changeset
44 $(LN_SF) '$(HOST_BINDIR)/nc-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)nc-config'; \
abf9c5216a21 allow compile fo of-netcdf
John D
parents: 3889
diff changeset
45 fi
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
46 endef