Makefile 2.0 KB

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