From c6cec66936a9bd28e6a51990a0227dfd33c86ba8 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Fri, 1 Apr 2022 09:23:16 +0300
Subject: [PATCH 1/6] Attempt at freebsd/netbsd detection in cinelerra/Makefile

---
 cinelerra-5.1/cinelerra/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile
index 1d93305d..1503b6d4 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -435,8 +435,11 @@ LIBS := $(LIBRARIES)
 ifeq ($(WANT_CIN_3RDPARTY),no)
 LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil
 LIBS += -lswresample -lswscale
+PLATFORM = $(shell uname -s)
+ifeq ($(PLATFORM), FreeBSD) || ($(PLATFORM), NetBSD)
 LIBS += -lintl -liconv
 LIBS += -lexecinfo
+endif
 LIBS += `pkg-config --libs OpenEXR`
 LIBS += $(shared_libs)
 LIBS += $(system_libs)
-- 
2.35.1

