File carla-systemlibs.patch of Package carla

diff -up carla-1.9.7+git20171111.5b97ec1e/source/backend/Makefile.orig carla-1.9.7+git20171111.5b97ec1e/source/backend/Makefile
--- carla-1.9.7+git20171111.5b97ec1e/source/backend/Makefile.orig	2017-11-11 19:38:28.000000000 +0100
+++ carla-1.9.7+git20171111.5b97ec1e/source/backend/Makefile	2017-11-16 12:29:29.530325818 +0100
@@ -63,8 +63,13 @@ STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LI
 STANDALONE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
 STANDALONE_LINK_FLAGS += $(X11_LIBS)
 
+STANDALONE_LINK_FLAGS += $(FLAC_LIBS)
+STANDALONE_LINK_FLAGS += $(VORBIS_LIBS)
+
 UTILS_LINK_FLAGS += $(LILV_LIBS)
 UTILS_LINK_FLAGS += $(WATER_LIBS)
+UTILS_LINK_FLAGS += $(FLAC_LIBS)
+UTILS_LINK_FLAGS += $(VORBIS_LIBS)
 
 ifeq ($(HAVE_X11),true)
 UTILS_LINK_FLAGS += $(X11_LIBS)
diff -up carla-1.9.7+git20171111.5b97ec1e/source/bridges-plugin/Makefile.orig carla-1.9.7+git20171111.5b97ec1e/source/bridges-plugin/Makefile
--- carla-1.9.7+git20171111.5b97ec1e/source/bridges-plugin/Makefile.orig	2017-11-11 19:38:28.000000000 +0100
+++ carla-1.9.7+git20171111.5b97ec1e/source/bridges-plugin/Makefile	2017-11-16 12:32:23.886167734 +0100
@@ -94,6 +94,11 @@ NATIVE_LINK_FLAGS  += $(LINUXSAMPLER_LIB
 NATIVE_LINK_FLAGS  += $(FFMPEG_LIBS)
 NATIVE_LINK_FLAGS  += $(SNDFILE_LIBS)
 
+NATIVE_BUILD_FLAGS += $(FLAC_FLAGS)
+NATIVE_BUILD_FLAGS += $(VORBIS_FLAGS)
+NATIVE_LINK_FLAGS  += $(FLAC_LIBS)
+NATIVE_LINK_FLAGS  += $(VORBIS_LIBS)
+
 LIBS_native        += $(MODULEDIR)/audio_decoder.a
 LIBS_native        += $(MODULEDIR)/native-plugins.base.a
 
diff -up carla-1.9.7+git20171111.5b97ec1e/source/bridges-ui/Makefile.orig carla-1.9.7+git20171111.5b97ec1e/source/bridges-ui/Makefile
--- carla-1.9.7+git20171111.5b97ec1e/source/bridges-ui/Makefile.orig	2017-11-11 19:38:28.000000000 +0100
+++ carla-1.9.7+git20171111.5b97ec1e/source/bridges-ui/Makefile	2017-11-16 12:37:12.317906867 +0100
@@ -41,10 +41,10 @@ BUILD_QT4_FLAGS     = $(BUILD_CXX_FLAGS)
 LINK_QT4_FLAGS      = $(LINK_FLAGS) $(shell pkg-config --libs QtCore QtGui) -ldl
 
 BUILD_QT5_FLAGS     = $(BUILD_CXX_FLAGS) -DBRIDGE_QT5 $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets) -I$(OBJDIR) -I$(CWD)/theme
-LINK_QT5_FLAGS      = $(LINK_FLAGS) $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets) -ldl
+LINK_QT5_FLAGS      = $(LINK_FLAGS) $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets) -ldl $(FLAC_LIBS) $(VORBIS_LIBS)
 
 BUILD_X11_FLAGS     = $(BUILD_CXX_FLAGS) -DBRIDGE_X11 $(X11_FLAGS)
-LINK_X11_FLAGS      = $(LINK_FLAGS) $(X11_LIBS) -ldl
+LINK_X11_FLAGS      = $(LINK_FLAGS) $(X11_LIBS) -ldl $(FLAC_LIBS) $(VORBIS_LIBS)
 
 BUILD_COCOA_FLAGS   = $(BUILD_CXX_FLAGS) -DBRIDGE_COCOA -ObjC++
 LINK_COCOA_FLAGS    = $(LINK_FLAGS) -framework Cocoa -framework IOKit -framework QuartzCore -ldl
@@ -54,8 +54,11 @@ LINK_WINDOWS_FLAGS  = $(LINK_FLAGS) -sta
 
 ifeq ($(LINUX),true)
 ifeq ($(HAVE_X11),true)
+LINK_GTK2_FLAGS += $(FLAC_LIBS) $(VORBIS_LIBS)
 LINK_GTK2_FLAGS += -lX11
+LINK_GTK3_FLAGS += $(FLAC_LIBS) $(VORBIS_LIBS)
 LINK_GTK3_FLAGS += -lX11
+LINK_QT4_FLAGS  += $(FLAC_LIBS) $(VORBIS_LIBS)
 LINK_QT4_FLAGS  += -lX11
 endif
 endif
diff -up carla-1.9.7+git20171111.5b97ec1e/source/Makefile.mk.orig carla-1.9.7+git20171111.5b97ec1e/source/Makefile.mk
--- carla-1.9.7+git20171111.5b97ec1e/source/Makefile.mk.orig	2017-11-11 19:38:28.000000000 +0100
+++ carla-1.9.7+git20171111.5b97ec1e/source/Makefile.mk	2017-11-16 12:51:31.169134413 +0100
@@ -346,6 +346,14 @@ LINUXSAMPLER_LIBS += -lws2_32
 endif
 endif
 
+FLAC_FLAGS  = $(shell pkg-config --cflags flac)
+FLAC_LIBS   = $(shell pkg-config --libs flac)
+BASE_FLAGS += $(FLAC_FLAGS)
+
+VORBIS_FLAGS  = $(shell pkg-config --cflags vorbis vorbisfile vorbisenc ogg)
+VORBIS_LIBS   = $(shell pkg-config --libs   vorbis vorbisfile vorbisenc ogg)
+BASE_FLAGS += $(VORBIS_FLAGS)
+
 ifeq ($(HAVE_SNDFILE),true)
 SNDFILE_FLAGS = $(shell pkg-config --cflags sndfile)
 SNDFILE_LIBS  = $(shell pkg-config --libs sndfile)
diff -up carla-1.9.7+git20171111.5b97ec1e/source/plugin/Makefile.orig carla-1.9.7+git20171111.5b97ec1e/source/plugin/Makefile
--- carla-1.9.7+git20171111.5b97ec1e/source/plugin/Makefile.orig	2017-11-11 19:38:28.000000000 +0100
+++ carla-1.9.7+git20171111.5b97ec1e/source/plugin/Makefile	2017-11-16 12:49:04.341266050 +0100
@@ -81,6 +81,9 @@ LINK_FLAGS += $(LINUXSAMPLER_LIBS)
 LINK_FLAGS += $(MAGIC_LIBS)
 LINK_FLAGS += $(X11_LIBS)
 
+LINK_FLAGS += $(FLAC_LIBS)
+LINK_FLAGS += $(VORBIS_LIBS)
+ 
 # ----------------------------------------------------------------------------------------------------------------------------
 
 TARGETS = \
openSUSE Build Service is sponsored by