libxml2: install cmake module 4981/head
authorStijn Tintel <stijn@linux-ipv6.be>
Fri, 20 Oct 2017 14:46:51 +0000 (17:46 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 20 Oct 2017 14:46:51 +0000 (17:46 +0300)
Since version 2.9.2, libxml2 provides its own cmake module. Install it
to avoid packages built with cmake and requiring libxml2 to fall back to
cmake's FindLibXml2 module, which seems to detect host libxml2 instead
of the one in staging_dir.

Fixes #4917.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
libs/libxml2/Makefile

index f33309643f739a3d5a8cd669a5e50d8bdd104524..bd1e6a1bccf12b10edc8b8ccbf646752aaf0ecfa 100644 (file)
@@ -118,6 +118,10 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} $(1)/usr/lib/
 
+       $(INSTALL_DIR) $(1)/usr/lib/cmake/libxml2
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/libxml2/libxml2-config.cmake \
+               $(1)/usr/lib/cmake/libxml2
+
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/