gnutls: update to 3.5.10
[openadk.git] / package / gnutls / Makefile
blobe3eb954015d9e04b44dfd3f750a3aa137b2e7ef1
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= gnutls
7 PKG_VERSION:= 3.5.10
8 PKG_RELEASE:= 1
9 PKG_HASH:= af443e86ba538d4d3e37c4732c00101a492fe4b56a55f4112ff0ab39dbe6579d
10 PKG_DESCR:= transport layer security library
11 PKG_SECTION:= libs/crypto
12 PKG_DEPENDS:= libgcrypt libtasn1 zlib libnettle libgmp libunistring
13 PKG_BUILDDEP:= libgcrypt liblzo libtasn1
14 PKG_BUILDDEP+= zlib ncurses libnettle libunistring
15 PKG_URL:= http://www.gnutls.org/
16 PKG_SITES:= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/
17 PKG_LIBNAME:= libgnutls
18 PKG_OPTS:= dev
20 PKG_SUBPKGS:= LIBGNUTLS GNUTLS_UTILS
21 PKGSD_GNUTLS_UTILS:= transport layer security utilities
22 PKGSS_GNUTLS_UTILS:= libgnutls libgnutls-extra
23 PKGSC_GNUTLS_UTILS:= app/crypto
24 PKGSC_LIBGNUTLS:= libs/crypto
26 PKG_FLAVOURS_LIBGNUTLS:=WITH_CRYPTODEV
27 PKGFD_WITH_CRYPTODEV:= enable support for cryptodev-linux
28 PKGFB_WITH_CRYPTODEV:= cryptodev-linux
30 include $(ADK_TOPDIR)/mk/package.mk
32 $(eval $(call PKG_template,LIBGNUTLS,libgnutls,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKGSC_LIBGNUTLS),$(PKG_OPTS)))
33 $(eval $(call PKG_template,GNUTLS_UTILS,gnutls-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_GNUTLS_UTILS),$(PKGSD_GNUTLS_UTILS),$(PKGSC_GNUTLS_UTILS)))
35 ifneq ($(ADK_PACKAGE_LIBGNUTLS_WITH_CRYPTODEV),)
36 CONFIGURE_ARGS+= --enable-cryptodev
37 endif
39 TARGET_LDFLAGS+= -pthread
40 CONFIGURE_ARGS+= --disable-rpath \
41 --disable-doc \
42 --without-libz-prefix \
43 --without-p11-kit
44 CONFIGURE_ENV+= ac_cv_prog_AR='$(TARGET_CROSS)ar'
46 libgnutls-install:
47 $(INSTALL_DIR) $(IDIR_LIBGNUTLS)/usr/lib
48 $(CP) $(WRKINST)/usr/lib/libgnutls.so* $(IDIR_LIBGNUTLS)/usr/lib
50 gnutls-utils-install:
51 $(INSTALL_DIR) $(IDIR_GNUTLS_UTILS)/usr/bin
52 $(CP) $(WRKINST)/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
53 $(IDIR_GNUTLS_UTILS)/usr/bin
55 include $(ADK_TOPDIR)/mk/pkg-bottom.mk