Mercurial > mxe-octave
view src/libidn2.mk @ 4658:213da5688be0
update binary dist rules
* binary-dist-rules.mk: Use -w64, -w32, or -w64-64 suffix for Windows
binary distributions. New target for creating .7z files.
* tools/makeinst-script.sh.in: New arg for name of installer file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Apr 2018 12:09:22 -0400 |
parents | e5efd844c4c8 |
children | 41b69dbeb03a |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libidn2 $(PKG)_IGNORE := $(PKG)_VERSION := 2.0.4 $(PKG)_CHECKSUM := b00490f2251f218b130628eccacc170a4bb49db5 $(PKG)_SUBDIR := libidn2-$($(PKG)_VERSION) $(PKG)_FILE := libidn2-$($(PKG)_VERSION).tar.gz $(PKG)_URL := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE) $(PKG)_DEPS := gettext libiconv libunistring define $(PKG)_UPDATE $(WGET) -q -O- https://ftp.gnu.org/gnu/libidn/ | \ $(SED) -n 's,.*libidn2-\([0-9][^t]*\).tar.gz.*,\1,p' | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --disable-doc \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)' $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' # create pkg-config files $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' (echo 'Name: $(PKG)'; \ echo 'Version: $($(PKG)_VERSION)'; \ echo 'Description: implementation of IDNA2008/TR46 internationalized domain names'; \ echo 'Libs: -lidn2'; \ echo 'Libs.private: -lunistring -liconv -lcharset';) \ > '$(HOST_LIBDIR)/pkgconfig/$(PKG).pc' # TODO create pc files for iconv and unistring. endef