From b60317c7317d77bba62e71a3d2a2fe2b56ae7276 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Jan 2022 22:31:06 +0000 Subject: [PATCH] Do not ship extra resources if using system-wide projectM Signed-off-by: falkTX --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 837ceb0..af39162 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,11 @@ all: dgl plugins resources gen PREFIX ?= /usr/local DESTDIR ?= +# -------------------------------------------------------------- +# Check for system-wide projectM + +HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true) + # -------------------------------------------------------------- ifneq ($(CROSS_COMPILING),true) @@ -65,6 +70,7 @@ endif # HAVE_OPENGL ifeq ($(HAVE_OPENGL),true) resources: gen +ifneq ($(HAVE_PROJECTM),true) # LV2 fonts install -d bin/ProM.lv2/resources/fonts ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.lv2/resources/fonts/ @@ -94,6 +100,7 @@ endif # VST3 presets install -d bin/ProM.vst3/Contents/Resources/presets ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst3/Contents/Resources/presets/ +endif else resources: endif