aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ortp/APKBUILD
blob: bc419952a469f4076bbc34d02346a8d94500c2c8 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ortp
pkgver=0.16.1
pkgrel=0
pkgdesc="A C library implementing the RTP protocol (RFC3550)"
url="http://www.linphone.org/index.php/code_review/ortp"
arch="all"
license="LGPLv2+ VSL"
depends=""
makedepends=""
install=""
subpackages="$pkgname-dev"
source="http://nongnu.askapache.com/linphone/ortp/sources/ortp-$pkgver.tar.gz
	ortp-0.16.1-retval.patch
	ortp-0.16.1-unusedvar.patch
	"

_builddir="$srcdir"/ortp-$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 \
		--disable-static \
		--enable-ipv6 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="bc96cdcb9c139d366a720a94200f92dd  ortp-0.16.1.tar.gz
cdd971e04073b3de2e935e6ff502110f  ortp-0.16.1-retval.patch
f3323a01f3d82279c3ce5ed1bb1969c5  ortp-0.16.1-unusedvar.patch"