1 # Maintainer: Jan de Groot <jan@archlinux.org>
2 # Contributor: Tom K <tomk@runbox.com>
6 pkgdesc="Open Phone Abstraction Library"
8 url="http://www.opalvoip.org"
10 depends=(ptlib libtheora x264 speex gsm celt)
12 source=(https://downloads.sourceforge.net/opalvoip/$pkgname-$pkgver.tar.bz2
13 disable-samples-ftbfs.diff
15 sha256sums=('f38e7969e88a28dd9a10a6051315aceecde79d0bbd1a35676868dc5787aed706'
16 'f6497c74bbfd47fac036ff97dd74e8c87e6040d686944d29a926ccf3b7525be2'
17 'cb7270055f1f2a29dec19ecab398ce0e75b1e440312e17df8a893308bfb3732c')
21 patch -Np1 -i ../disable-samples-ftbfs.diff
22 patch -Np1 -i ../opal-gcc7.patch # Fix build with GCC 7
23 sed -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' -i src/im/msrp.cxx
28 CXXFLAGS="$CXXFLAGS -fpermissive" \
29 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
36 make DESTDIR="${pkgdir}" install