view src/of-netcdf.mk @ 4554:84c86b41a6a2

mingw-w64: update to v5.0.3 * src/mingw-w64.mk: update version, checksum * src/mingw-w64-2-pthreads.patch: removed patch * dist-files.mk: removed ref to mingw-w64-2-pthreads.patch
author John D
date Mon, 27 Nov 2017 09:50:38 -0500
parents 7d1e45c2f175
children d09fabbfdc17
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := of-netcdf
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 1.0.11
$(PKG)_CHECKSUM := 904b15a7f22b0b4adb49d54500d196389e732f95
$(PKG)_REMOTE_SUBDIR := 
$(PKG)_SUBDIR   := netcdf
$(PKG)_FILE     := netcdf-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download'
$(PKG)_DEPS     := netcdf

ifeq ($(ENABLE_BINARY_PACKAGES),yes)
    $(PKG)_DEPS += $(OCTAVE_TARGET)
endif

define $(PKG)_UPDATE
    $(WGET) -q -O- 'https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/' | \
    $(SED) -n 's,.*title="netcdf-\([0-9][^"]*\).tar.gz".*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)/src' && source ./autogen.sh
    $(OCTAVE_FORGE_PKG_BUILD)
endef