tiff: install headers of the c++ bindings
authorSebastian Kemper <redacted>
Sun, 25 Feb 2018 19:06:02 +0000 (20:06 +0100)
committerSebastian Kemper <redacted>
Sun, 25 Feb 2018 19:06:06 +0000 (20:06 +0100)
Make sure that the c++ headers get installed to the staging directory
when libtiffxx was selected/built.

Signed-off-by: Sebastian Kemper <redacted>
libs/tiff/Makefile

index 54e60309140ea5a1de2d4340acd09582b0e79668..b666e0a0a60014eb560b7ed8ab5655ae8b2c8ecf 100644 (file)
@@ -74,10 +74,15 @@ CONFIGURE_ARGS += \
        --disable-jbig \
        --without-x
 
+define Build/InstallDev/hxx
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.hxx $(1)/usr/include/
+endef
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/{lib,include}
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+       $(if $(CONFIG_PACKAGE_libtiffxx), $(call Build/InstallDev/hxx,$(1)))
 endef
 
 define Package/libtiff/install
git clone https://git.99rst.org/PROJECT