Pārlūkot izejas kodu

libftdi: fix pkgconfig file

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 10 gadus atpakaļ
vecāks
revīzija
38b243a6c4
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6
    0
      libs/libftdi/Makefile

+ 6
- 0
libs/libftdi/Makefile Parādīt failu

@@ -46,6 +46,12 @@ define Build/InstallDev
46 46
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so*} $(1)/usr/lib/
47 47
 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48 48
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libftdi.pc $(1)/usr/lib/pkgconfig/libftdi.pc
49
+	$(SED) \
50
+		's,/usr/include,$$$${prefix}/include,g' \
51
+		 $(1)/usr/lib/pkgconfig/libftdi.pc
52
+	$(SED) \
53
+		's,/usr/lib,$$$${prefix}/lib,g' \
54
+		 $(1)/usr/lib/pkgconfig/libftdi.pc
49 55
 endef
50 56
 
51 57
 define Package/libftdi/install