annotate src/libidn2.mk @ 4607:e5efd844c4c8

update libgcrypy to 1.8.2 * src/libgcrypt.mk: update version, checksum, install pkg.pc file * src/libgpg_error.mk: update version, checksum for v1.27 * src/libidn2.mk: install pkg.pc file
author John Donoghue
date Wed, 28 Feb 2018 11:01:16 -0500
parents c27cf895031e
children 41b69dbeb03a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
1 # This file is part of MXE.
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
2 # See index.html for further information.
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
3
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
4 PKG := libidn2
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
5 $(PKG)_IGNORE :=
4564
c27cf895031e libidn2: update to v2.0.4
John D
parents: 4538
diff changeset
6 $(PKG)_VERSION := 2.0.4
c27cf895031e libidn2: update to v2.0.4
John D
parents: 4538
diff changeset
7 $(PKG)_CHECKSUM := b00490f2251f218b130628eccacc170a4bb49db5
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
8 $(PKG)_SUBDIR := libidn2-$($(PKG)_VERSION)
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
9 $(PKG)_FILE := libidn2-$($(PKG)_VERSION).tar.gz
4440
5e88d6bf806c libidn2: update to 2.0.3
John D
parents: 4361
diff changeset
10 $(PKG)_URL := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
11 $(PKG)_DEPS := gettext libiconv libunistring
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
12
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
13 define $(PKG)_UPDATE
4538
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4440
diff changeset
14 $(WGET) -q -O- https://ftp.gnu.org/gnu/libidn/ | \
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4440
diff changeset
15 $(SED) -n 's,.*libidn2-\([0-9][^t]*\).tar.gz.*,\1,p' | \
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 4440
diff changeset
16 tail -1
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
17 endef
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
18
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
19 define $(PKG)_BUILD
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
20 cd '$(1)' && ./configure \
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
24 --prefix='$(HOST_PREFIX)' \
4440
5e88d6bf806c libidn2: update to 2.0.3
John D
parents: 4361
diff changeset
25 --disable-doc \
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
26 && $(CONFIGURE_POST_HOOK)
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)'
4607
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
29 # create pkg-config files
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
30 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig'
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
31 (echo 'Name: $(PKG)'; \
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
32 echo 'Version: $($(PKG)_VERSION)'; \
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
33 echo 'Description: implementation of IDNA2008/TR46 internationalized domain names'; \
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
34 echo 'Libs: -lidn2'; \
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
35 echo 'Libs.private: -lunistring -liconv -lcharset';) \
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
36 > '$(HOST_LIBDIR)/pkgconfig/$(PKG).pc'
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
37 # TODO create pc files for iconv and unistring.
e5efd844c4c8 update libgcrypy to 1.8.2
John Donoghue
parents: 4564
diff changeset
38
4361
eb3e153306f3 libidn2: add new package
John D
parents:
diff changeset
39 endef