From d0e2ddad5853cdad2bb37f649806a93696db96e2 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Sat, 12 Apr 2025 17:37:53 +0300
Subject: [PATCH 12/12] tiff 4.7.0 patches renamed from 4.6.0t patches

---
 cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch1 | 11 +++++++++++
 cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch2 | 10 ++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch1
 create mode 100644 cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch2

diff --git a/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch1 b/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch1
new file mode 100644
index 00000000..29246abd
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch1
@@ -0,0 +1,11 @@
+--- ./Makefile.am
++++ ./Makefile.am
+@@ -60,7 +60,7 @@
+ 	rm -rf $(distdir)/_build/cmake
+ 	rm -rf $(distdir)/_inst/cmake
+ 
+-SUBDIRS = port libtiff tools build contrib test doc
++SUBDIRS = port libtiff build
+ 
+ 
+ NEW_LIBTIFF_RELEASE_DATE=$(shell date +"%Y%m%d")
diff --git a/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch2 b/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch2
new file mode 100644
index 00000000..5067d8db
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/tiff-4.7.0.patch2
@@ -0,0 +1,10 @@
+--- ./configure.ac
++++ ./configure.ac
+@@ -873,6 +873,7 @@
+ if test "x$enable_webp" != "xno" ; then
+ 
+   if test "x$with_webp_lib_dir" != "x" ; then
++    LIBS="-lpthread $LIBS"
+     LDFLAGS="-L$with_webp_lib_dir $LDFLAGS"
+   fi
+   
-- 
2.49.0

