From 3d0f20ec71445c531e1dffd59b00a867ab1a2f41 Mon Sep 17 00:00:00 2001
From: Manuel Virgilio <real_virgil@yahoo.it>
Date: Wed, 2 Mar 2022 19:47:10 +0100
Subject: [PATCH 2/6] Add PatrickPalmer libdpx-0.5 with some OpenImageIO
 improvements

---
 cinelerra-5.1/configure.ac        | 7 +++++++
 cinelerra-5.1/thirdparty/Makefile | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index 147a69de..bb81c3cf 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -455,6 +455,12 @@ PKG_3RD([ffnvcodec],[auto],
   [ ],
   [ . ])
 
+PKG_3RD([libdpx],[auto],
+  [libdpx],
+  [ libdpx/libdpx.a ],
+  [ libdpx ])
+
+
 if test [ "$(uname -o)"] = "Android"  ; then
 
 PKG_3RD([libbthread],[auto],
@@ -968,6 +974,7 @@ PKG_PROVIDE([serd], [$WANT_LV2])
 PKG_PROVIDE([sord], [$WANT_LV2])
 PKG_PROVIDE([suil], [$WANT_LV2])
 PKG_PROVIDE([ffnvcodec], [$WANT_NV])
+PKG_PROVIDE([libdpx])
 
 if test "x$WANT_LV2" = "xyes"; then
   if test "x$HAVE_lv2" = "xyes" -a "x$BUILD_lilv" = "x0"; then
diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile
index fecbfd7d..0b0152e0 100644
--- a/cinelerra-5.1/thirdparty/Makefile
+++ b/cinelerra-5.1/thirdparty/Makefile
@@ -262,6 +262,7 @@ x264.cfg_params?= --enable-static --enable-pic
 x265.cfg_vars?=$(call cmake_config,source)
 x265.cfg_params?= -DENABLE_SHARED=no
 libvpx.cfg_params?= --enable-pic --disable-avx512 --enable-vp9-highbitdepth --disable-examples --disable-unit_tests
+libdpx.cfg_vars?= libtoolize; aclocal; autoconf; automake -a;
 
 DS:=$$$$$$$$
 pkg_cfg=$(call bld_path,$(1),usr/local/lib/pkgconfig):
@@ -375,6 +376,8 @@ $(call rules,$(call std-build,sratom, serd sord lv2))
 $(call rules,$(call std-build,lilv, lv2 sratom serd sord))
 $(call rules,$(call std-build,suil, lv2))
 $(call rules,$(call std-build,ffnvcodec))
+$(call rules,$(call std-build,libdpx))
+
 
 # specialize festival, multiple tarballs
 festival:
-- 
2.35.1

