libftdi: install libftdi1-config to host 14167/head
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 02:45:10 +0000 (18:45 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 8 Dec 2020 04:20:47 +0000 (20:20 -0800)
Helps old packages that don't use pkgconfig.

Fix prefix paths as well.

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

index 6d3c1b9acd7a252f12fd63fc8b7caa39097b5d6b..eb6a14c6ff7d13454ba7f5adaab53da2a36dfe2e 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libftdi
 PKG_VERSION:=0.20
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
@@ -52,6 +52,9 @@ define Build/InstallDev
        $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdipp.pc
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdipp.pc
        $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdipp.pc
+       $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libftdi-config
+       $(INSTALL_DIR) $(2)/bin
+       $(LN) ../../usr/bin/libftdi-config $(2)/bin/libftdi-config
 endef
 
 define Package/libftdi/install