Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= gnutls
  7. PKG_VERSION:= 2.6.6
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= ca2489e29f9dc313a79b9747bb1090e5
  10. PKG_DESCR:= GNU TLS library
  11. PKG_SECTION:= libs
  12. PKG_DEPENDS:= libgcrypt libtasn1 zlib
  13. PKG_URL:= http://www.gnu.org/software/gnutls
  14. PKG_SITES:= ${MASTER_SITE_GNU:=gnutls/}
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. ifeq (${ADK_COMPILE_GNUTLS_WITH_UCLIBCXX},y)
  18. TCXXFLAGS+= -fno-builtin -nostdinc++ -nodefaultlibs -I${STAGING_DIR}/usr/include/uClibc++
  19. TLDFLAGS+= -nodefaultlibs -luClibc++
  20. PKG_DEPENDS_1:= ${PKG_DEPENDS} uclibc++
  21. else
  22. PKG_DEPENDS_1:= ${PKG_DEPENDS} libstdcxx
  23. endif
  24. $(eval $(call PKG_template,LIBGNUTLS,libgnutls,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,GNUTLS_UTILS,gnutls-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBGNUTLS_EXTRA,libgnutls-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LIBGNUTLS_OPENSSL,libgnutls-openssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_template,LIBGNUTLSXX,libgnutlsxx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR},${PKG_SECTION}))
  29. CONFIGURE_STYLE= gnu
  30. CONFIGURE_ARGS+= --without-libopencdk-prefix \
  31. --without-libz-prefix
  32. BUILD_STYLE= auto
  33. INSTALL_STYLE= auto
  34. ifeq (${ADK_COMPILE_GNUTLS_WITH_UCLIBCXX},y)
  35. # add workaround because libtool tries to link libstdc++
  36. post-configure:
  37. ${SED} 's#postdeps="-lstdc.*#postdeps="-lm"#' \
  38. ${WRKBUILD}/libtool
  39. endif
  40. post-install:
  41. ${INSTALL_DIR} ${IDIR_LIBGNUTLS}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/libgnutls.so.* ${IDIR_LIBGNUTLS}/usr/lib
  43. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libgnutls-extra.so.* ${IDIR_LIBGNUTLS_EXTRA}/usr/lib
  45. ${INSTALL_DIR} ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libgnutls-openssl.so.* ${IDIR_LIBGNUTLS_OPENSSL}/usr/lib
  47. ${INSTALL_DIR} ${IDIR_GNUTLS_UTILS}/usr/bin
  48. ${CP} ${WRKINST}/usr/bin/{{cert,srp,psk}tool,gnutls-{cli,serv}} \
  49. ${IDIR_GNUTLS_UTILS}/usr/bin
  50. ifeq ($(ADK_CXX),y)
  51. ${INSTALL_DIR} ${IDIR_LIBGNUTLSXX}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libgnutlsxx.so.* ${IDIR_LIBGNUTLSXX}/usr/lib
  53. endif
  54. include ${TOPDIR}/mk/pkg-bottom.mk