Mercurial > hg > pub > prymula > com
diff DPF-Prymula-audioplugins/Makefile @ 3:84e66ea83026
DPF-Prymula-audioplugins-0.231015-2
author | prymula <prymula76@outlook.com> |
---|---|
date | Mon, 16 Oct 2023 21:53:34 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DPF-Prymula-audioplugins/Makefile Mon Oct 16 21:53:34 2023 +0200 @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# Makefile for DISTRHO Plugins # +# ---------------------------- # +# Created by falkTX +# + +include dpf/Makefile.base.mk + +all: dgl plugins gen + +# -------------------------------------------------------------- + +PREFIX ?= /usr/local +DESTDIR ?= + +# -------------------------------------------------------------- +# Check for system-wide projectM + +HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true) + +# -------------------------------------------------------------- + +ifneq ($(CROSS_COMPILING),true) +CAN_GENERATE_TTL = true +else ifneq ($(EXE_WRAPPER),) +CAN_GENERATE_TTL = true +endif + +dgl: +ifeq ($(HAVE_CAIRO_OR_OPENGL),true) + $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl +ifeq ($(HAVE_OPENGL),true) + $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl opengl3 +endif +endif + +plugins: dgl + + $(MAKE) all -C plugins/CloneChannel + +gen: plugins dpf/utils/lv2_ttl_generator +ifeq ($(CAN_GENERATE_TTL),true) + @$(CURDIR)/dpf/utils/generate-ttl.sh +endif + +dpf/utils/lv2_ttl_generator: + $(MAKE) -C dpf/utils/lv2-ttl-generator + +# -------------------------------------------------------------- + +clean: + rm -rf bin build + + $(MAKE) clean -C dpf/dgl + $(MAKE) clean -C dpf/utils/lv2-ttl-generator + + + $(MAKE) clean -C plugins/CloneChannel + +# -------------------------------------------------------------- + +install: + install -d $(DESTDIR)$(PREFIX)/lib/ladspa/ + install -d $(DESTDIR)$(PREFIX)/lib/dssi/ + install -d $(DESTDIR)$(PREFIX)/lib/lv2/ + install -d $(DESTDIR)$(PREFIX)/lib/vst/ + install -d $(DESTDIR)$(PREFIX)/lib/vst3/ + install -d $(DESTDIR)$(PREFIX)/lib/clap/ + install -d $(DESTDIR)$(PREFIX)/bin/ + + install -m 644 bin/*-ladspa.* $(DESTDIR)$(PREFIX)/lib/ladspa/ + install -m 644 bin/*-dssi.* $(DESTDIR)$(PREFIX)/lib/dssi/ +ifneq ($(MACOS),true) + install -m 644 bin/*-vst.* $(DESTDIR)$(PREFIX)/lib/vst/ +endif + +ifeq ($(HAVE_CAIRO_OR_OPENGL),true) +ifeq ($(HAVE_LIBLO),true) + cp -r bin/*-dssi $(DESTDIR)$(PREFIX)/lib/dssi/ +endif # HAVE_LIBLO +endif # HAVE_CAIRO_OR_OPENGL + cp -rL bin/*.lv2 $(DESTDIR)$(PREFIX)/lib/lv2/ +ifeq ($(HAVE_OPENGL),true) + cp -rL bin/*.vst $(DESTDIR)$(PREFIX)/lib/vst/ +endif # HAVE_OPENGL + cp -rL bin/*.vst3 $(DESTDIR)$(PREFIX)/lib/vst3/ + cp -rL bin/*.clap $(DESTDIR)$(PREFIX)/lib/clap/ + + install -m 755 bin/CLoneChannel$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/ + + +# -------------------------------------------------------------- + +.PHONY: plugins