From efa2fb5c1ee4029b45906a8162e46d0fe1165c97 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Mon, 30 Jan 2023 10:13:49 +0000
Subject: [PATCH 01/10] More frebbsd fixes

---
 cinelerra-5.1/guicast/Makefile |  4 ++--
 cinelerra-5.1/plugins/Makefile | 14 +++++---------
 2 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/cinelerra-5.1/guicast/Makefile b/cinelerra-5.1/guicast/Makefile
index 32ef3582..6d1b149d 100644
--- a/cinelerra-5.1/guicast/Makefile
+++ b/cinelerra-5.1/guicast/Makefile
@@ -121,8 +121,8 @@ $(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)
+ifneq ($(uname -s), FreeBSD)
+python = $(shell find /usr/local/bin -name python3\* | head -n 1)
 else
 python = `which python`
 endif
diff --git a/cinelerra-5.1/plugins/Makefile b/cinelerra-5.1/plugins/Makefile
index 9c3a6a30..39880c90 100644
--- a/cinelerra-5.1/plugins/Makefile
+++ b/cinelerra-5.1/plugins/Makefile
@@ -171,15 +171,11 @@ DIRS = $(OPENCV_OBJS) \
 	theme_cakewalk \
 
 PLATFORM = $(shell uname)
-ifneq ($(PLATFORM), NetBSD)
-DIRS += cdripper theme_blond theme_blue
-endif
-
-ifneq ($(PLATFORM), FreeBSD)
-DIRS += theme_blond theme_blue 
-endif
-
-ifeq ($(PLATFORM), Linux)
+ifeq ($(PLATFORM), NetBSD)
+DIRS += cdrippr theme_blond theme_blue
+else ifneq ($(PLATFORM), FreeBSD)
+DIRS += theme_blond theme_blue
+else ifeq ($(PLATFORM), Linux)
 DIRS += cdripper
 endif
 
-- 
2.30.4

