diff src/libidn2.mk @ 4361:eb3e153306f3

libidn2: add new package * src/libidn2-1-fixes.patch: new file * src/libidn2.mk: new file * dist-files.mk: libb idn2 files * index.html: add libidn2 * src/libunistring.mk: update to v0.9.7
author John D
date Mon, 13 Mar 2017 08:13:05 -0400
parents
children 5e88d6bf806c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libidn2.mk	Mon Mar 13 08:13:05 2017 -0400
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := libidn2
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 0.16
+$(PKG)_CHECKSUM := 26311b538897a8ed0569922132f2139ee3ec6a28
+$(PKG)_SUBDIR   := libidn2-$($(PKG)_VERSION)
+$(PKG)_FILE     := libidn2-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := ftp://alpha.gnu.org/gnu/libidn/$($(PKG)_FILE)
+$(PKG)_DEPS     := gettext libiconv libunistring
+
+define $(PKG)_UPDATE
+    $(WGET) -q -O- 'http://gitlab.com/jas/libidn2/tags' | \
+    $(SED) -n 's,^libidn2-\([0-9\.]*)$,\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)' \
+        && $(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)'
+endef