diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /community/cinelerra-cv/PKGBUILD | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'community/cinelerra-cv/PKGBUILD')
-rw-r--r-- | community/cinelerra-cv/PKGBUILD | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/community/cinelerra-cv/PKGBUILD b/community/cinelerra-cv/PKGBUILD new file mode 100644 index 000000000..339265f54 --- /dev/null +++ b/community/cinelerra-cv/PKGBUILD @@ -0,0 +1,89 @@ +# $Id: PKGBUILD 80152 2012-11-16 23:35:55Z ioni $ +# Maintainer: Ray Rashif <schiv@archlinux.org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org> +# Contributor: Alexander Rødseth <rodseth@gmail.com> + +pkgname=cinelerra-cv +pkgver=2.2 +_gitrel=2.2.0 +pkgrel=12 +epoch=1 +pkgdesc="Professional video editing and compositing environment" +arch=('x86_64' 'i686') +url="http://cinelerra.org/" +license=('GPL') +depends=('e2fsprogs' 'libavc1394' 'libiec61883' 'freetype2' + 'libtiff' 'mjpegtools' 'fftw' 'a52dec' 'glu' + 'ffmpeg' 'libxv' 'faad2' 'faac' 'openexr' 'ilmbase>=1.0.3') +makedepends=('git' 'nasm' 'mesa') +options=('!libtool') +source=('v4l1_removal.patch' + 'ffmpeg_api.patch') +md5sums=('bfa85e20809429d88eba4ab83e569612' + 'b05ec2fb54e7d02f6167525417802111') + +_gituri="git://git.cinelerra.org/CinelerraCV.git" +_gitdir="cinelerra" + +_confit() { + ./configure --prefix=/usr \ + --with-buildinfo=git/recompile \ + --with-external-ffmpeg \ + --enable-opengl \ + --disable-esd $@ +} + +build() { + msg "Connecting to GIT server...." + + if [ -d $_gitdir ] ; then + cd $_gitdir && git pull origin + msg "The local files are updated." + else + git clone $_gituri -b rel$_gitrel $_gitdir + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitdir-build" + cp -r "$srcdir/$_gitdir" "$srcdir/$_gitdir-build" + cd "$srcdir/$_gitdir-build" + + # gcc 4.6 workaround + export CFLAGS+=" -Wwrite-strings -D__STDC_CONSTANT_MACROS" + export CPPFLAGS="$CFLAGS" + + # remove executable stack + export LDFLAGS+=" -Wl,-z,noexecstack" + + # v4l1 removal patch + patch -Np1 -i "$srcdir/v4l1_removal.patch" + + # new ffmpeg api patch + patch -Np1 -i "$srcdir/ffmpeg_api.patch" + + sed -i -e '/Debian/d' admin/nasm + + # if you don't need OpenGL comment out the next line (and no glu/mesa dep) + sed -i '/\/X11R6/s///' configure.in + + ./autogen.sh + + if [ "$CARCH" = 'x86_64' ]; then + _confit --disable-mmx + else + _confit --enable-mmx + fi + + make +} + +package() { + cd "$srcdir/$_gitdir-build" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: |