1 PKG_CFLAGS_ := $(CFLAGS)
2 PKG_CXXFLAGS_ := $(CXXFLAGS)
3 PKG_LDFLAGS_ := $(LDFLAGS)
5 export PKG_CFLAGS_ PKG_CXXFLAGS_ PKG_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
23 inst_sh := $(CURDIR)/inst.sh
25 install: binstall $(sinstall)
27 uninstall: buninstall $(suninstall)
29 .PHONY: binstall cinstall cuninstall dinstall
30 export mkinstalldirs install_sh inst_sh
33 binstall: install-recursive
34 cp -a COPYING README models ffmpeg msg.txt bin/.
35 sed -e 's/\<cin\>/$(WANT_CIN)/g' < image/cin.desktop \
36 > "bin/applications/$(WANT_CIN).desktop"
37 cp -a image/cin.svg "bin/pixmaps/$(WANT_CIN)".svg
38 cp -a image/cin.xpm "bin/pixmaps/$(WANT_CIN)".xpm
39 cp -a db/utils/new_db "bin/cin_db"
46 cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" \
47 cin_db mpeg3{cat,cc2txt,ifochk,show,toc}
48 cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
49 bdwrite cutads hveg2enc mpeg2enc mplex mplexlo
50 cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
51 COPYING README msg.txt ffmpeg doc models
52 cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
53 cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
54 cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .
55 cd bin/applications; $(inst_sh) "$(DESTDIR)$(datadir)/applications" .
56 cd bin/pixmaps; $(inst_sh) "$(DESTDIR)$(datadir)/pixmaps" .
59 rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)"
60 rm -f "$(DESTDIR)$(bindir)"/mpeg3{cat,cc2txt,ifochk,show,toc}
61 rm -f "$(DESTDIR)$(bindir)/cin_db"
62 rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)"
63 rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)"
64 rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo"
65 rm -rf "$(DESTDIR)$(WANT_PLUGIN_DIR)"
66 rm -rf "$(DESTDIR)$(WANT_LADSPA_DIR)"
67 rm -f "$(DESTDIR)$(datadir)/applications/$(WANT_CIN).desktop"
68 rm -f "$(DESTDIR)$(datadir)/pixmaps/$(WANT_CIN)".{svg,xpm}
70 # without system_build
72 cp Makefile.devel Makefile
78 @echo $($(subst val-,,$@))