From 24f2c18c95351e276b9ba5961a74371749d31e26 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 20 Nov 2025 17:02:28 +0100 Subject: [PATCH] libtiff: add HostBuild define Package spandsp3 in telephony feed require this package as an host tool for the tiffio.h header. Add all the bits and define to compile this as an Host tool to permit correct compilation of spandsp3 package. Signed-off-by: Christian Marangi --- libs/tiff/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libs/tiff/Makefile b/libs/tiff/Makefile index 390fcd68a7..0483ae7a43 100644 --- a/libs/tiff/Makefile +++ b/libs/tiff/Makefile @@ -20,6 +20,7 @@ PKG_LICENSE:=libtiff PKG_LICENSE_FILES:=LICENSE.md PKG_CPE_ID:=cpe:/a:libtiff:libtiff +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk @@ -46,6 +47,18 @@ $(call Package/tiff/Default) DEPENDS:=+libtiff +libstdcpp endef +CMAKE_HOST_OPTIONS += \ + -DCMAKE_REQUIRED_LIBRARIES="-lm" \ + -Dld-version-script=OFF \ + -Dold-jpeg=OFF \ + -Djbig=OFF \ + -Dlzma=OFF \ + -Dzstd=OFF \ + -Dwebp=OFF \ + -Djpeg12=OFF \ + -Dcxx=OFF \ + -Dlibdeflate=OFF + CMAKE_OPTIONS += \ -Dld-version-script=OFF \ -Dold-jpeg=OFF \ @@ -73,5 +86,6 @@ define Package/tiff-utils/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libtiff)) $(eval $(call BuildPackage,tiff-utils)) -- 2.30.2