Makefile 2.6 KB

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