From f006e5080e6a5f2da18784b096bf3da4c1846734 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Fri, 1 Apr 2022 09:23:16 +0300
Subject: [PATCH 43/66] 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 a0e08d5d..7458d1a2 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -436,8 +436,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

