annotate src/netcdf.mk @ 3563:f3fa696eae6c

netcdf.mk: Limit --enable-dll configiure option to Windows systems.
author John W. Eaton <jwe@octave.org>
date Mon, 10 Mar 2014 17:15:37 -0400
parents b1a7cff2d2a9
children 87eb6b4bf898
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3157
diff changeset
6 $(PKG)_VERSION := 4.3.0
3557
b1a7cff2d2a9 Add octave forge of-netcdf package (and support files)
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := 246e4963e66e1c175563cc9a714e9da0a19b8b07
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
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 $(PKG)_URL := http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-$($(PKG)_VERSION).tar.gz
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
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
14 $(WGET) -q -O- 'http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp' | \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
15 $(SED) -n 's,.*netcdf-\([0-9][^>]*\)\.tar.*,\1,p' | \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
16 head -1
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
3563
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
19 ifeq ($(MXE_WINDOWS_BUILD))
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
20 $(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
21 endif
f3fa696eae6c netcdf.mk: Limit --enable-dll configiure option to Windows systems.
John W. Eaton <jwe@octave.org>
parents: 3557
diff changeset
22
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23 $(PKG)_CONFIGURE_POST_HOOK := $(CONFIGURE_POST_HOOK)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 ifeq ($(MXE_SYSTEM),msvc)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 $(PKG)_CONFIGURE_POST_HOOK += -x
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 endif
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 define $(PKG)_BUILD
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 if [ $(MXE_SYSTEM) = msvc ]; then \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 cd '$(1)' && autoreconf -f -i -v; \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 fi
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 cd '$(1)' && ./configure \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 $(ENABLE_SHARED_OR_STATIC) \
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 --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
36 $($(PKG)_CONFIGURE_OPTIONS) \
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 && $($(PKG)_CONFIGURE_POST_HOOK)
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38 $(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
39 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
3157
591b3d68b43e Add netcdf module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 endef