From: Christian Marangi Date: Thu, 20 Nov 2025 16:02:28 +0000 (+0100) Subject: libtiff: add HostBuild define X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=24f2c18c95351e276b9ba5961a74371749d31e26;p=feed%2Fpackages.git 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 --- 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))