2019-12-09 02:49:19 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=h2o
|
|
|
|
PKG_VERSION:=2.2.6
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=13
|
2019-12-09 02:49:19 +01: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 14:19:42 +02:00
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
|
2019-12-09 02:49:19 +01:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2019-12-09 02:49:19 +01:00
|
|
|
|
2021-04-25 15:00:39 +02:00
|
|
|
PKG_BUILD_DEPENDS:=libwslay
|
2019-12-09 02:49:19 +01:00
|
|
|
|
2021-03-04 23:45:01 +01:00
|
|
|
CMAKE_OPTIONS += \
|
2019-12-09 02:49:19 +01: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/
|
2021-04-25 15:00:39 +02:00
|
|
|
DEPENDS:=+libopenssl +zlib +libyaml
|
2019-12-09 02:49:19 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libh2o
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=H2O Library compiled with libuv
|
|
|
|
URL:=https://h2o.examp1e.net/
|
2021-04-25 15:00:39 +02:00
|
|
|
DEPENDS:=+libuv +libopenssl +zlib +libyaml
|
2019-12-09 02:49:19 +01:00
|
|
|
endef
|
|
|
|
|
2020-07-14 07:01:34 +02: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 02:49:19 +01:00
|
|
|
define Package/libh2o-evloop/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-04-25 15:00:48 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/
|
2019-12-09 02:49:19 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libh2o/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-04-25 15:00:48 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libh2o.so* $(1)/usr/lib/
|
2019-12-09 02:49:19 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libh2o-evloop))
|
|
|
|
$(eval $(call BuildPackage,libh2o))
|