blob: a1ff2ad912c18ed03db44a06a2edc7e92346ab25 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: Mika Havela
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ptlib
pkgver=2.10.10
pkgrel=2
pkgdesc="Portable Tools Library"
url="http://www.opalvoip.org/"
arch="all"
license="MPLv1.0"
depends=""
depends_dev="expat-dev openssl-dev sdl-dev alsa-lib-dev"
makedepends="$depends_dev boost-dev v4l-utils-dev flex bison"
install=""
subpackages="$pkgname-dev"
source="http://download.gnome.org/sources/ptlib/2.10/ptlib-$pkgver.tar.xz
ptlib-fixcamcrash.patch"
_builddir="$srcdir"/ptlib-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-static \
--enable-plugins \
--enable-alsa \
--disable-oss \
--enable-v4l2 \
--disable-avc \
--disable-v4l \
--disable-pulse \
--disable-resolver \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/ptlib "$subpkgdir"/usr/share/
}
md5sums="1fd609e25f101393bb7e42fbf874c174 ptlib-2.10.10.tar.xz
5a727140c59bcd71c2f41a70821e8917 ptlib-fixcamcrash.patch"
sha256sums="7fcaabe194cbd3bc0b370b951dffd19cfe7ea0298bfff6aecee948e97f3207e4 ptlib-2.10.10.tar.xz
9d24ce87ae71b738b1744955bd0516a3b849b2fbb573e266b77046b41803f1a1 ptlib-fixcamcrash.patch"
sha512sums="9b1490fa7c5c29b9295d560313b457c61091d0ddc8241f40e080acbfbb80bac685d3b2ad81d3c13628ad2816bebc142ac80de536c4cfb8cd48bfb514c0d8a820 ptlib-2.10.10.tar.xz
d0809d3b1b90cba41543e69e574c98a011d5e88181d98c42ea005ecf0a1f39c86f76be9360e11c4227c6f5157e49532468c6bcce633e28225d052a124204c35c ptlib-fixcamcrash.patch"
|