a492ca869a08c377fa3215bd1ac151737beeb85c
[goodguy/history.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
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         despike \
53         diffkey \
54         dissolve \
55         dot \
56         downsample \
57         edge \
58         echo \
59         echocancel \
60         fieldframe \
61         flash \
62         flip \
63         framefield \
64         freeverb \
65         freezeframe \
66         gain \
67         gamma \
68         gradient \
69         graphic \
70         histeq \
71         histogram \
72         histogram_bezier \
73         holo \
74         huesaturation \
75         interpolate \
76         interpolateaudio \
77         interpolatevideo \
78         invertaudio \
79         invertvideo \
80         irissquare \
81         ivtc \
82         lens \
83         level \
84         libeffecttv \
85         linearblur \
86         $(LIVEDVB) \
87         loopaudio \
88         loopvideo \
89         motion \
90         motion51 \
91         motion-cv \
92         motion-hv \
93         motion2point \
94         motionblur \
95         normalize \
96         oilpainting \
97         overlay \
98         overlayaudio \
99         parametric \
100         perspective \
101         photoscale \
102         pitch \
103         polar \
104         radialblur \
105         reframe \
106         reframert \
107         removegaps \
108         reroute \
109         resample \
110         resamplert \
111         reverb \
112         reverseaudio \
113         reversevideo \
114         rgb601 \
115         rgbshift \
116         rotate \
117         rumbler \
118         scale \
119         shapewipe \
120         sharpen \
121         shiftinterlace \
122         slide \
123         spectrogram \
124         spherecam \
125         svg \
126         swapchannels \
127         swapframes \
128         synthesizer \
129         threshold \
130         timeavg \
131         timefront \
132         timestretch \
133         timestretchrt \
134         titler \
135         translate \
136         unsharp \
137         videoscope \
138         wave \
139         whirl \
140         wipe \
141         yuv \
142         yuv411 \
143         yuvshift \
144         zoom \
145         zoomblur \
146         theme_blond \
147         theme_blond_cv \
148         theme_blue \
149         theme_blue_dot \
150         theme_bright \
151         theme_hulk \
152         theme_pinklady \
153         theme_suv \
154         theme_unflat \
155
156 # too costly
157 #       findobject \
158 #       greycstoration \
159 # not finished
160 #       denoisemjpeg \
161 # duplicate
162 #       vocoder \
163
164 PLUGIN_DIR = $(BINDIR)/plugins
165 DATA = $(PLUGIN_DIR)/fonts $(PLUGIN_DIR)/shapes
166 LADSPA_DIR = $(BINDIR)/ladspa
167
168 all:    $(PLUGIN_DIR) $(DIRS) $(DATA) $(LADSPA_DIR)
169
170 $(PLUGIN_DIR):
171         mkdir -p $@
172
173 $(DATA):
174         cp -a $(notdir $@) $(PLUGIN_DIR)/.
175
176 $(LADSPA_DIR):
177         mkdir -p $@
178         if [ -d $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa ]; then \
179                 cp -a $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa/. $@/. ; \
180         fi
181
182 # parallel compilation of all directories
183 .PHONY: $(DIRS)
184 $(DIRS):
185         $(MAKE) -C $@
186
187 clean:
188         rm -rf $(foreach d,$(DIRS),$(d)/$(OBJDIR))
189         rm -rf $(PLUGIN_DIR) $(LADSPA_DIR)
190
191 install:
192
193 # dependencies for parallel build
194 aging:          libeffecttv
195 burn:           libeffecttv
196 dot:            libeffecttv
197 holo:           libeffecttv
198 motion2point:   downsample motion
199 motion:         downsample
200 timestretchrt:  timestretch
201