mxe/src/gnutls.mk

40 lines
1.4 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2008-11-08 18:56:29 +00:00
PKG := gnutls
$(PKG)_WEBSITE := https://www.gnu.org/software/gnutls/
$(PKG)_DESCR := GnuTLS
$(PKG)_VERSION := 3.6.12
$(PKG)_CHECKSUM := bfacf16e342949ffd977a9232556092c47164bd26e166736cf3459a870506c4b
$(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
2014-04-08 11:00:17 +01:00
$(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz
2018-12-06 09:42:37 +00:00
$(PKG)_URL := https://gnupg.org/ftp/gcrypt/gnutls/v3.6/$($(PKG)_FILE)
2017-10-19 19:39:25 +01:00
$(PKG)_URL_2 := https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnutls/v3.5/$($(PKG)_FILE)
$(PKG)_DEPS := cc gettext gmp libidn2 libtasn1 libunistring nettle zlib
2008-11-08 18:56:29 +00:00
define $(PKG)_UPDATE
2018-12-06 09:42:37 +00:00
$(WGET) -q -O- https://gnupg.org/ftp/gcrypt/gnutls/v3.6/ | \
2019-12-03 14:04:03 +00:00
$(SED) -n 's,.*gnutls-\([1-9]\+\(\.[0-9]\+\)\+\)\..*,\1,p' | \
$(SORT) -V | \
2013-01-03 10:13:51 +00:00
tail -1
2008-11-08 18:56:29 +00:00
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-rpath \
2008-11-08 18:56:29 +00:00
--disable-nls \
--disable-guile \
--disable-doc \
--disable-tests \
--enable-local-libopts \
--without-p11-kit \
2019-07-08 22:16:01 +01:00
--disable-silent-rules
ac_cv_prog_AR='$(TARGET)-ar'
2011-11-23 08:04:21 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install
2011-09-03 15:40:19 +01:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-gnutls.exe' \
2011-09-03 15:40:19 +01:00
`'$(TARGET)-pkg-config' gnutls --cflags --libs`
2008-11-08 18:56:29 +00:00
endef