updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / openmovieeditor / PKGBUILD
blob0dc8e6b8131af17d22779197a355f47ed48d5a20
1 # $Id: PKGBUILD 57798 2011-11-03 09:05:56Z spupykin $
2 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
3 # Maintainer: Robert Emil Berge
4 # Maintainer: Mateusz Herych <heniekk@gmail.com>
6 pkgname=openmovieeditor
7 pkgver=0.0.20090105
8 pkgrel=8
9 pkgdesc="A simple video editor"
10 arch=('i686' 'x86_64')
11 url="http://openmovieeditor.sourceforge.net/HomePage"
12 license=('GPL')
13 depends=('libquicktime' 'libsamplerate' 'fltk' 'jack'
14          'portaudio' 'gmerlin-avdecoder' 'libxtst')
15 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
16 md5sums=('ce4f76c0b3e90aabf9c2d5c8dd31e9b1')
18 build() {
19   cd $srcdir/$pkgname-$pkgver
20   unset LDFLAGS
22   export CFLAGS="$CFLAGS -fpermissive"
23   export CXXFLAGS="$CXXFLAGS -fpermissive"
24   export CPPFLAGS="$CPPFLAGS -fpermissive"
25   sed -i 's|= sizes();|= (short*)sizes();|g' src/Fl_Split.cpp
27   # Fix missing includes
28   sed -e 's|<sstream>|<sstream>\n#include <stdint.h>|' -i src/VideoViewGL.H
29   sed -e 's|<string>|<string>\n#include <stdint.h>|' -i src/WaveForm.H
30   sed -e 's|<stdint.h>|<stdint.h>\n#include <stdio.h>|' -i src/AddCommand.H
31   sed -e 's|<string>|<stdint.h>\n#include <stdio.h>|' -i src/MediaBrowser.H
32   sed -e 's|<iostream>|<iostream>\n#include <stdio.h>|' -i src/fl_font_browser.h
34   ./configure --prefix=/usr
35   make
36   make DESTDIR=$pkgdir install