2019-12-09 01:49:19 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=h2o
|
|
|
|
PKG_VERSION:=2.2.6
|
2023-10-11 09:09:16 +00:00
|
|
|
PKG_RELEASE:=15
|
2019-12-09 01:49:19 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}?
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_HASH:=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
|
|
|
|
|
2021-06-02 12:19:42 +00:00
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
|
2019-12-09 01:49:19 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2019-12-09 01:49:19 +00:00
|
|
|
|
2021-04-25 13:00:39 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libwslay
|
2019-12-09 01:49:19 +00:00
|
|
|
|
2021-03-04 22:45:01 +00:00
|
|
|
CMAKE_OPTIONS += \
|
2019-12-09 01:49:19 +00:00
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DWITH_MRUBY=OFF
|
|
|
|
|
|
|
|
define Package/libh2o-evloop
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=H2O Library compiled with its own event loop
|
|
|
|
URL:=https://h2o.examp1e.net/
|
2023-06-14 13:18:29 +00:00
|
|
|
DEPENDS:=+libopenssl +zlib
|
2019-12-09 01:49:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libh2o
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=H2O Library compiled with libuv
|
|
|
|
URL:=https://h2o.examp1e.net/
|
2021-04-25 13:00:39 +00:00
|
|
|
DEPENDS:=+libuv +libopenssl +zlib +libyaml
|
2019-12-09 01:49:19 +00:00
|
|
|
endef
|
|
|
|
|
2020-07-14 05:01:34 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libh2o-evloop.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libh2o-evloop.pc
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libh2o.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libh2o.pc
|
|
|
|
endef
|
|
|
|
|
2019-12-09 01:49:19 +00:00
|
|
|
define Package/libh2o-evloop/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-04-25 13:00:48 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/
|
2019-12-09 01:49:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libh2o/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-04-25 13:00:48 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libh2o.so* $(1)/usr/lib/
|
2019-12-09 01:49:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libh2o-evloop))
|
|
|
|
$(eval $(call BuildPackage,libh2o))
|