Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= mongrel2
  5. PKG_VERSION:= 1.13.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= b6f1f50c9f65b605342d8792b1cc8a1c151105339030313b9825b6a68d400c10
  8. PKG_DESCR:= application, language, and network architecture agnostic web server
  9. PKG_SECTION:= net/http
  10. PKG_BUILDDEP:= zeromq sqlite-host sqlite mbedtls
  11. PKG_DEPENDS:= zeromq libsqlite mbedtls
  12. PKG_NEEDS:= threads c++
  13. PKG_URL:= http://mongrel2.org
  14. PKG_SITES:= https://github.com/mongrel2/mongrel2/releases/download/v$(PKG_VERSION)/
  15. DISTFILES:= $(PKG_NAME)-v$(PKG_VERSION).tar.bz2
  16. WRKDIST= ${WRKDIR}/$(PKG_NAME)-v$(PKG_VERSION)
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,MONGREL2,mongrel2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  19. CONFIG_STYLE:= manual
  20. mongrel2-install:
  21. $(INSTALL_DIR) $(IDIR_MONGREL2)/etc/mongrel2
  22. $(CP) $(WRKBUILD)/examples/configs/sample.conf \
  23. $(IDIR_MONGREL2)/etc/mongrel2/site.conf
  24. $(INSTALL_DIR) $(IDIR_MONGREL2)/usr/bin
  25. $(INSTALL_BIN) $(WRKINST)/usr/bin/m2sh \
  26. $(IDIR_MONGREL2)/usr/bin
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/mongrel2 \
  28. $(IDIR_MONGREL2)/usr/bin
  29. include $(ADK_TOPDIR)/mk/pkg-bottom.mk