Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= 2.8.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= eb0a6d7d3cb9ac684d971c14f9f6d3ba
  8. PKG_DESCR:= GNU TLS library
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libgcrypt libtasn1 zlib
  11. PKG_BUILDDEP:= libgcrypt liblzo libtasn1 opencdk zlib ncurses
  12. PKG_URL:= http://www.gnu.org/software/gnutls/
  13. PKG_SITES:= ${MASTER_SITE_GNU:=gnutls/}
  14. PKG_SUBPKGS:= LIBGNUTLS GNUTLS_UTILS LIBGNUTLS_EXTRA LIBGNUTLS_OPENSSL
  15. PKGSD_GNUTLS_UTILS:= GNU TLS utilities
  16. PKGSS_GNUTLS_UTILS:= libgnutls libgnutls-extra
  17. PKGSC_GNUTLS_UTILS:= crypto
  18. PKGSC_LIBGNUTLS:= libs
  19. PKGSC_LIBGNUTLS_EXTRA:= libs
  20. PKGSC_LIBGNUTLS_OPENSSL:= libs
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBGNUTLS,libgnutls,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS}))
  24. $(eval $(call PKG_template,GNUTLS_UTILS,gnutls-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GNUTLS_UTILS},${PKGSD_GNUTLS_UTILS},${PKGSC_GNUTLS_UTILS}))
  25. $(eval $(call PKG_template,LIBGNUTLS_EXTRA,libgnutls-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_EXTRA}))
  26. $(eval $(call PKG_template,LIBGNUTLS_OPENSSL,libgnutls-openssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBGNUTLS_OPENSSL}))
  27. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  28. CONFIGURE_ARGS+= --without-libopencdk-prefix \
  29. --disable-camellia \
  30. --with-libgcrypt-prefix=${STAGING_TARGET_DIR}/usr \
  31. --disable-rpath \
  32. --without-libz-prefix
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_LIBGNUTLS}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libgnutls.so* ${IDIR_LIBGNUTLS}/usr/lib
  36. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libgnutls-extra.so* \
  38. ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  39. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libgnutls-openssl.so* \
  41. ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  42. ${INSTALL_DIR} ${IDIR_GNUTLS_UTILS}/usr/bin
  43. ${CP} ${WRKINST}/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
  44. ${IDIR_GNUTLS_UTILS}/usr/bin
  45. include ${TOPDIR}/mk/pkg-bottom.mk