termux and bsd accomodations by Andrew
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / Makefile
index 1c10fc038597854189c91cdf92feb1babb4f21e1..9f5f8afd27e2375bde0fb22517ca91da5019b727 100644 (file)
@@ -133,6 +133,7 @@ OBJS := $(OVERLAYS) \
        $(OBJDIR)/filebaseulaw.o \
        $(OBJDIR)/filecr2.o \
        $(OBJDIR)/filedv.o \
+       $(OBJDIR)/filedpx.o \
        $(OBJDIR)/fileexr.o \
        $(OBJDIR)/fileffmpeg.o \
        $(OBJDIR)/fileflac.o \
@@ -435,9 +436,11 @@ LIBS := $(LIBRARIES)
 ifeq ($(WANT_CIN_3RDPARTY),no)
 LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil
 LIBS += -lswresample -lswscale
+PLATFORM = $(shell uname -s)
+ifneq (, $(filter $(PLATFORM), FreeBSD NetBSD))
 LIBS += -lintl -liconv
 LIBS += -lexecinfo
-
+endif
 LIBS += $(shared_libs)
 LIBS += $(system_libs)
 else
@@ -560,6 +563,7 @@ tags:
        ctags -R -h default --langmap=c:+.inc . ../guicast/ ../libzmpeg3 ../plugins ../thirdparty/ffmpeg-*
 
 $(OBJDIR)/fileexr.o:   BFLAGS:= -Wno-deprecated -std=c++11
+$(OBJDIR)/filedpx.o:   BFLAGS:= -Wno-deprecated -std=c++11
 $(OBJDIR)/sha1.o:      BFLAGS:= -O3
 $(OVERLAYS):           BFLAGS:= -Ofast -g0