Browse Source

h2o: fix pkgconfig paths

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
356fa3486f
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      libs/h2o/Makefile

+ 9
- 3
libs/h2o/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=h2o PKG_NAME:=h2o
PKG_VERSION:=2.2.6 PKG_VERSION:=2.2.6
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}? PKG_SOURCE_URL:=https://codeload.github.com/h2o/h2o/tar.gz/v${PKG_VERSION}?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@ -22,8 +22,6 @@ CMAKE_OPTIONS:= \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DWITH_MRUBY=OFF -DWITH_MRUBY=OFF
CMAKE_INSTALL:=1
define Package/libh2o-evloop define Package/libh2o-evloop
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
@ -40,6 +38,14 @@ define Package/libh2o
DEPENDS:=+libuv +libopenssl +zlib +libyaml +ruby DEPENDS:=+libuv +libopenssl +zlib +libyaml +ruby
endef 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 define Package/libh2o-evloop/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libh2o-evloop.so* $(1)/usr/lib/


Loading…
Cancel
Save