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.

59 lines
1.6 KiB

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