f22ea3d7a092cc362ced55afe6d650332704e132
[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         tracer \
138         translate \
139         unsharp \
140         videoscope \
141         wave \
142         whirl \
143         wipe \
144         yuv \
145         yuv411 \
146         yuvshift \
147         zoom \
148         zoomblur \
149         theme_blond \
150         theme_blond_cv \
151         theme_blue \
152         theme_blue_dot \
153         theme_bright \
154         theme_hulk \
155         theme_neophyte \
156         theme_pinklady \
157         theme_suv \
158         theme_unflat \
159
160 # too costly
161 #       findobject \
162 #       greycstoration \
163 # not finished
164 #       denoisemjpeg \
165 # duplicate
166 #       vocoder \
167
168 PLUGIN_DIR = $(BINDIR)/plugins
169 DATA = $(PLUGIN_DIR)/fonts $(PLUGIN_DIR)/shapes
170 LADSPA_DIR = $(BINDIR)/ladspa
171
172 all:    $(PLUGIN_DIR) $(DIRS) $(DATA) $(LADSPA_DIR)
173
174 $(PLUGIN_DIR):
175         mkdir -p $@
176
177 $(DATA):        $(PLUGIN_DIR)
178         cp -a $(notdir $@) $(PLUGIN_DIR)/.
179
180 $(LADSPA_DIR):
181         mkdir -p $@
182         if [ -d $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa ]; then \
183                 cp -a $(THIRDPARTY)/ladspa-*/usr/local/lib*/ladspa/. $@/. ; \
184         fi
185
186 # parallel compilation of all directories
187 .PHONY: $(DIRS)
188 $(DIRS):
189         $(MAKE) -C $@
190
191 clean:
192         rm -rf $(foreach d,$(DIRS),$(d)/$(OBJDIR))
193         rm -rf $(PLUGIN_DIR) $(LADSPA_DIR)
194
195 install:
196
197 # dependencies for parallel build
198 aging:          libeffecttv
199 burn:           libeffecttv
200 dot:            libeffecttv
201 holo:           libeffecttv
202 motion2point:   downsample motion
203 motion:         downsample
204 timestretchrt:  timestretch
205