openzwave: avoid /usr/include in libopenzwave.pc
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Tue, 5 May 2020 13:18:42 +0000 (10:18 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 8 May 2020 14:30:55 +0000 (11:30 -0300)
This adds a line in Build/InstallDev to change a hardcoded
'/usr/include' definition in the staging_dir libopenzwave.pc file to use
${prefix}/include instead.  Otherwise dependent packages may fail to
find them.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
utils/openzwave/Makefile

index 9768f6e4a67267022d11b8c7b335644baea1adeb..0783466fe7d9fe4198d24d9d6fbd010d67ec20b9 100644 (file)
@@ -90,6 +90,7 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenzwave.* $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libopenzwave.pc $(1)/usr/lib/pkgconfig/
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libopenzwave.pc
 endef
 
 $(eval $(call BuildPackage,libopenzwave))