view src/curl.mk @ 4302:3d168da55e47

disable instakll of docs * Makefile.in: create MXE_DISABLE_DOCS target list * src/curl.mk: add MXE_DISABLE_DOCS to install * src/dbus.mk: add MXE_DISABLE_DOCS to install * src/fftw.mk: add MXE_DISABLE_DOCS to install * src/gettext.mk: add MXE_DISABLE_DOCS to install, remove installed html docs * src/graphicsmagick.mk: delete doc files in install * src/hdf5.mk: delete examples in install
author John D
date Fri, 30 Dec 2016 21:28:46 -0500
parents c5723e39a80e
children 485c6d42ee42
line wrap: on
line source

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

PKG             := curl
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 7.51.0
$(PKG)_CHECKSUM := 19bf2c1e60a513910355cc9769c6371ea2ff5d1f
$(PKG)_SUBDIR   := curl-$($(PKG)_VERSION)
$(PKG)_FILE     := curl-$($(PKG)_VERSION).tar.lzma
$(PKG)_URL      := http://curl.haxx.se/download/$($(PKG)_FILE)
$(PKG)_DEPS     := gnutls libidn libssh2

$(PKG)_CONFIGURE_OPTS :=
ifeq ($(MXE_WINDOWS_BUILD),yes)
    $(PKG)_CONFIGURE_OPTS := "--with-winssl"
endif

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \
    $(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        $($(PKG)_CONFIGURE_OPTS) \
        --without-ssl \
        --with-gnutls \
        --with-libidn \
        --enable-sspi \
        --enable-ipv6 \
        --with-libssh2 && $(CONFIGURE_POST_HOOK)
    $(MAKE) -C '$(1)' -j '$(JOBS)' DESTDIR='$(3)' $(MXE_DISABLE_DOCS) install
endef