add ffmpeg audio pts tolerance, update plugin info
[goodguy/history.git] / cinelerra-5.1 / Makefile.am
1 CFLAGS_ := $(CFLAGS)
2 CXXFLAGS_ := $(CXXFLAGS)
3 LDFLAGS_ := $(LDFLAGS)
4
5 export CFLAGS_ CXXFLAGS_ LDFLAGS_
6 unexport CFLAGS CXXFLAGS LDFLAGS
7
8 AM_MAKEFLAGS := -j$(WANT_JOBS)
9
10 AUTOMAKE_OPTIONS=foreign
11 ACLOCAL_AMFLAGS = -I m4
12
13 SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \
14         db guicast cinelerra plugins doc po db/utils
15
16 BUILT_SOURCES := bin
17 bin:
18         mkdir -p bin bin/applications bin/pixmaps bin/lv2
19
20 clean-generic:
21         rm -rf thirdparty/opencv*
22         rm -rf bin
23
24 inst_sh := $(CURDIR)/inst.sh
25
26 install:        bin_install $(MAK_INSTALLS)
27
28 uninstall:      bin_uninstall $(MAK_UNINSTALLS)
29
30 .PHONY: binstall cinstall cuninstall dinstall
31 export mkinstalldirs install_sh inst_sh
32
33 # install to bin
34 bin_install:    install-recursive
35         cp -a COPYING README models Cinelerra_factory ffmpeg msg info tips \
36                 lv2_blacklist.txt bin/.
37         sed -e 's/\<cin\>/$(WANT_CIN)/g' < image/cin.desktop \
38                 > "bin/applications/$(WANT_CIN).desktop"
39         cp -a image/cin.svg "bin/pixmaps/$(WANT_CIN)".svg
40         cp -a image/cin.xpm "bin/pixmaps/$(WANT_CIN)".xpm
41         mkdir -p bin/plugins/picon/cinfinity
42         for d in picon/*; do \
43           if [ $$d = picon/cinfinity ]; then continue; fi; \
44           cp -a $$d bin/plugins/picon/.; \
45         done
46         -cp -a db/utils/new_db "bin/cin_db"
47
48 bin_uninstall:
49         rm -rf bin
50
51 # with system_build
52 sys_install: $(CIN_INSTALLS)
53         cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" bdwrite
54         cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
55                 COPYING README models Cinelerra_factory ffmpeg msg info tips doc
56         cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
57         cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
58         cd bin/applications; $(inst_sh) "$(DESTDIR)$(datadir)/applications" .
59         cd bin/pixmaps; $(inst_sh) "$(DESTDIR)$(datadir)/pixmaps" .
60
61 sys_uninstall: $(CIN_UNINSTALLS)
62         rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)"
63         rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)"
64         rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)"
65         rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo"
66         rm -rf "$(DESTDIR)$(WANT_PLUGIN_DIR)"
67         rm -f "$(DESTDIR)$(datadir)/applications/$(WANT_CIN).desktop"
68         rm -f "$(DESTDIR)$(datadir)/pixmaps/$(WANT_CIN)".{svg,xpm}
69
70 # without system_build
71 dvl_install:
72         cp Makefile.devel Makefile
73
74 dvl_uninstall:
75         rm -f Makefile
76
77 # with-libzmpeg3
78 zmp_install:
79         cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" \
80                 zmpeg3{cat,cc2txt,ifochk,show,toc}
81         cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
82                 hveg2enc mpeg2enc mplex mplexlo
83
84 zmp_uninstall:
85         rm -f "$(DESTDIR)$(bindir)"/zmpeg3{cat,cc2txt,ifochk,show,toc}
86
87 # with-commercial
88 com_install:
89         cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" cin_db
90         cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" cutads
91
92 com_uninstall:
93         rm -f "$(DESTDIR)$(bindir)/cin_db"
94
95 # with-ladspa
96 lad_install:
97         cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .
98
99 lad_uninstall:
100         rm -rf "$(DESTDIR)$(WANT_LADSPA_DIR)"
101
102 # with-lv2
103 lv2_install:
104         cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" lv2ui
105         cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
106                 lv2 lv2_blacklist.txt
107
108 lv2_uninstall:
109
110 val-%:
111         @echo $($(subst val-,,$@))
112