comparison src/libgcrypt.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 5eef82cc581c
children 0cec6810450b
comparison
equal deleted inserted replaced
4606:86c3c1fd16f1 4607:e5efd844c4c8
1 # This file is part of MXE. 1 # This file is part of MXE.
2 # See index.html for further information. 2 # See index.html for further information.
3 3
4 PKG := libgcrypt 4 PKG := libgcrypt
5 $(PKG)_IGNORE := 5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 1.7.6 6 $(PKG)_VERSION := 1.8.2
7 $(PKG)_CHECKSUM := d2b9e0f413064cfc67188f80d3cbda887c755a62 7 $(PKG)_CHECKSUM := ab8aae5d7a68f8e0988f90e11e7f6a4805af5c8d
8 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION) 8 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
9 $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2 9 $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2
10 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE) 10 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE)
11 $(PKG)_DEPS := libgpg_error 11 $(PKG)_DEPS := libgpg_error
12 12
16 grep -v '^1\.4\.' | \ 16 grep -v '^1\.4\.' | \
17 tail -1 17 tail -1
18 endef 18 endef
19 19
20 ifeq ($(TARGET),x86_64-w64-mingw32) 20 ifeq ($(TARGET),x86_64-w64-mingw32)
21 $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no 21 $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no --disable-padlock-support
22 else 22 else
23 $(PKG)_TARGET_CONFIGURE_OPTIONS := 23 $(PKG)_TARGET_CONFIGURE_OPTIONS :=
24 endif 24 endif
25 25
26 define $(PKG)_BUILD 26 define $(PKG)_BUILD
27 sed -i -e '/^ *;/d' -e '/^ *$$/d' '$(1)/src/libgcrypt.def'
28 cd '$(1)' && ./configure \ 27 cd '$(1)' && ./configure \
29 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ 28 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
30 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
31 $(ENABLE_SHARED_OR_STATIC) \ 30 $(ENABLE_SHARED_OR_STATIC) \
32 --prefix='$(HOST_PREFIX)' \ 31 --prefix='$(HOST_PREFIX)' \
38 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' 37 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)'
39 if [ $(MXE_NATIVE_BUILD) = no ]; then \ 38 if [ $(MXE_NATIVE_BUILD) = no ]; then \
40 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ 39 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \
41 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/libgcrypt-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \ 40 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/libgcrypt-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \
42 fi 41 fi
42 # create pkg-config file
43 $(INSTALL) -d '$(3)$(HOST_LIBDIR)/pkgconfig'
44 (echo 'Name: $(PKG)'; \
45 echo 'Version: $($(PKG)_VERSION)'; \
46 echo 'Description: $(PKG)'; \
47 echo 'Libs: ' "`$(MXE_TOOL_PREFIX)libgcrypt-config --libs`"; \
48 echo 'Cflags: ' "`$(MXE_TOOL_PREFIX)libgcrypt-config --cflags`";) \
49 > '$(3)$(HOST_LIBDIR)/pkgconfig/$(PKG).pc'
43 endef 50 endef