From 337cd6223cb89fbc2fcdde70093e048107d6c473 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Sun, 3 Apr 2022 02:49:58 +0300
Subject: [PATCH 52/71] Dynamic termux + libzmpeg

---
 cinelerra-5.1/cinelerra/Makefile | 3 +++
 cinelerra-5.1/termux_dyn.sh      | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile
index b559e4f5..76e0a9ba 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -447,6 +447,9 @@ LIBS += `pkg-config --libs uuid`
 LIBS += `pkg-config --libs theora`
 LIBS += `pkg-config --libs vorbis`
 LIBS += `pkg-config --libs sndfile`
+ifeq ($(WANT_LIBZMPEG),yes)
+LIBS += -la52 -ltwolame -lmp3lame
+endif
 LIBS += -lgif -l:libtheora.a -l:libvorbis.a -ltiff 
 ifeq ($(shell uname -o), Android)
 LIBS += -landroid-shmem -liconv jpt.a
diff --git a/cinelerra-5.1/termux_dyn.sh b/cinelerra-5.1/termux_dyn.sh
index 5e5d35b8..b557686c 100755
--- a/cinelerra-5.1/termux_dyn.sh
+++ b/cinelerra-5.1/termux_dyn.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 ./configure --with-single-user --without-thirdparty \
-    --without-dvb --without-video4linux2 --without-dv \
-    --without-firewire --without-libzmpeg --without-vaapi \
+    --without-dv \
+    --without-firewire  --without-vaapi \
     --without-vdpau --without-lv2 --without-openexr --without-ogg \
     --without-gl
-- 
2.35.1

