set overwrite on LV2_PATH pref env update
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / Makefile
1 export TOPDIR ?= $(CURDIR)/..
2 include $(TOPDIR)/global_config
3 default: all
4
5 ifeq ($(WANT_DVB), yes)
6 LIVEDVB = liveaudio livevideo
7 endif
8 ifneq ($(WANT_OPENCV), no)
9 want_var:=$(WANT_OPENCV)
10 include $(TOPDIR)/opencv_build
11 OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj
12 $(OPENCV_OBJS): opencv
13 endif
14
15 # burn must come before any other effecttv plugin
16 # colors must come before any plugin
17 # parametric must come before fourier plugins
18 # motion must come before perspective
19
20 DIRS = $(OPENCV_OBJS) \
21         1080to480 \
22         1080to540 \
23         720to480 \
24         aging \
25         scaleratio \
26         audioscope \
27         bandslide \
28         bandwipe \
29         bluebanana \
30         blur \
31         brightness \
32         burn \
33         C41 \
34         cdripper \
35         chromakey \
36         chromakeyhsv \
37         color3way \
38         colorbalance \
39         compressor \
40         crikey \
41         crossfade \
42         dcoffset \
43         decimate \
44         deinterlace \
45         deinterlace-cv \
46         delayaudio \
47         delayvideo \
48         denoise \
49         denoisefft \
50         denoiseseltempavg \
51         denoisevideo \
52         descratch \
53         despike \
54         diffkey \
55         dissolve \
56         dot \
57         downsample \
58         edge \
59         echo \
60         echocancel \
61         fieldframe \
62         flash \
63         flip \
64         framefield \
65         freeverb \
66         freezeframe \
67         gain \
68         gamma \
69         gradient \
70         graphic \
71         histeq \
72         histogram \
73         histogram_bezier \
74         holo \
75         huesaturation \
76         interpolate \
77         interpolateaudio \
78         interpolatevideo \
79         invertaudio \
80         invertvideo \
81         irissquare \
82         ivtc \
83         lens \
84         level \
85         libeffecttv \
86         linearblur \
87         $(LIVEDVB) \
88         loopaudio \
89         loopvideo \
90         motion \
91         motion51 \
92         motion-cv \
93         motion-hv \
94         motion2point \
95         motionblur \
96         normalize \
97         oilpainting \
98         overlay \
99         overlayaudio \
100         parametric \
101         perspective \
102         photoscale \
103         pitch \
104         polar \
105         radialblur \
106         reframe \
107         reframert \
108         removegaps \
109         reroute \
110         resample \
111         resamplert \
112         reverb \
113         reverseaudio \
114         reversevideo \
115         rgb601 \
116         rgbshift \
117         rotate \
118         rumbler \
119         scale \
120         sketcher \
121         shapewipe \
122         sharpen \
123         shiftinterlace \
124         slide \
125         spectrogram \
126         spherecam \
127         svg \
128         swapchannels \
129         swapframes \
130         synthesizer \
131         threshold \
132         timeavg \
133         timefront \
134         timestretch \
135         timestretchrt \
136         titler \
137         translate \
138         unsharp \
139         videoscope \
140         wave \
141         whirl \
142         wipe \
143         yuv \
144         yuv411 \
145         yuvshift \
146         zoom \
147         zoomblur \
148         theme_blond \
149         theme_blond_cv \
150         theme_blue \
151         theme_blue_dot \
152         theme_bright \
153         theme_hulk \
154         theme_neophyte \
155         theme_pinklady \
156         theme_suv \
157         theme_unflat \
158
159 # too costly
160 #       findobject \
161 #       greycstoration \
162 # not finished
163 #       denoisemjpeg \
164 # duplicate
165 #       vocoder \
166
167 PLUGIN_DIR = $(BINDIR)/plugins
168 DATA = $(PLUGIN_DIR)/fonts $(PLUGIN_DIR)/shapes
169 LADSPA_DIR = $(BINDIR)/ladspa
170
171 all:    $(PLUGIN_DIR) $(DIRS) $(DATA) $(LADSPA_DIR)
172
173 $(PLUGIN_DIR):
174         mkdir -p $@
175
176 $(DATA):        $(PLUGIN_DIR)
177         cp -a $(notdir $@) $(PLUGIN_DIR)/.
178
179 $(LADSPA_DIR):
180         mkdir -p $@
181         if [ -d $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa ]; then \
182                 cp -a $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa/. $@/. ; \
183         fi
184
185 # parallel compilation of all directories
186 .PHONY: $(DIRS)
187 $(DIRS):
188         $(MAKE) -C $@
189
190 clean:
191         rm -rf $(foreach d,$(DIRS),$(d)/$(OBJDIR))
192         rm -rf $(PLUGIN_DIR) $(LADSPA_DIR)
193
194 install:
195
196 # dependencies for parallel build
197 aging:          libeffecttv
198 burn:           libeffecttv
199 dot:            libeffecttv
200 holo:           libeffecttv
201 motion2point:   downsample motion
202 motion:         downsample
203 timestretchrt:  timestretch
204