Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= gnutls
  5. PKG_VERSION:= 3.2.14
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 807bbf14a5b6c81a9249fffab5c3982b
  8. PKG_DESCR:= transport layer security library
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libgcrypt libtasn1 zlib libnettle libgmp
  11. PKG_BUILDDEP:= libiconv-tiny libgcrypt liblzo libtasn1
  12. PKG_BUILDDEP+= zlib ncurses libnettle
  13. PKG_URL:= http://www.gnu.org/software/gnutls/
  14. PKG_SITES:= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/
  15. PKG_LIBNAME:= libgnutls
  16. PKG_OPTS:= dev
  17. PKG_SUBPKGS:= LIBGNUTLS GNUTLS_UTILS LIBGNUTLS_EXTRA LIBGNUTLS_OPENSSL
  18. PKGSD_GNUTLS_UTILS:= transport layer security utilities
  19. PKGSS_GNUTLS_UTILS:= libgnutls libgnutls-extra
  20. PKGSC_GNUTLS_UTILS:= crypto
  21. PKGSC_LIBGNUTLS:= libs
  22. PKGSC_LIBGNUTLS_EXTRA:= libs
  23. PKGSC_LIBGNUTLS_OPENSSL:= libs
  24. PKG_FLAVOURS_LIBGNUTLS:= WITH_CRYPTODEV
  25. PKGFD_WITH_CRYPTODEV:= enable support for cryptodev-linux
  26. PKGFB_WITH_CRYPTODEV:= cryptodev-linux
  27. ifeq ($(ADK_STATIC),y)
  28. PKG_OPTS+= libmix
  29. endif
  30. include ${TOPDIR}/mk/package.mk
  31. $(eval $(call PKG_template,LIBGNUTLS,libgnutls,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS},${PKG_OPTS}))
  32. $(eval $(call PKG_template,GNUTLS_UTILS,gnutls-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GNUTLS_UTILS},${PKGSD_GNUTLS_UTILS},${PKGSC_GNUTLS_UTILS}))
  33. $(eval $(call PKG_template,LIBGNUTLS_EXTRA,libgnutls-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_EXTRA}))
  34. $(eval $(call PKG_template,LIBGNUTLS_OPENSSL,libgnutls-openssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_OPENSSL}))
  35. ifneq ($(ADK_PACKAGE_LIBGNUTLS_WITH_CRYPTODEV),)
  36. CONFIGURE_ARGS+= --enable-cryptodev
  37. endif
  38. TARGET_LDFLAGS+= -pthread
  39. CONFIGURE_ARGS+= --disable-rpath \
  40. --without-libz-prefix \
  41. --without-p11-kit
  42. CONFIGURE_ENV+= ac_cv_prog_AR='$(TARGET_CROSS)ar'
  43. libgnutls-install:
  44. ${INSTALL_DIR} ${IDIR_LIBGNUTLS}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libgnutls.so* ${IDIR_LIBGNUTLS}/usr/lib
  46. libgnutls-extra-install:
  47. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libgnutlsxx.so* \
  49. ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  50. libgnutls-openssl-install:
  51. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libgnutls-openssl.so* \
  53. ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  54. gnutls-utils-install:
  55. ${INSTALL_DIR} ${IDIR_GNUTLS_UTILS}/usr/bin
  56. ${CP} ${WRKINST}/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
  57. ${IDIR_GNUTLS_UTILS}/usr/bin
  58. include ${TOPDIR}/mk/pkg-bottom.mk