forked from DISTRHO/DPF-Plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
211 lines (171 loc) · 6.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#!/usr/bin/make -f
# Makefile for DISTRHO Plugins #
# ---------------------------- #
# Created by falkTX
#
include dpf/Makefile.base.mk
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)
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
# Kars
$(MAKE) all -C plugins/Kars
# Mini-Series
$(MAKE) all -C plugins/3BandEQ
$(MAKE) all -C plugins/3BandSplitter
$(MAKE) all -C plugins/PingPongPan
# ndc-Plugs
$(MAKE) all -C plugins/AmplitudeImposer
$(MAKE) all -C plugins/CycleShifter
$(MAKE) all -C plugins/SoulForce
# MVerb
$(MAKE) all -C plugins/MVerb
# Nekobi
$(MAKE) all -C plugins/Nekobi
# Max-Gen stuff
$(MAKE) all -C plugins/bitcrush
$(MAKE) all -C plugins/freeverb
$(MAKE) all -C plugins/gigaverb
$(MAKE) all -C plugins/pitchshift
ifeq ($(HAVE_OPENGL),true)
# glBars (needs OpenGL)
$(MAKE) all -C plugins/glBars
# ProM (needs OpenGL, ProjectM can be from system or vendored)
$(MAKE) all -C plugins/ProM
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/
# LV2 presets
install -d bin/ProM.lv2/resources/presets
ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.lv2/resources/presets/
ifeq ($(MACOS),true)
# CLAP + VST2 fonts
install -d bin/ProM.clap/Contents/Resources/fonts
install -d bin/ProM.vst/Contents/Resources/fonts
ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.clap/Contents/Resources/fonts/
ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/Contents/Resources/fonts/
# CLAP + VST2 presets
install -d bin/ProM.clap/Contents/Resources/presets
install -d bin/ProM.vst/Contents/Resources/presets
ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.clap/Contents/Resources/presets/
ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/Contents/Resources/presets/
else
# CLAP + VST2 fonts
install -d bin/ProM.clap/resources/fonts
install -d bin/ProM.vst/resources/fonts
ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.clap/resources/fonts/
ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst/resources/fonts/
# CLAP + VST2 presets
install -d bin/ProM.clap/resources/presets
install -d bin/ProM.vst/resources/presets
ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.clap/resources/presets/
ln -sf $(CURDIR)/plugins/ProM/projectM/presets/presets_* bin/ProM.vst/resources/presets/
endif
# VST3 fonts
install -d bin/ProM.vst3/Contents/Resources/fonts
ln -sf $(CURDIR)/plugins/ProM/projectM/fonts/*.ttf bin/ProM.vst3/Contents/Resources/fonts/
# 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
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
# glBars
$(MAKE) clean -C plugins/glBars
# Kars
$(MAKE) clean -C plugins/Kars
# Mini-Series
$(MAKE) clean -C plugins/3BandEQ
$(MAKE) clean -C plugins/3BandSplitter
$(MAKE) clean -C plugins/PingPongPan
# ndc-Plugs
$(MAKE) clean -C plugins/AmplitudeImposer
$(MAKE) clean -C plugins/CycleShifter
$(MAKE) clean -C plugins/SoulForce
# MVerb
$(MAKE) clean -C plugins/MVerb
# Nekobi
$(MAKE) clean -C plugins/Nekobi
# ProM
$(MAKE) clean -C plugins/ProM
# Max-Gen stuff
$(MAKE) clean -C plugins/bitcrush
$(MAKE) clean -C plugins/freeverb
$(MAKE) clean -C plugins/gigaverb
$(MAKE) clean -C plugins/pitchshift
# --------------------------------------------------------------
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/Kars$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/3BandEQ$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/3BandSplitter$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/PingPongPan$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/AmplitudeImposer$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/CycleShifter$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/SoulForce$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/MVerb$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/Nekobi$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/MaBitcrush$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/MaFreeverb$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/MaGigaverb$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
install -m 755 bin/MaPitchshift$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
ifeq ($(HAVE_OPENGL),true)
install -m 755 bin/glBars$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
endif # HAVE_OPENGL
# --------------------------------------------------------------
.PHONY: plugins