Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:= tntnet
  5. PKG_VERSION:= 2.2.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= febe799675c1b8b2f7259bad30cf6f23
  8. PKG_DESCR:= small c++ application server
  9. PKG_SECTION:= net/http
  10. PKG_DEPENDS:= cxxtools zlib libpthread libstdcxx
  11. PKG_BUILDDEP:= cxxtools zlib
  12. PKG_URL:= http://www.tntnet.org/
  13. PKG_SITES:= http://www.tntnet.org/download/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_CHOICES_TNTNET:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL
  16. PKGCD_WITHOUT_SSL:= use no SSL
  17. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  18. PKGCS_WITH_OPENSSL:= libopenssl
  19. PKGCB_WITH_OPENSSL:= openssl
  20. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  21. PKGCS_WITH_GNUTLS:= libgnutls
  22. PKGCB_WITH_GNUTLS:= gnutls
  23. include ${ADK_TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,TNTNET,tntnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. ifeq (${ADK_PACKAGE_TNTNET_WITHOUT_SSL},y)
  26. CONFIGURE_ARGS+= --with-ssl=no
  27. endif
  28. ifeq (${ADK_PACKAGE_TNTNET_WITH_OPENSSL},y)
  29. CONFIGURE_ARGS+= --with-ssl=openssl
  30. endif
  31. ifeq (${ADK_PACKAGE_TNTNET_WITH_GNUTLS},y)
  32. CONFIGURE_ARGS+= --with-ssl=gnutls
  33. endif
  34. CONFIGURE_ARGS+= --without-epoll \
  35. --without-sdk \
  36. --without-cgi \
  37. --disable-unittest \
  38. --disable-locale \
  39. --without-sendfile
  40. CONFIGURE_ENV+= CXXFLAGS='${TARGET_CXXFLAGS}' \
  41. ac_cv_path_cxxtools_config=${STAGING_TARGET_DIR}/usr/bin
  42. tntnet-install:
  43. ${INSTALL_DIR} ${IDIR_TNTNET}/www
  44. ${INSTALL_DIR} ${IDIR_TNTNET}/etc/tntnet
  45. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/bin
  46. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/lib/tntnet
  47. ${INSTALL_DATA} ./files/tntnet.{conf,properties} \
  48. ${IDIR_TNTNET}/etc/tntnet
  49. ${INSTALL_DATA} ./files/mime.conf \
  50. ${IDIR_TNTNET}/etc/tntnet
  51. ${CP} ${WRKINST}/usr/bin/tntnet ${IDIR_TNTNET}/usr/bin
  52. ${CP} ${WRKINST}/usr/lib/tntnet/tntnet.so* \
  53. ${IDIR_TNTNET}/usr/lib/tntnet
  54. ${CP} ${WRKINST}/usr/lib/libtntnet.so* \
  55. ${IDIR_TNTNET}/usr/lib
  56. include ${ADK_TOPDIR}/mk/pkg-bottom.mk