Credit Andrew - BSD fixes + a little more
authorGood Guy <good1.2guy@gmail.com>
Thu, 2 Feb 2023 22:51:36 +0000 (15:51 -0700)
committerGood Guy <good1.2guy@gmail.com>
Thu, 2 Feb 2023 22:51:36 +0000 (15:51 -0700)
cinelerra-5.1/cinelerra/interfaceprefs.C
cinelerra-5.1/configure.ac
cinelerra-5.1/guicast/Makefile
cinelerra-5.1/plugins/Makefile
cinelerra-5.1/thirdparty/Makefile
cinelerra-5.1/thirdparty/src/tiff-4.4.0.patch2 [new file with mode: 0644]

index 8b67d13356752e18a1a65d138498e19d8dd60d2a..bea12a4a047a4d38c44de2b264b42e99a2ff98a9 100644 (file)
@@ -112,7 +112,7 @@ void InterfacePrefs::create_objects()
        text->create_objects();
        text->context_help_set_keyword("Using the Drag Handle with Trim");
        y += ys30;
-       add_subwindow(title = new BC_Title(x, y, _("MMB BT.2:")));
+       add_subwindow(title = new BC_Title(x, y, _("MMB Bt.2:")));
        title->context_help_set_keyword("Using the Drag Handle with Trim");
        add_subwindow(text = new ViewBehaviourText(x1,
                y - ys5,
index 8839af996dfc05fa7aed9d255db0304aac951f90..eb190103616ffccfff0d788af709917e7f25af1b 100644 (file)
@@ -900,6 +900,7 @@ EXROStream() : Imf::OStream("mypath") {} };
     SHARED_LIBS+=" $LIBS"
     CFG_CFLAGS+=" -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR"
     CFG_CFLAGS+=" $(pkg-config --cflags OpenEXR)"
+    CFG_CFLAGS+=" $(pkg-config --cflags Imath)"
   fi
   CFG_CFLAGS+=" $(pkg-config --cflags OpenEXR)"
  fi
index 32ef35828010c44d25648a3c33357d204824effd..423ba100d91665179cab9bbe76e6a1e70e8fb933 100644 (file)
@@ -121,11 +121,18 @@ $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
 $(shell echo $(OBJS) > $(OBJDIR)/objs)
 
 all: $(OUTPUT) $(UTILS)
-ifeq ($(uname -s), FreeBSD)
-python = $(shell find /usrlocal/bin -name python3\* | head -n 1)
-else
-python = `which python`
+PLATFORM = $(uname -s)
+ifneq ($(PLATFORM), FreeBSD)
+python = $(shell find /usr/local/bin -name python3\* | head -n 1)
 endif
+ifneq ($(PLATFORM), Linux)
+python = $(shell which python)
+endif
+
+ifeq ($(python),)
+python += $(shell which python3.8)
+endif
+
 
 $(BCXFER):     bccmdl.py bcxfer.C bcxfer.h
        $(python) < ./bccmdl.py
index 9c3a6a30d68868ee6120b4324db53fc78d4edae7..40d50c129a8b0739bb96a0acb9f36989e7ac5497 100644 (file)
@@ -171,18 +171,14 @@ DIRS = $(OPENCV_OBJS) \
        theme_cakewalk \
 
 PLATFORM = $(shell uname)
-ifneq ($(PLATFORM), NetBSD)
+ifeq ($(PLATFORM), NetBSD)
+DIRS += theme_blond theme_blue
+else ifeq ($(PLATFORM), FreeBSD)
+DIRS += theme_blond theme_blue
+else ifeq ($(PLATFORM), Linux)
 DIRS += cdripper theme_blond theme_blue
 endif
 
-ifneq ($(PLATFORM), FreeBSD)
-DIRS += theme_blond theme_blue 
-endif
-
-ifeq ($(PLATFORM), Linux)
-DIRS += cdripper
-endif
-
 # not maintained
 #      motion-cv \
 #      motion-hv \
index 06d641106e3c8a4e033e5d62d820e3e870288b3d..1568b615fa99fdd867319dd4da087b0dd130e86d 100644 (file)
@@ -244,7 +244,7 @@ libtheora.cfg_params?= --disable-examples --disable-spec --enable-shared=no
 libuuid.cfg_vars?= autoreconf -ifv -I m4 && automake -caf;
 libuuid.cfg_params?=--enable-shared=no
 libvorbis.cfg_params?= --disable-oggtest --enable-shared=no
-openjpeg.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF
+openjpeg.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_CODEC:BOOL=OFF
 openjpeg.cfg_vars?=$(call cmake_config,.)
 openjpeg.mak_params?= ; cd $(call bld_path,openjpeg,src/lib/openjp2); ln -sf . openjpeg-2.1
 opencv.cfg_vars?=$(call cmake_config,.)
diff --git a/cinelerra-5.1/thirdparty/src/tiff-4.4.0.patch2 b/cinelerra-5.1/thirdparty/src/tiff-4.4.0.patch2
new file mode 100644 (file)
index 0000000..addd279
--- /dev/null
@@ -0,0 +1,12 @@
+--- ./configure.ac.orig        2023-01-30 20:35:40.839847499 +0300
++++ ./configure.ac     2023-01-30 20:48:27.751778042 +0300
+@@ -838,7 +838,8 @@
+ if test "x$enable_webp" != "xno" ; then
+   if test "x$with_webp_lib_dir" != "x" ; then
+-    LDFLAGS="-L$with_webp_lib_dir $LDFLAGS"
++    LIBS="-lpthread $LIBS"
++    LDFLAGS="-L$with_webp_lib_dir $LDFLAGS "
+   fi
+   
+   AC_CHECK_LIB(webp, WebPDecode, [webp_lib=yes], [webp_lib=no],)