summaryrefslogtreecommitdiff
path: root/community/openmovieeditor/PKGBUILD
blob: 00bca41d7e6d44f8a3429a25914f8338b151e996 (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
# $Id: PKGBUILD 9280 2010-01-24 22:58:30Z foutrelis $
# Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
# Maintainer: Robert Emil Berge
# Maintainer: Mateusz Herych <heniekk@gmail.com>
pkgname=openmovieeditor
pkgver=0.0.20090105
pkgrel=6
pkgdesc="A simple video editor"
arch=('i686' 'x86_64')
url="http://openmovieeditor.sourceforge.net/HomePage"
license=('GPL')
depends=('libquicktime' 'libsamplerate' 'fltk' 'jack-audio-connection-kit' 'portaudio' 'gmerlin-avdecoder')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('ce4f76c0b3e90aabf9c2d5c8dd31e9b1')

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

  # 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 || return 1
  make DESTDIR=$pkgdir install
}