Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 908dc1e98e28cb1c2c255a71785a4af2
  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_SUBPKGS:= LIBGNUTLS GNUTLS_UTILS LIBGNUTLS_EXTRA LIBGNUTLS_OPENSSL
  19. PKGSD_GNUTLS_UTILS:= transport layer security utilities
  20. PKGSS_GNUTLS_UTILS:= libgnutls libgnutls-extra
  21. PKGSC_GNUTLS_UTILS:= app/crypto
  22. PKGSC_LIBGNUTLS:= libs/crypto
  23. PKGSC_LIBGNUTLS_EXTRA:= libs/crypto
  24. PKGSC_LIBGNUTLS_OPENSSL:= libs/crypto
  25. PKG_FLAVOURS_LIBGNUTLS:= WITH_CRYPTODEV
  26. PKGFD_WITH_CRYPTODEV:= enable support for cryptodev-linux
  27. PKGFB_WITH_CRYPTODEV:= cryptodev-linux
  28. include ${ADK_TOPDIR}/mk/package.mk
  29. $(eval $(call PKG_template,LIBGNUTLS,libgnutls,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS},${PKG_OPTS}))
  30. $(eval $(call PKG_template,GNUTLS_UTILS,gnutls-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GNUTLS_UTILS},${PKGSD_GNUTLS_UTILS},${PKGSC_GNUTLS_UTILS}))
  31. $(eval $(call PKG_template,LIBGNUTLS_EXTRA,libgnutls-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_EXTRA}))
  32. $(eval $(call PKG_template,LIBGNUTLS_OPENSSL,libgnutls-openssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_OPENSSL}))
  33. ifneq ($(ADK_PACKAGE_LIBGNUTLS_WITH_CRYPTODEV),)
  34. CONFIGURE_ARGS+= --enable-cryptodev
  35. endif
  36. TARGET_LDFLAGS+= -pthread
  37. CONFIGURE_ARGS+= --disable-rpath \
  38. --without-libz-prefix \
  39. --without-p11-kit
  40. CONFIGURE_ENV+= ac_cv_prog_AR='$(TARGET_CROSS)ar'
  41. libgnutls-install:
  42. ${INSTALL_DIR} ${IDIR_LIBGNUTLS}/usr/lib
  43. ${CP} ${WRKINST}/usr/lib/libgnutls.so* ${IDIR_LIBGNUTLS}/usr/lib
  44. libgnutls-extra-install:
  45. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libgnutlsxx.so* \
  47. ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  48. libgnutls-openssl-install:
  49. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libgnutls-openssl.so* \
  51. ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  52. gnutls-utils-install:
  53. ${INSTALL_DIR} ${IDIR_GNUTLS_UTILS}/usr/bin
  54. ${CP} ${WRKINST}/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
  55. ${IDIR_GNUTLS_UTILS}/usr/bin
  56. include ${ADK_TOPDIR}/mk/pkg-bottom.mk