summaryrefslogtreecommitdiff
path: root/community/openmovieeditor/PKGBUILD
blob: 2ed7aeb39eae118984855849f32f5c459e85fca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 51110 2011-07-05 10:08:30Z spupykin $
# Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
# Maintainer: Robert Emil Berge
# Maintainer: Mateusz Herych <heniekk@gmail.com>
pkgname=openmovieeditor
pkgver=0.0.20090105
pkgrel=7
pkgdesc="A simple video editor"
arch=('i686' 'x86_64' 'mips64el')
url="http://openmovieeditor.sourceforge.net/HomePage"
license=('GPL')
depends=('libquicktime' 'libsamplerate' 'fltk' 'jack' 'portaudio' 'gmerlin-avdecoder')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('ce4f76c0b3e90aabf9c2d5c8dd31e9b1')

build() {
  cd $srcdir/$pkgname-$pkgver
  unset LDFLAGS

  export CFLAGS="$CFLAGS -fpermissive"
  export CXXFLAGS="$CXXFLAGS -fpermissive"
  export CPPFLAGS="$CPPFLAGS -fpermissive"
  sed -i 's|= sizes();|= (short*)sizes();|g' src/Fl_Split.cpp

  # Fix missing includes
  sed -e 's|<sstream>|<sstream>\n#include <stdint.h>|' -i src/VideoViewGL.H
  sed -e 's|<string>|<string>\n#include <stdint.h>|' -i src/WaveForm.H 
  sed -e 's|<stdint.h>|<stdint.h>\n#include <stdio.h>|' -i src/AddCommand.H
  sed -e 's|<string>|<stdint.h>\n#include <stdio.h>|' -i src/MediaBrowser.H
  sed -e 's|<iostream>|<iostream>\n#include <stdio.h>|' -i src/fl_font_browser.h

  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install
}