lv2 fixes, dcraw upgrade, arch/libdv
[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:        binstall $(sinstall)
27
28 uninstall:      buninstall $(suninstall)
29
30 .PHONY: binstall cinstall cuninstall dinstall
31 export mkinstalldirs install_sh inst_sh
32
33 # install to bin
34 binstall:       install-recursive
35         cp -a COPYING README models Cinelerra_factory ffmpeg msg info tips bin/.
36         sed -e 's/\<cin\>/$(WANT_CIN)/g' < image/cin.desktop \
37                 > "bin/applications/$(WANT_CIN).desktop"
38         cp -a image/cin.svg "bin/pixmaps/$(WANT_CIN)".svg
39         cp -a image/cin.xpm "bin/pixmaps/$(WANT_CIN)".xpm
40         mkdir -p bin/plugins/picon/cinfinity
41         for d in picon/*; do \
42           if [ $$d = picon/cinfinity ]; then continue; fi; \
43           cp -a $$d bin/plugins/picon/.; \
44         done
45         cp -a db/utils/new_db "bin/cin_db"
46         cp -av lv2_blacklist.txt bin/.
47
48 buninstall:
49         rm -rf bin
50
51 # with system_build
52 cinstall:
53         cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" \
54                 cin_db zmpeg3{cat,cc2txt,ifochk,show,toc}
55         cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
56                 bdwrite cutads lv2ui hveg2enc mpeg2enc mplex mplexlo
57         cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
58                 COPYING README models Cinelerra_factory ffmpeg msg info tips doc \
59                 lv2 lv2_blacklist.txt
60         cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
61         cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
62         cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .
63         cd bin/applications; $(inst_sh) "$(DESTDIR)$(datadir)/applications" .
64         cd bin/pixmaps; $(inst_sh) "$(DESTDIR)$(datadir)/pixmaps" .
65
66 cuninstall:
67         rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)"
68         rm -f "$(DESTDIR)$(bindir)"/zmpeg3{cat,cc2txt,ifochk,show,toc}
69         rm -f "$(DESTDIR)$(bindir)/cin_db"
70         rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)"
71         rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)"
72         rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo"
73         rm -rf "$(DESTDIR)$(WANT_PLUGIN_DIR)"
74         rm -rf "$(DESTDIR)$(WANT_LADSPA_DIR)"
75         rm -f "$(DESTDIR)$(datadir)/applications/$(WANT_CIN).desktop"
76         rm -f "$(DESTDIR)$(datadir)/pixmaps/$(WANT_CIN)".{svg,xpm}
77
78 # without system_build
79 dinstall:
80         cp Makefile.devel Makefile
81
82 duninstall:
83         rm -f Makefile
84
85 val-%:
86         @echo $($(subst val-,,$@))
87