libftdi1: Fix pkgconfig paths properly
authorRosen Penev <rosenp@gmail.com>
Sat, 21 Sep 2019 21:56:07 +0000 (14:56 -0700)
committerRosen Penev <rosenp@gmail.com>
Thu, 29 Oct 2020 04:36:23 +0000 (21:36 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 0dac4b74cab4938af9a0148a48557410aa5fa5ae)

libs/libftdi1/Makefile

index 8f90440794e6d418cd7f1c8c659718198be55ec6..3aaf5e76ac5f12d45f56cd6c94f560fdd5704bf0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libftdi1
 PKG_VERSION:=1.4
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
@@ -66,10 +66,12 @@ CMAKE_OPTIONS += \
 
 define Build/InstallDev
        $(call Build/InstallDev/cmake,$(1))
+       $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
-       $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
+       $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
-       $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
 endef
 
 define Package/libftdi1/install