mxe/src/gnutls.mk

49 lines
1.6 KiB
Makefile
Raw Normal View History

2010-01-16 22:02:02 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
2008-11-08 18:56:29 +00:00
# GnuTLS
PKG := gnutls
2011-12-14 08:52:57 +00:00
$(PKG)_VERSION := 3.0.9
$(PKG)_CHECKSUM := ce0a6a5d56c57a28dc6099e7f84ab85513d86139
$(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
2011-10-29 00:54:39 +01:00
$(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz
$(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/
$(PKG)_URL := ftp://ftp.gnutls.org/pub/gnutls/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE)
$(PKG)_DEPS := gcc nettle zlib
2008-11-08 18:56:29 +00:00
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tags' | \
grep '<a class="list name"' | \
$(SED) -n 's,.*<a[^>]*>gnutls_\([0-9]*_[0-9]*[02468]_[^<]*\)<.*,\1,p' | \
$(SED) 's,_,.,g' | \
2011-11-08 07:43:58 +00:00
grep -v '^2\.' | \
2008-11-08 18:56:29 +00:00
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am'
cd '$(1)' && autoconf
cd '$(1)' && automake
2008-11-08 18:56:29 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
2011-03-25 16:21:46 +00:00
--enable-static \
2008-11-08 18:56:29 +00:00
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-nls \
--disable-guile \
2008-11-08 18:56:29 +00:00
--with-included-libtasn1 \
--with-included-libcfg \
--without-p11-kit \
--disable-silent-rules \
CPPFLAGS='-DWINVER=0x0501' \
LIBS='-lws2_32' \
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 \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gnutls.exe' \
`'$(TARGET)-pkg-config' gnutls --cflags --libs`
2008-11-08 18:56:29 +00:00
endef