Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.3
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 7c0dd4f77dc70c64d2f385aeb2df4157
  8. PKG_DESCR:= GNU TLS library
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libgcrypt libtasn1 zlib libnettle libgmp
  11. PKG_BUILDDEP:= libgcrypt liblzo libtasn1 zlib ncurses libnettle
  12. PKG_URL:= http://www.gnu.org/software/gnutls/
  13. PKG_SITES:= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/
  14. PKG_LIBNAME:= libgnutls
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= LIBGNUTLS GNUTLS_UTILS LIBGNUTLS_EXTRA LIBGNUTLS_OPENSSL
  17. PKGSD_GNUTLS_UTILS:= GNU TLS utilities
  18. PKGSS_GNUTLS_UTILS:= libgnutls libgnutls-extra
  19. PKGSC_GNUTLS_UTILS:= crypto
  20. PKGSC_LIBGNUTLS:= libs
  21. PKGSC_LIBGNUTLS_EXTRA:= libs
  22. PKGSC_LIBGNUTLS_OPENSSL:= libs
  23. PKG_FLAVOURS_LIBGNUTLS:= WITH_CRYPTODEV
  24. PKGFD_WITH_CRYPTODEV:= enable support for cryptodev-linux
  25. PKGFB_WITH_CRYPTODEV:= cryptodev-linux
  26. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  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_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  39. TARGET_LDFLAGS+= -pthread
  40. CONFIGURE_ARGS+= --disable-rpath \
  41. --without-libz-prefix \
  42. --without-p11-kit
  43. CONFIGURE_ENV+= ac_cv_prog_AR='$(TARGET_CROSS)ar'
  44. libgnutls-install:
  45. ${INSTALL_DIR} ${IDIR_LIBGNUTLS}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libgnutls.so* ${IDIR_LIBGNUTLS}/usr/lib
  47. libgnutls-extra-install:
  48. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libgnutlsxx.so* \
  50. ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  51. libgnutls-openssl-install:
  52. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libgnutls-openssl.so* \
  54. ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  55. gnutls-utils-install:
  56. ${INSTALL_DIR} ${IDIR_GNUTLS_UTILS}/usr/bin
  57. ${CP} ${WRKINST}/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
  58. ${IDIR_GNUTLS_UTILS}/usr/bin
  59. include ${TOPDIR}/mk/pkg-bottom.mk