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