You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=h2o
  3. PKG_VERSION:=2.2.6
  4. PKG_RELEASE:=5
  5. PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}?
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_HASH:=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
  8. PKG_MAINTAINER:=James Taylor <james@jtaylor.id.au
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. PKG_BUILD_DEPENDS:=ruby/host
  14. PKG_BUILD_PARALLEL:=1
  15. CMAKE_OPTIONS:= \
  16. -DBUILD_SHARED_LIBS=ON \
  17. -DWITH_MRUBY=OFF
  18. CMAKE_INSTALL:=1
  19. define Package/libh2o-evloop
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=H2O Library compiled with its own event loop
  23. URL:=https://h2o.examp1e.net/
  24. DEPENDS:=+libwslay +libopenssl +zlib +libyaml +ruby
  25. endef
  26. define Package/libh2o
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=H2O Library compiled with libuv
  30. URL:=https://h2o.examp1e.net/
  31. DEPENDS:=+libuv +libwslay +libopenssl +zlib +libyaml +ruby
  32. endef
  33. define Package/libh2o-evloop/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/
  36. endef
  37. define Package/libh2o/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libh2o-evloop))
  42. $(eval $(call BuildPackage,libh2o))