summaryrefslogtreecommitdiff
path: root/extra/opal/PKGBUILD
blob: 49d97bb11ebf5dbaf17526910476489f8fb6a245 (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 199861 2013-11-17 12:53:54Z bpiotrowski $
# Maintainer: Jan de Groot <jan@archlinux.org>
# Contributor: Tom K <tomk@runbox.com>
pkgname=opal
pkgver=3.10.11
pkgrel=2
pkgdesc="Open Phone Abstraction Library"
arch=(i686 x86_64 'mips64el')
url="http://www.opalvoip.org"
license=(GPL)
depends=(ptlib libtheora x264 speex gsm celt)
makedepends=(ffmpeg)
optdepends=('ffmpeg: h263 and mpeg4 plugins')
options=(!makeflags)
source=(http://downloads.sourceforge.net/opalvoip/$pkgname-$pkgver.tar.bz2
        opal-ffmpeg.patch)
sha256sums=('f38e7969e88a28dd9a10a6051315aceecde79d0bbd1a35676868dc5787aed706'
            '83f60ecf692e004293ce9dbaae7d7eb64d9713d3bfb71a0e7b1a0d1f936794cd')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../opal-ffmpeg.patch
}

build() {
  cd $pkgname-$pkgver
  CXXFLAGS="$CXXFLAGS -fpermissive" \
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="${pkgdir}" install
}