add packaging
authorGood Guy <good1.2guy@gmail.com>
Thu, 9 Jun 2016 00:30:45 +0000 (18:30 -0600)
committerGood Guy <good1.2guy@gmail.com>
Thu, 9 Jun 2016 00:30:45 +0000 (18:30 -0600)
13 files changed:
cinelerra-5.1/bld_scripts/debpkg.sh [new file with mode: 0755]
cinelerra-5.1/bld_scripts/rpmsrc.sh [new file with mode: 0755]
cinelerra-5.1/cinelerra.spec [new file with mode: 0644]
cinelerra-5.1/configure.ac
cinelerra-5.1/debian/changelog [new file with mode: 0644]
cinelerra-5.1/debian/cin.postinst [new file with mode: 0644]
cinelerra-5.1/debian/compat [new file with mode: 0644]
cinelerra-5.1/debian/control [new file with mode: 0644]
cinelerra-5.1/debian/copyright [new file with mode: 0644]
cinelerra-5.1/debian/rules [new file with mode: 0755]
cinelerra-5.1/debian/sysctl.d [new file with mode: 0644]
cinelerra-5.1/inst.sh
cinelerra-5.1/mpeg2enc/mpeg2enc.c

diff --git a/cinelerra-5.1/bld_scripts/debpkg.sh b/cinelerra-5.1/bld_scripts/debpkg.sh
new file mode 100755 (executable)
index 0000000..4c821b0
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash -x
+
+./debian/rules binary
+
diff --git a/cinelerra-5.1/bld_scripts/rpmsrc.sh b/cinelerra-5.1/bld_scripts/rpmsrc.sh
new file mode 100755 (executable)
index 0000000..5a2bd8f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash -x
+
+rpmbuild --define "_srcrpmdir `cd ..; pwd`" \
+ -bs --build-in-place cinelerra.spec
+
diff --git a/cinelerra-5.1/cinelerra.spec b/cinelerra-5.1/cinelerra.spec
new file mode 100644 (file)
index 0000000..0dce39b
--- /dev/null
@@ -0,0 +1,83 @@
+%define ver 20160606
+Summary: Multimedia Editing and construction
+Name: cinelerra
+Version: 5.1
+Release: %{ver}
+License: GPL
+Group: Applications/Multimedia
+URL: http://cinelerra-cv.org/
+
+# Obtained from :
+# git clone git://git.cinelerra.org/goodguy/cinelerra.git cinelerra5
+Source0: cinelerra-%{version}-%{ver}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%if 0%{?fedora}%{?centos}
+%define rhat 1
+%endif
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cmake
+BuildRequires: binutils
+BuildRequires: ctags
+BuildRequires: flac-devel
+BuildRequires: freetype-devel
+BuildRequires: gcc-c++
+BuildRequires: gettext-devel
+BuildRequires: git
+BuildRequires: inkscape
+BuildRequires: libpng-devel
+BuildRequires: libXft-devel
+BuildRequires: libXinerama-devel
+BuildRequires: libXv-devel
+BuildRequires: nasm
+BuildRequires: ncurses-devel
+BuildRequires: texinfo
+BuildRequires: udftools
+%{?rhat:BuildRequires: alsa-lib-devel}
+%{?rhat:BuildRequires: bzip2-devel}
+%{?rhat:BuildRequires: xorg-x11-fonts-cyrillic}
+%{?rhat:BuildRequires: xorg-x11-fonts-cyrillic}
+%{?rhat:BuildRequires: xorg-x11-fonts-ISO8859-1-100dpi}
+%{?rhat:BuildRequires: xorg-x11-fonts-ISO8859-1-75dpi}
+%{?rhat:BuildRequires: xorg-x11-fonts-misc}
+%{?rhat:BuildRequires: xorg-x11-fonts-Type1}
+%{?suse:BuildRequires: alsa-devel}
+%{?suse:BuildRequires: libbz2-devel}
+%{?suse:BuildRequires: bitstream-vera-fonts}
+%{?suse:BuildRequires: xorg-x11-fonts-core}
+%{?suse:BuildRequires: xorg-x11-fonts}
+%{?suse:BuildRequires: dejavu-fonts}
+%{?suse:BuildRequires: libnuma-devel}
+BuildRequires: xz-devel
+BuildRequires: yasm
+BuildRequires: zlib-devel
+
+%description
+Multimedia editing and construction
+
+%prep
+%setup
+%build
+./autogen.sh
+%configure
+%{__make}
+
+%install
+%make_install
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%{_bindir}/*
+%{_libdir}/*
+%{_datadir}/*
+
+%exclude /usr/src/debug
+%exclude /usr/lib/debug
+
+%changelog
+
index f9eccff430606ea02df5e3c5365a3c4ee2587803..625797199c14fbab94b13a929d4730bd386d7e3f 100644 (file)
@@ -582,6 +582,21 @@ AC_DEFUN([PKG_STATIC],[
 ])
 AC_DEFUN([PKG_FORCED],[PKG_STATIC([$1],[forced])])
 
+# order matters
+for dep in \
+        ffmpeg/faac ffmpeg/faad2 ffmpeg/twolame ffmpeg/lame ffmpeg/openjpeg \
+        ffmpeg/libvorbis ffmpeg/libtheora ffmpeg/x264 ffmpeg/fdk \
+        libiec61883/libraw1394 libavc1394/librom1394 \
+        openexr/ilmbase ilmbase/libogg \
+        libtheora/libogg libtheora/libvorbis ; do
+  lib=`dirname $dep`
+  eval pkg_lib="\$PKG_$lib"; eval have_lib="\$HAVE_$lib";
+  if test "x$pkg_lib" != "xno" ; then
+    needs=`basename $dep`
+    eval "PKG_$needs=yes"
+  fi
+done
+
 AC_DEFUN([PKG_PROVIDE],[
 if test "x$BUILD_$1" = "x" ; then
  if test "x$2" = "xno" -o "x$PKG_$1" = "xno"; then
diff --git a/cinelerra-5.1/debian/changelog b/cinelerra-5.1/debian/changelog
new file mode 100644 (file)
index 0000000..08b9df6
--- /dev/null
@@ -0,0 +1,6 @@
+cin (1:5.1.20160606) unstable; urgency=low
+
+  [ guy goode ]
+
+ -- lists <cinelerra@lists.cinelerra-cv.org>  Mon, 6 Jun 2016 18:39:04 +0700
+
diff --git a/cinelerra-5.1/debian/cin.postinst b/cinelerra-5.1/debian/cin.postinst
new file mode 100644 (file)
index 0000000..621b186
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash -e
+exec > /dev/null 2>&1
+if [ ! /proc/self/root -ef /proc/1/root ]; then exit; fi
+sysctl -p /etc/sysctl.d/50-cin.conf
diff --git a/cinelerra-5.1/debian/compat b/cinelerra-5.1/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/cinelerra-5.1/debian/control b/cinelerra-5.1/debian/control
new file mode 100644 (file)
index 0000000..fdbc5b1
--- /dev/null
@@ -0,0 +1,21 @@
+Source: cin
+Section: video
+Priority: optional
+Standards-Version: 5.1.20160606
+Maintainer: mailing list <cinelerra@lists.cinelerra-cv.org>
+Homepage: http://www.cinelerra-cv.org/
+Build-Depends: nasm, yasm, g++, gdb, build-essential, e2fsprogs,
+ libz-dev, liblzma-dev, libbz2-dev, exuberant-ctags,
+ libxft-dev, libxinerama-dev, libxv-dev, linux-firmware,
+ freeglut3-dev, libxv-dev, libasound2-dev,
+ libncurses5-dev, libxinerama-dev, libfreetype6-dev, libxft-dev,
+ ttf-bitstream-vera, xfonts-75dpi, xfonts-100dpi, fonts-dejavu,
+ libflac-dev, inkscape, texinfo, libpng-dev,
+ cmake, udftools, libxml2-utils, git, gettext,
+ autoconf, automake
+
+Package: cin
+Depends: ${misc:Depends}
+Description: Multimedia editing and construction
+Architecture: any
+
diff --git a/cinelerra-5.1/debian/copyright b/cinelerra-5.1/debian/copyright
new file mode 100644 (file)
index 0000000..4396b19
--- /dev/null
@@ -0,0 +1,31 @@
+originally written by Heroine Virtual Ltd.
+http://heroinewarrior.com/
+
+This package is using sources obtained from:
+http://cinelerra-cv.org.
+git://git.cinelerra-cv.org/goodguy/cinelerra.git
+
+Copyright (c) 1996-2015 Heroine Virtual Ltd.
+Copyright (c) 2006-2016 Cinelerra-CV community
+
+Cinelerra is released under GNU Public License v.2.
+
+                             All Rights Reserved
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
diff --git a/cinelerra-5.1/debian/rules b/cinelerra-5.1/debian/rules
new file mode 100755 (executable)
index 0000000..c95b0a0
--- /dev/null
@@ -0,0 +1,49 @@
+#!/usr/bin/make -f
+# from topdir ./debian/rules binary
+package=cin
+
+# Enable hardening flags
+CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS += $(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
+
+build build-arch build-indep: build-stamp
+
+build-stamp:
+       dh_testdir
+       @if [ ! -e configure ] ; then ./autogen.sh; fi
+       CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" \
+               ./configure --enable-opengl --prefix=/usr $(CONFFLAGS)
+       $(MAKE) $(MAKEFLAGS)
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       [ ! -f Makefile ] || $(MAKE) clean
+       dh_clean -a
+       -rm -f build-stamp
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/cin
+       install -D -m644 debian/sysctl.d debian/cin/etc/sysctl.d/50-cin.conf
+
+binary-indep: build install
+
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_install
+       dh_link -a
+       dh_icons -a
+       dh_fixperms -a
+       dh_installdeb -a
+       dh_gencontrol 
+       dh_builddeb -p cin
+
+binary: binary-indep binary-arch
+
diff --git a/cinelerra-5.1/debian/sysctl.d b/cinelerra-5.1/debian/sysctl.d
new file mode 100644 (file)
index 0000000..3ef3b1b
--- /dev/null
@@ -0,0 +1 @@
+kernel.shmmax = 0x7fffffff
index f4d405875d73f9d001155189c015f0dfb1b984a9..bbfee547528bda5185edb51f0effb72dfc7c70a4 100755 (executable)
@@ -4,10 +4,11 @@ cr='
 '
 dir="$1"; shift 1
 $mkinstalldirs "$dir"
+if [ "$*" = "*" ]; then exit; fi
 
 for f in "$@"; do
   if [ -f "$f" ]; then $install_sh -c "$f" "$dir"; continue; fi
-  if [ -d "$f" ]; then ( cd $f; IFS="$cr"; $inst_sh "$dir/$f" `ls -1` )
+  if [ -d "$f" ]; then ( cd $f; $inst_sh "$dir/$f" * )
   else echo "*** Error - install $f in $dir failed." 1>&2; exit 1; fi
 done
 
index 19c1617adcae3fb9c7e4a41f8ea0a001f1fe55ec..794cb12ec457b642e883c239d9a6e1e0c4227eca 100644 (file)
@@ -338,8 +338,7 @@ static void init()
 void error(text)
 char *text;
 {
-  fprintf(stderr,text);
-  putc('\n',stderr);
+  fprintf(stderr,"%s\n",text);
   exit(1);
 }