neon: install neon-config to host path 14166/head
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 02:30:49 +0000 (18:30 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 04:12:36 +0000 (20:12 -0800)
Helps old packages that do not use pkgconfig.

Fixed paths.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/neon/Makefile

index 328eb8bcc8fa4337d530637bf7a33e5a45236131..f3aaa38d388f4b22abf6886f3a656277246a86ed 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=neon
 PKG_VERSION:=0.31.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://notroj.github.io/neon
@@ -65,8 +65,9 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
-       $(SED) 's,-I$$$${includedir}/,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/neon-config
-       $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
+       $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/neon-config
+       $(INSTALL_DIR) $(2)/bin
+       $(LN) ../../usr/bin/neon-config $(2)/bin/neon-config
 endef
 
 define Package/libneon/install