bsd compatibility mods
[goodguy/history.git] / cinelerra-5.1 / Makefile.am
index 7e00103038cdfb62b4c83c0bce0485a16ce99592..9b78846c3ec2ca32d7ccfdd8a801d25e7044cb6d 100644 (file)
@@ -15,9 +15,10 @@ SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \
 
 BUILT_SOURCES := bin
 bin:
-       mkdir -p bin bin/applications bin/pixmaps
+       mkdir -p bin bin/applications bin/pixmaps bin/lv2
 
 clean-generic:
+       rm -rf thirdparty/opencv*
        rm -rf bin
 
 inst_sh := $(CURDIR)/inst.sh
@@ -31,12 +32,18 @@ export mkinstalldirs install_sh inst_sh
 
 # install to bin
 binstall:      install-recursive
-       cp -a COPYING README models ffmpeg msg info tips bin/.
+       cp -a COPYING README models Cinelerra_factory ffmpeg msg info tips bin/.
        sed -e 's/\<cin\>/$(WANT_CIN)/g' < image/cin.desktop \
                > "bin/applications/$(WANT_CIN).desktop"
        cp -a image/cin.svg "bin/pixmaps/$(WANT_CIN)".svg
        cp -a image/cin.xpm "bin/pixmaps/$(WANT_CIN)".xpm
-       cp -a db/utils/new_db "bin/cin_db"
+       mkdir -p bin/plugins/picon/cinfinity
+       for d in picon/*; do \
+         if [ $$d = picon/cinfinity ]; then continue; fi; \
+         cp -a $$d bin/plugins/picon/.; \
+       done
+       -cp -a db/utils/new_db "bin/cin_db"
+       cp -av lv2_blacklist.txt bin/.
 
 buninstall:
        rm -rf bin
@@ -46,9 +53,12 @@ cinstall:
        cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" \
                cin_db zmpeg3{cat,cc2txt,ifochk,show,toc}
        cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
-               bdwrite cutads hveg2enc mpeg2enc mplex mplexlo
+               bdwrite cutads lv2ui
+       -cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
+               hveg2enc mpeg2enc mplex mplexlo
        cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
-               COPYING README models ffmpeg msg info tips doc
+               COPYING README models Cinelerra_factory ffmpeg msg info tips doc \
+               lv2 lv2_blacklist.txt
        cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
        cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
        cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .