From: Good Guy Date: Mon, 6 Jun 2016 01:25:08 +0000 (-0600) Subject: build fixes and tweaks X-Git-Url: http://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=6bcc7c5880782aadfdab7dd4b0c546eca8808641;hp=3406c79cd1a832418ad3a8b3de7a823b79ff5675;p=goodguy%2Fhistory.git build fixes and tweaks --- diff --git a/cinelerra-5.1/Makefile.am b/cinelerra-5.1/Makefile.am index 95fc4ee3..a3d3aa64 100644 --- a/cinelerra-5.1/Makefile.am +++ b/cinelerra-5.1/Makefile.am @@ -11,7 +11,7 @@ AUTOMAKE_OPTIONS=foreign ACLOCAL_AMFLAGS = -I m4 SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \ - db guicast cinelerra plugins doc po + db guicast cinelerra plugins doc po db/utils BUILT_SOURCES := bin bin: @@ -34,8 +34,9 @@ binstall: install-recursive cp -a COPYING README models ffmpeg msg.txt bin/. sed -e 's/\/$(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.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" buninstall: rm -rf bin @@ -43,7 +44,7 @@ buninstall: # with system_build cinstall: cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" \ - mpeg3{cat,cc2txt,ifochk,show,toc} + cin_db mpeg3{cat,cc2txt,ifochk,show,toc} cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \ bdwrite cutads hveg2enc mpeg2enc mplex mplexlo cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \ @@ -57,6 +58,7 @@ cinstall: cuninstall: rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)" rm -f "$(DESTDIR)$(bindir)"/mpeg3{cat,cc2txt,ifochk,show,toc} + rm -f "$(DESTDIR)$(bindir)/cin_db" rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)" rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)" rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo" diff --git a/cinelerra-5.1/bld_scripts/bld_dynamic.sh b/cinelerra-5.1/bld_scripts/bld_dynamic.sh index 9a8fbe2f..40fd50ab 100755 --- a/cinelerra-5.1/bld_scripts/bld_dynamic.sh +++ b/cinelerra-5.1/bld_scripts/bld_dynamic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x dir="$1" shift @@ -13,20 +13,24 @@ if [ ! -d "$path/$dir/$bld" ]; then fi cd "$path/$dir/$bld" -rm -rf "$proj" -git clone --depth 1 "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj" -#rsh host tar -C /mnt0 -cf - cinelerra5 | tar -xf - +rm -rf "$proj.dyn" +mkdir "$proj.dyn" + +git clone "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj.dyn" +#rsh host tar -C "/mnt0/$proj" -cf - "$base" | tar -C "$proj.dyn" -xf - if [ $? -ne 0 ]; then echo "git clone $proj failed" exit 1 fi -cd "$proj/$base" - -./autogen.sh -./configure --enable-static=no -make all install >& log +cd "$proj.dyn/$base" +{ +./autogen.sh && \ +./configure --with-single-user --disable-static-build && \ +make $@ && \ +make install +} 2>&1 | tee log || true echo "finished: scanning log for ***" -grep -ai "\*\*\*.*error" log +grep -ai "\*\*\*.*error" log | head diff --git a/cinelerra-5.1/bld_scripts/bld_incremental.sh b/cinelerra-5.1/bld_scripts/bld_incremental.sh deleted file mode 100755 index 8a31cc67..00000000 --- a/cinelerra-5.1/bld_scripts/bld_incremental.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -dir="$1" -path="/home" -bld="git-repo" -proj="cinelerra5" -base="cinelerra-5.1" - -if [ ! -d "$path/$dir/$bld/$proj" ]; then - echo "$bld/$proj missing in $path/$dir" - exit 1 -fi - -cd "$path/$dir/$bld/$proj" -git pull -if [ $? -ne 0 ]; then - echo "git pull $bld/$proj failed" - exit 1 -fi - -cd "$base" -make rebuild_all >& log1 - -echo "finished: scanning log for ***" -grep -a "\*\*\*" log1 - diff --git a/cinelerra-5.1/bld_scripts/bld_package.sh b/cinelerra-5.1/bld_scripts/bld_package.sh index b9a7b678..b08099d4 100755 --- a/cinelerra-5.1/bld_scripts/bld_package.sh +++ b/cinelerra-5.1/bld_scripts/bld_package.sh @@ -21,6 +21,7 @@ mint="mint-14.04.1" suse="opensuse-13.2" ub14="ub14.04.1" ub15="ub15.10" +ub15="ub16.04" ubuntu="ubuntu-14.04.1" eval os="\${$dir}" diff --git a/cinelerra-5.1/bld_scripts/bld_prepare.sh b/cinelerra-5.1/bld_scripts/bld_prepare.sh index 8acde06e..f6a2b7ec 100755 --- a/cinelerra-5.1/bld_scripts/bld_prepare.sh +++ b/cinelerra-5.1/bld_scripts/bld_prepare.sh @@ -60,7 +60,7 @@ case "$dir" in ln -s libtermcap.so.2 /usr/lib64/libtermcap.so fi ;; -"ubuntu" | "mint" | "ub14" | "ub15" | "debian") +"ubuntu" | "mint" | "ub14" | "ub15" | "ub16" | "debian") apt-get -y install apt-file sox nasm yasm g++ build-essential libz-dev \ texinfo libpng-dev freeglut3-dev libxv-dev libasound2-dev libbz2-dev \ libncurses5-dev libxinerama-dev libfreetype6-dev libxft-dev libgif-dev \ diff --git a/cinelerra-5.1/bld_scripts/bld_static.sh b/cinelerra-5.1/bld_scripts/bld_static.sh index 14c461c2..39e19743 100755 --- a/cinelerra-5.1/bld_scripts/bld_static.sh +++ b/cinelerra-5.1/bld_scripts/bld_static.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x dir="$1" shift @@ -13,20 +13,24 @@ if [ ! -d "$path/$dir/$bld" ]; then fi cd "$path/$dir/$bld" -rm -rf "$proj" -git clone --depth 1 "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj" -#rsh host tar -C /mnt0 -cf - cinelerra5 | tar -xf - +rm -rf "$proj.sta" +mkdir "$proj.sta" + +git clone "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj.sta" +#rsh host tar -C "/mnt0/$proj" -cf - "$base" | tar -C "$proj.sta" -xf - if [ $? -ne 0 ]; then echo "git clone $proj failed" exit 1 fi -cd "$proj/$base" - -./autogen.sh -./configure --enable-static=yes -make all install >& log +cd "$proj.sta/$base" +{ +./autogen.sh && \ +./configure --with-single-user --enable-static-build && \ +make $@ && \ +make install +} 2>&1 | tee log || true echo "finished: scanning log for ***" -grep -ai "\*\*\*.*error" log +grep -ai "\*\*\*.*error" log | head diff --git a/cinelerra-5.1/db/utils/Makefile b/cinelerra-5.1/db/utils/Makefile index 12e0abef..3a5eff85 100644 --- a/cinelerra-5.1/db/utils/Makefile +++ b/cinelerra-5.1/db/utils/Makefile @@ -56,6 +56,8 @@ xtv: xtv.C $(XTV_MEDIA_OBJS) @echo c++ -pthread $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) -o xtv @c++ -pthread $(XTV_INCLUDES) $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) $(XTV_LIBS) -o xtv +install: + clean: rm -f $(TARGETS) *.o a.out diff --git a/cinelerra-5.1/doc/Makefile b/cinelerra-5.1/doc/Makefile index 220b5078..11615c30 100644 --- a/cinelerra-5.1/doc/Makefile +++ b/cinelerra-5.1/doc/Makefile @@ -28,7 +28,6 @@ IMAGES = \ mask.png \ mutepatch_up.png \ paste.png \ - picon.png \ projector.png \ protect.png \ recordpatch.png \ @@ -45,18 +44,19 @@ OUTPUT := cinelerra.html all: $(OUTPUT) -$(OUTPUT): - tar -C ../plugins/theme_suv/data/ -cf - $(IMAGES) | tar -xkf - +$(OUTPUT): $(IMAGES) makeinfo --html --no-split cinelerra.texi # makeinfo --html cinelerra.texi +$(IMAGES): + cp $(PLUGINS)/theme_suv/data/$@ . + install: all mkdir -p $(TARGET_DIR) cp -a *.png $(TARGET_DIR)/. cp -a cinelerra.html $(TARGET_DIR)/. - cp -a manual.pdf $(TARGET_DIR)/. cp -a Features5.pdf $(TARGET_DIR)/. clean: - rm -f $(IMAGES) $(OUTPUT) + rm -f $(OUTPUT) $(IMAGES) diff --git a/cinelerra-5.1/doc/manual.pdf b/cinelerra-5.1/doc/manual.pdf deleted file mode 100644 index 6360a013..00000000 Binary files a/cinelerra-5.1/doc/manual.pdf and /dev/null differ diff --git a/cinelerra-5.1/plugins/theme_bright/data/goto.png b/cinelerra-5.1/plugins/theme_bright/data/goto.png new file mode 100644 index 00000000..c33eb85d Binary files /dev/null and b/cinelerra-5.1/plugins/theme_bright/data/goto.png differ