Mercurial > mxe-octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
3562:d841ba938e51 | 3563:f3fa696eae6c |
---|---|
14 $(WGET) -q -O- 'http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp' | \ | 14 $(WGET) -q -O- 'http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp' | \ |
15 $(SED) -n 's,.*netcdf-\([0-9][^>]*\)\.tar.*,\1,p' | \ | 15 $(SED) -n 's,.*netcdf-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
16 head -1 | 16 head -1 |
17 endef | 17 endef |
18 | 18 |
19 ifeq ($(MXE_WINDOWS_BUILD)) | |
20 $(PKG)_CONFIGURE_OPTIONS := --enable-dll | |
21 endif | |
22 | |
19 $(PKG)_CONFIGURE_POST_HOOK := $(CONFIGURE_POST_HOOK) | 23 $(PKG)_CONFIGURE_POST_HOOK := $(CONFIGURE_POST_HOOK) |
20 ifeq ($(MXE_SYSTEM),msvc) | 24 ifeq ($(MXE_SYSTEM),msvc) |
21 $(PKG)_CONFIGURE_POST_HOOK += -x | 25 $(PKG)_CONFIGURE_POST_HOOK += -x |
22 endif | 26 endif |
23 | 27 |
27 fi | 31 fi |
28 cd '$(1)' && ./configure \ | 32 cd '$(1)' && ./configure \ |
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | 33 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
30 $(ENABLE_SHARED_OR_STATIC) \ | 34 $(ENABLE_SHARED_OR_STATIC) \ |
31 --prefix='$(HOST_PREFIX)' \ | 35 --prefix='$(HOST_PREFIX)' \ |
32 --enable-dll \ | 36 $($(PKG)_CONFIGURE_OPTIONS) \ |
33 && $($(PKG)_CONFIGURE_POST_HOOK) | 37 && $($(PKG)_CONFIGURE_POST_HOOK) |
34 $(MAKE) -C '$(1)' -j '$(JOBS)' | 38 $(MAKE) -C '$(1)' -j '$(JOBS)' |
35 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' | 39 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
36 endef | 40 endef |