aboutsummaryrefslogtreecommitdiffstats
path: root/main/ortp/APKBUILD
blob: 38419913bfbf63a77124ff2667b2aa3c7fee4f3e (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ortp
pkgver=1.0.2
_pkgver=${pkgver}-0
pkgrel=1
pkgdesc="oRTP is a library implemeting Real-time Transport Protocol (RFC3550), licensed under LGPL"
url="http://www.linphone.org/technical-corner/ortp"
arch="all"
options="!check" #no test avail
license="LGPL-2.0-or-later VSL"
makedepends="cmake bctoolbox-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://www.linphone.org/releases/sources/ortp/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_MODULE_PATH=/usr/lib/cmake \
		-DCMAKE_SKIP_INSTALL_RPATH=ON \
		-DENABLE_STATIC=NO \
		-DENABLE_SHARED=YES .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

dev()  {
	default_dev
	mkdir -p "$subpkgdir"/usr/lib/cmake/oRTP
	mv "$pkgdir"/usr/share/oRTP/cmake/* "$subpkgdir"/usr/lib/cmake/oRTP
	# Remove empty dirs
	rmdir "$pkgdir"/usr/share/oRTP/cmake
	rmdir "$pkgdir"/usr/share/oRTP
	rmdir "$pkgdir"/usr/share
}

sha512sums="653f0a607ff8a3d44a81ff73840ffe121140d04288965f18e8e9dc1d09c28eb86cf8efef3b2bbbdff0e76299a2cf87a28d8028a70bf1918616fb10c61d77f95e  ortp-1.0.2.tar.gz"