faster to compile. A small selection of packages was tested going from: Executed in 696.30 secs fish external usr time 82.98 mins 395.00 micros 82.98 mins sys time 9.02 mins 0.00 micros 9.02 mins to: Executed in 592.20 secs fish external usr time 84.84 mins 361.00 micros 84.84 mins sys time 8.85 mins 57.00 micros 8.85 mins Tested by running make -j 12 and wiping staging/build_dir/target_x Signed-off-by: Rosen Penev <rosenp@gmail.com>
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=h2o
|
|
PKG_VERSION:=2.2.6
|
|
PKG_RELEASE:=7
|
|
|
|
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
|
|
|
|
PKG_MAINTAINER:=James Taylor <james@jtaylor.id.au
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../devel/ninja/ninja-cmake.mk
|
|
|
|
PKG_BUILD_DEPENDS:=ruby/host libwslay
|
|
|
|
CMAKE_OPTIONS += \
|
|
-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/
|
|
DEPENDS:=+libopenssl +zlib +libyaml +ruby
|
|
endef
|
|
|
|
define Package/libh2o
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=H2O Library compiled with libuv
|
|
URL:=https://h2o.examp1e.net/
|
|
DEPENDS:=+libuv +libopenssl +zlib +libyaml +ruby
|
|
endef
|
|
|
|
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
|
|
|
|
define Package/libh2o-evloop/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libh2o/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libh2o-evloop))
|
|
$(eval $(call BuildPackage,libh2o))
|