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.

60 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=h2o
  3. PKG_VERSION:=2.2.6
  4. PKG_RELEASE:=7
  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 libwslay
  14. PKG_BUILD_PARALLEL:=1
  15. CMAKE_OPTIONS:= \
  16. -DBUILD_SHARED_LIBS=ON \
  17. -DWITH_MRUBY=OFF
  18. define Package/libh2o-evloop
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=H2O Library compiled with its own event loop
  22. URL:=https://h2o.examp1e.net/
  23. DEPENDS:=+libopenssl +zlib +libyaml +ruby
  24. endef
  25. define Package/libh2o
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=H2O Library compiled with libuv
  29. URL:=https://h2o.examp1e.net/
  30. DEPENDS:=+libuv +libopenssl +zlib +libyaml +ruby
  31. endef
  32. define Build/InstallDev
  33. $(call Build/InstallDev/cmake,$(1))
  34. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libh2o-evloop.pc
  35. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libh2o-evloop.pc
  36. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libh2o.pc
  37. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libh2o.pc
  38. endef
  39. define Package/libh2o-evloop/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/
  42. endef
  43. define Package/libh2o/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libh2o-evloop))
  48. $(eval $(call BuildPackage,libh2o))