X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2FMakefile;h=e293d3dd0cb26950581b710e8f943d9940732a9e;hb=12dcdddb7a1e8b7b34f128aa07dde1e11d1dbb44;hp=65df2f4a391699b9b6bfb1110fb8948c6487ccfe;hpb=afc97a7cc7560ff3220da1f6f02e9bc372755e86;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile index 65df2f4a..e293d3dd 100644 --- a/cinelerra-5.1/cinelerra/Makefile +++ b/cinelerra-5.1/cinelerra/Makefile @@ -434,11 +434,33 @@ endif LIBS := $(LIBRARIES) ifeq ($(WANT_CIN_3RDPARTY),no) -LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil +LIBS += -lavfilter -lavformat -lavcodec -lavutil LIBS += -lswresample -lswscale +PLATFORM = $(shell uname -s) +ifneq (, $(filter $(PLATFORM), FreeBSD NetBSD)) LIBS += -lintl -liconv LIBS += -lexecinfo - +endif +LIBS += `pkg-config --libs OpenEXR 2>/dev/null` +LIBS += `pkg-config --libs flac 2>/dev/null` +LIBS += `pkg-config --libs libjpeg 2>/dev/null` +LIBS += `pkg-config --libs uuid 2>/dev/null` +LIBS += `pkg-config --libs theora 2>/dev/null` +LIBS += `pkg-config --libs vorbis 2>/dev/null` +LIBS += `pkg-config --libs sndfile 2>/dev/null` +LIBS += `pkg-config --libs x11 2>/dev/null` +ifeq ($(WANT_DV),yes) +LIBS += `pkg-config --libs libiec61883 2>/dev/null` +LIBS += `pkg-config --libs libdv 2>/dev/null` +LIBS += `pkg-config --libs libavc1394 2>/dev/null` +endif +ifeq ($(WANT_LIBZMPEG),yes) +LIBS += -la52 -ltwolame -lmp3lame +endif +LIBS += -lgif -ltheoraenc -ltheoradec -lvorbisfile -lvorbisenc -ltiff +ifeq ($(shell uname -o), Android) +LIBS += -landroid-shmem -liconv ../libbthread-master/jpt.a +endif LIBS += $(shared_libs) LIBS += $(system_libs) else @@ -467,6 +489,7 @@ LV2OBJS = \ $(OBJDIR)/pluginlv2ui.o \ $(OBJDIR)/pluginlv2config.o \ $(OBJDIR)/forkbase.o +LIBS += `pkg-config --libs lilv-0` endif CFLAGS := \ @@ -572,6 +595,7 @@ $(OBJDIR)/%.o: %.C ifneq ($(WANT_LV2),no) GTK2_INCS := `pkg-config --cflags gtk+-2.0` -Wno-deprecated-declarations GTK2_LIBS := `pkg-config --libs gtk+-2.0` +LV2_LIBS := `pkg-config --libs lilv-0` `pkg-config --libs suil-0` $(OBJDIR)/pluginlv2ui.o: pluginlv2ui.C $(OBJDIR)/lv2ui.o: lv2ui.C @@ -580,7 +604,7 @@ $(OBJDIR)/pluginlv2ui.o $(OBJDIR)/lv2ui.o: $(OBJDIR)/lv2ui: $(LV2OBJS) @echo $(CXX) \`cat $(OBJDIR)/c_flags\` $^ -o $@ - @$(CXX) `cat $(OBJDIR)/c_flags` $^ -o $@ $(LIBS) $(GTK2_LIBS) + @$(CXX) `cat $(OBJDIR)/c_flags` $^ -o $@ $(LIBS) $(LV2_LIBS) $(GTK2_LIBS) $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(LV2UI) $(LV2UI).debuginfo) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(LV2UI))