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