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
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
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
39 TARGET_LDFLAGS
+= -pthread
40 CONFIGURE_ARGS
+= --disable-rpath \
42 --without-libz-prefix \
44 CONFIGURE_ENV
+= ac_cv_prog_AR
='$(TARGET_CROSS)ar'
47 $(INSTALL_DIR
) $(IDIR_LIBGNUTLS
)/usr
/lib
48 $(CP
) $(WRKINST
)/usr
/lib
/libgnutls.so
* $(IDIR_LIBGNUTLS
)/usr
/lib
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