1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= tntnet
  5. PKG_VERSION:= 1.6.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e2c3c5075a890711a7569730493c0996
  8. PKG_DESCR:= small C++ application server
  9. PKG_SECTION:= www
  10. PKG_DEPENDS:= cxxtools zlib libiconv libpthread
  11. PKG_BUILDDEP:= cxxtools zlib libiconv
  12. PKG_URL:= http://www.tntnet.org/
  13. PKG_SITES:= http://www.tntnet.org/download/
  14. PKG_NEED_CXX:= 1
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,TNTNET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_ARGS+= --without-epoll \
  18. --without-sdk \
  19. --without-cgi \
  20. --without-sendfile \
  21. --without-ssl
  22. CONFIGURE_ENV+= CXXFLAGS='${TARGET_CXXFLAGS}' \
  23. ac_cv_path_cxxtools_config=${STAGING_TARGET_DIR}/usr/bin
  24. TARGET_LDFLAGS+= -ldl
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_TNTNET}/www
  27. ${INSTALL_DIR} ${IDIR_TNTNET}/etc/tntnet
  28. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/bin
  29. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/lib/tntnet
  30. ${INSTALL_DATA} ./files/tntnet.{conf,properties} \
  31. ${IDIR_TNTNET}/etc/tntnet
  32. ${INSTALL_DATA} ./files/mime.conf \
  33. ${IDIR_TNTNET}/etc/tntnet
  34. ${CP} ${WRKINST}/usr/bin/tntnet ${IDIR_TNTNET}/usr/bin
  35. ${CP} ${WRKINST}/usr/lib/tntnet/tntnet.so* \
  36. ${IDIR_TNTNET}/usr/lib/tntnet
  37. ${CP} ${WRKINST}/usr/lib/libtntnet.so.* \
  38. ${IDIR_TNTNET}/usr/lib
  39. include ${TOPDIR}/mk/pkg-bottom.mk