diff --git a/source/Makefile.mk b/source/Makefile.mk index 6b3e2257a..15962f099 100644 --- a/source/Makefile.mk +++ b/source/Makefile.mk @@ -368,6 +368,7 @@ ifneq ($(WIN32),true) ifeq ($(shell $(PKG_CONFIG) --exists libmagic && echo true),true) HAVE_LIBMAGIC = true +HAVE_LIBMAGICPKG = true else # old libmagic versions don't have a pkg-config file, so we need to call the compiler to test it CFLAGS_WITHOUT_ARCH = $(subst -arch arm64,,$(CFLAGS)) @@ -555,7 +556,12 @@ LIBLO_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags liblo) LIBLO_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs liblo) endif -ifeq ($(HAVE_LIBMAGIC),true) +ifeq ($(HAVE_LIBMAGICPKG),true) +MAGIC_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags libmagic) +# this is missing in upstream pkg-config +MAGIC_FLAGS += -I$(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --variable=includedir libmagic) +MAGIC_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs libmagic) +else ifeq ($(HAVE_LIBMAGIC),true) MAGIC_LIBS += -lmagic ifeq ($(LINUX_OR_MACOS),true) MAGIC_LIBS += -lz diff --git a/source/backend/Makefile b/source/backend/Makefile index 003e6e050..f1305439f 100644 --- a/source/backend/Makefile +++ b/source/backend/Makefile @@ -18,6 +18,10 @@ TARGETS = \ # --------------------------------------------------------------------------------------------------------------------- +BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS) + +# --------------------------------------------------------------------------------------------------------------------- + STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a diff --git a/source/backend/engine/Makefile b/source/backend/engine/Makefile index 00c3ffb1b..75bd0fb79 100644 --- a/source/backend/engine/Makefile +++ b/source/backend/engine/Makefile @@ -14,6 +14,8 @@ BUILD_CXX_FLAGS += -Wno-undef endif endif +BUILD_CXX_FLAGS += $(MAGIC_FLAGS) + # --------------------------------------------------------------------------------------------------------------------- OBJS = \ diff --git a/source/backend/plugin/Makefile b/source/backend/plugin/Makefile index 8c147ef4b..6a298cdff 100644 --- a/source/backend/plugin/Makefile +++ b/source/backend/plugin/Makefile @@ -14,6 +14,8 @@ BUILD_CXX_FLAGS += -Wno-undef endif endif +BUILD_CXX_FLAGS += $(MAGIC_FLAGS) + # --------------------------------------------------------------------------------------------------------------------- OBJS = \ diff --git a/source/utils/JucePluginWindow.hpp b/source/utils/JucePluginWindow.hpp index c83ddb3e8..7c87e4c23 100644 --- a/source/utils/JucePluginWindow.hpp +++ b/source/utils/JucePluginWindow.hpp @@ -450,7 +450,7 @@ public: v3_cpp_obj(fVst3View)->on_focus (fVst3View, true); } - void focusLost (const FocusChangeType cause) + void focusLost (const FocusChangeType cause) override { if (fVst3View != nullptr) v3_cpp_obj(fVst3View)->on_focus (fVst3View, false);