2 CXXFLAGS_ := $(CXXFLAGS)
5 export CFLAGS_ CXXFLAGS_ LDFLAGS_
6 unexport CFLAGS CXXFLAGS LDFLAGS
8 AM_MAKEFLAGS := -j$(WANT_JOBS)
10 AUTOMAKE_OPTIONS=foreign
11 ACLOCAL_AMFLAGS = -I m4
13 SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \
14 db guicast cinelerra plugins doc po db/utils
18 mkdir -p bin bin/applications bin/pixmaps bin/lv2
21 rm -rf thirdparty/opencv*
24 inst_sh := $(CURDIR)/inst.sh
26 install: bin_install $(MAK_INSTALLS)
28 uninstall: bin_uninstall $(MAK_UNINSTALLS)
30 .PHONY: binstall cinstall cuninstall dinstall
31 export mkinstalldirs install_sh inst_sh
34 bin_install: install-recursive
35 cp -a COPYING README models Cinelerra_factory expanders.* \
36 shuttlerc ffmpeg msg info tips 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/.; \
46 -cp -a db/utils/new_db "bin/cin_db"
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 expanders.* \
56 shuttlerc ffmpeg msg info tips doc
57 cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
58 cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
59 cd bin/applications; $(inst_sh) "$(DESTDIR)$(datadir)/applications" .
60 cd bin/pixmaps; $(inst_sh) "$(DESTDIR)$(datadir)/pixmaps" .
62 sys_uninstall: $(CIN_UNINSTALLS)
63 rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)"
64 rm -f "$(DESTDIR)$(bindir)/bdwrite"
65 rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)"
66 rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)"
67 rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo"
68 rm -rf "$(DESTDIR)$(WANT_PLUGIN_DIR)"
69 rm -f "$(DESTDIR)$(datadir)/applications/$(WANT_CIN).desktop"
70 rm -f "$(DESTDIR)$(datadir)/pixmaps/$(WANT_CIN)".{svg,xpm}
72 # without system_build
74 cp Makefile.devel Makefile
81 cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" \
82 zmpeg3{cat,cc2txt,ifochk,show,toc}
83 cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
84 hveg2enc mpeg2enc mplex mplexlo
87 rm -f "$(DESTDIR)$(bindir)"/zmpeg3{cat,cc2txt,ifochk,show,toc}
91 cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" cin_db
92 cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" cutads
95 rm -f "$(DESTDIR)$(bindir)/cin_db"
99 cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .
102 rm -rf "$(DESTDIR)$(WANT_LADSPA_DIR)"
106 cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" lv2ui
107 cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
108 lv2 lv2_blacklist.txt
113 @echo $($(subst val-,,$@))