Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,TNTNET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_ARGS+= --without-epoll \
  17. --without-sdk \
  18. --without-cgi \
  19. --without-sendfile \
  20. --without-ssl
  21. CONFIGURE_ENV+= CXXFLAGS='${TCXXFLAGS}' \
  22. ac_cv_path_cxxtools_config=${STAGING_DIR}/usr/bin
  23. TLDFLAGS+= -ldl
  24. post-install:
  25. ${INSTALL_DIR} ${IDIR_TNTNET}/www
  26. ${INSTALL_DIR} ${IDIR_TNTNET}/etc/tntnet
  27. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/bin
  28. ${INSTALL_DIR} ${IDIR_TNTNET}/usr/lib/tntnet
  29. ${INSTALL_DATA} ./files/tntnet.{conf,properties} \
  30. ${IDIR_TNTNET}/etc/tntnet
  31. ${INSTALL_DATA} ./files/mime.conf \
  32. ${IDIR_TNTNET}/etc/tntnet
  33. ${CP} ${WRKINST}/usr/bin/tntnet ${IDIR_TNTNET}/usr/bin
  34. ${CP} ${WRKINST}/usr/lib/tntnet/tntnet.so* \
  35. ${IDIR_TNTNET}/usr/lib/tntnet
  36. ${CP} ${WRKINST}/usr/lib/libtntnet.so.* \
  37. ${IDIR_TNTNET}/usr/lib
  38. include ${TOPDIR}/mk/pkg-bottom.mk