view src/msys-patch.mk @ 3898:abf9c5216a21

allow compile fo of-netcdf * dist-files.mk: add of-netcdf-1-cross-fixes.patch * src/of-netcdf-1-cross-fixes.patch: new file * src/of-netcdf.mk: use PKG_BUILD rule * src/netcdf.mk: make cross link to nc-config
author John D
date Sun, 12 Apr 2015 19:02:40 -0400
parents ae4193aad5fe
children
line wrap: on
line source

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

PKG             := msys-patch
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 2.6.1-1
$(PKG)_CHECKSUM := b4a82565f739f45dfa5ee3db8c59e9638833f89c
$(PKG)_REMOTE_SUBDIR := patch/patch-$($(PKG)_VERSION)
$(PKG)_SUBDIR   := 
$(PKG)_FILE     := patch-$($(PKG)_VERSION)-msys-1.0.13-bin.tar.lzma
$(PKG)_URL      := $(MSYS_EXTENSION_URL)/$($(PKG)_REMOTE_SUBDIR)/$($(PKG)_FILE)/download
$(PKG)_DEPS     := 

define $(PKG)_UPDATE
    $(WGET) -q -O- '$(MSYS_EXTENSION_URL)/patch' | \
    $(SED) -n 's,.*title="patch-\([0-9][^"]*\)".*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    mkdir -p '$(MSYS_EXTENSION_DIR)'
    cd '$(1)' && tar cf - . | ( cd '$(MSYS_EXTENSION_DIR)'; tar xpf - )
    mkdir -p '$(MSYS_INFO_DIR)'
    cd '$(1)' && find . > '$(MSYS_INFO_DIR)'/$(PKG).list
endef