annotate CloneChannel/Makefile @ 17:e9c503d896a6

flappyufo-0.230919-1_add_pkgbuild
author Przemyslaw <prymula76@outlook.com>
date Sat, 24 Feb 2024 17:47:35 +0100
parents 24d60bdea349
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
1 #!/usr/bin/make -f
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
2 # Makefile for DISTRHO Plugins #
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
3 # ---------------------------- #
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
4 # Created by falkTX
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
5 #
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
6
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
7 include dpf/Makefile.base.mk
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
8
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
9 all: dgl plugins gen
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
10
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
11 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
12
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
13 PREFIX ?= /usr/local
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
14 DESTDIR ?=
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
15
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
16 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
17 # Check for system-wide projectM
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
18
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
19 HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
20
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
21 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
22
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
23 ifneq ($(CROSS_COMPILING),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
24 CAN_GENERATE_TTL = true
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
25 else ifneq ($(EXE_WRAPPER),)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
26 CAN_GENERATE_TTL = true
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
27 endif
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
28
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
29 dgl:
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
30 ifeq ($(HAVE_CAIRO_OR_OPENGL),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
31 $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
32 ifeq ($(HAVE_OPENGL),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
33 $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl opengl3
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
34 endif
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
35 endif
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
36
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
37 plugins: dgl
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
38
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
39 $(MAKE) all -C plugins/CloneChannel
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
40
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
41 gen: plugins dpf/utils/lv2_ttl_generator
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
42 ifeq ($(CAN_GENERATE_TTL),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
43 @$(CURDIR)/dpf/utils/generate-ttl.sh
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
44 endif
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
45
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
46 dpf/utils/lv2_ttl_generator:
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
47 $(MAKE) -C dpf/utils/lv2-ttl-generator
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
48
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
49 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
50
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
51 clean:
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
52 rm -rf bin build
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
53
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
54 $(MAKE) clean -C dpf/dgl
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
55 $(MAKE) clean -C dpf/utils/lv2-ttl-generator
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
56
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
57
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
58 $(MAKE) clean -C plugins/CloneChannel
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
59
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
60 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
61
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
62 install:
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
63 install -d $(DESTDIR)$(PREFIX)/lib/ladspa/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
64 install -d $(DESTDIR)$(PREFIX)/lib/dssi/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
65 install -d $(DESTDIR)$(PREFIX)/lib/lv2/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
66 install -d $(DESTDIR)$(PREFIX)/lib/vst/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
67 install -d $(DESTDIR)$(PREFIX)/lib/vst3/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
68 install -d $(DESTDIR)$(PREFIX)/lib/clap/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
69 install -d $(DESTDIR)$(PREFIX)/bin/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
70
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
71 install -m 644 bin/*-ladspa.* $(DESTDIR)$(PREFIX)/lib/ladspa/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
72 install -m 644 bin/*-dssi.* $(DESTDIR)$(PREFIX)/lib/dssi/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
73 ifneq ($(MACOS),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
74 install -m 644 bin/*-vst.* $(DESTDIR)$(PREFIX)/lib/vst/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
75 endif
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
76
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
77 ifeq ($(HAVE_CAIRO_OR_OPENGL),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
78 ifeq ($(HAVE_LIBLO),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
79 cp -r bin/*-dssi $(DESTDIR)$(PREFIX)/lib/dssi/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
80 endif # HAVE_LIBLO
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
81 endif # HAVE_CAIRO_OR_OPENGL
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
82 cp -rL bin/*.lv2 $(DESTDIR)$(PREFIX)/lib/lv2/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
83 ifeq ($(HAVE_OPENGL),true)
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
84 cp -rL bin/*.vst $(DESTDIR)$(PREFIX)/lib/vst/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
85 endif # HAVE_OPENGL
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
86 cp -rL bin/*.vst3 $(DESTDIR)$(PREFIX)/lib/vst3/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
87 cp -rL bin/*.clap $(DESTDIR)$(PREFIX)/lib/clap/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
88
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
89 install -m 755 bin/CLoneChannel$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
90
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
91
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
92 # --------------------------------------------------------------
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
93
24d60bdea349 ClonneChannel
prymula <prymula76@outlook.com>
parents:
diff changeset
94 .PHONY: plugins