From ffa8d9973c811297f2d083bfc034af7a99d34a81 Mon Sep 17 00:00:00 2001
From: Good Guy <good1.2guy@gmail.com>
Date: Sat, 5 Nov 2022 18:24:30 -0600
Subject: [PATCH] Credit Andrew for build mods and cineform format

---
 cinelerra-5.1/blds/termux_dyn.bld      |  2 +-
 cinelerra-5.1/cinelerra/Makefile       | 14 +++++++-------
 cinelerra-5.1/ffmpeg/video/cineform.qt |  3 +++
 3 files changed, 11 insertions(+), 8 deletions(-)
 create mode 100644 cinelerra-5.1/ffmpeg/video/cineform.qt

diff --git a/cinelerra-5.1/blds/termux_dyn.bld b/cinelerra-5.1/blds/termux_dyn.bld
index 252d3192..ae099e62 100755
--- a/cinelerra-5.1/blds/termux_dyn.bld
+++ b/cinelerra-5.1/blds/termux_dyn.bld
@@ -6,4 +6,4 @@ export CFLAGS
     --without-dv \
     --without-firewire --without-vaapi \
     --without-vdpau --without-libdpx \
-    --without-gl
+    --without-gl --with-clang
diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile
index d9ff3b93..e177049b 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -441,13 +441,13 @@ ifneq (, $(filter $(PLATFORM), FreeBSD NetBSD))
 LIBS += -lintl -liconv
 LIBS += -lexecinfo
 endif
-LIBS += `pkg-config --libs OpenEXR`
-LIBS += `pkg-config --libs flac`
-LIBS += `pkg-config --libs libjpeg`
-LIBS += `pkg-config --libs uuid`
-LIBS += `pkg-config --libs theora`
-LIBS += `pkg-config --libs vorbis`
-LIBS += `pkg-config --libs sndfile`
+LIBS += `pkg-config --libs OpenEXR 2>/dev/null`
+LIBS += `pkg-config --libs flac 2>/dev/null`
+LIBS += `pkg-config --libs libjpeg 2>/dev/null`
+LIBS += `pkg-config --libs uuid 2>/dev/null`
+LIBS += `pkg-config --libs theora 2>/dev/null`
+LIBS += `pkg-config --libs vorbis 2>/dev/null`
+LIBS += `pkg-config --libs sndfile 2>/dev/null`
 ifeq ($(WANT_LIBZMPEG),yes)
 LIBS += -la52 -ltwolame -lmp3lame
 endif
diff --git a/cinelerra-5.1/ffmpeg/video/cineform.qt b/cinelerra-5.1/ffmpeg/video/cineform.qt
new file mode 100644
index 00000000..c3183194
--- /dev/null
+++ b/cinelerra-5.1/ffmpeg/video/cineform.qt
@@ -0,0 +1,3 @@
+mov cfhd
+quality=medium
+cin_pix_fmt=yuv422p10
-- 
2.26.2