aboutsummaryrefslogtreecommitdiffstats
path: root/main/ortp
diff options
context:
space:
mode:
Diffstat (limited to 'main/ortp')
-rw-r--r--main/ortp/APKBUILD26
1 files changed, 17 insertions, 9 deletions
diff --git a/main/ortp/APKBUILD b/main/ortp/APKBUILD
index 393134bf3f..bf5059648b 100644
--- a/main/ortp/APKBUILD
+++ b/main/ortp/APKBUILD
@@ -3,23 +3,25 @@
pkgname=ortp
pkgver=1.0.2
_pkgver=${pkgver}-0
-pkgrel=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="libtool automake autoconf bctoolbox-dev"
-subpackages="$pkgname-dev"
+makedepends="cmake bctoolbox-dev"
+subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://www.linphone.org/releases/sources/ortp/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
-prepare() {
- default_prepare
- ./autogen.sh
-}
-
build() {
- ./configure --prefix=/usr
+ 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
}
@@ -27,4 +29,10 @@ 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
+}
+
sha512sums="653f0a607ff8a3d44a81ff73840ffe121140d04288965f18e8e9dc1d09c28eb86cf8efef3b2bbbdff0e76299a2cf87a28d8028a70bf1918616fb10c61d77f95e ortp-1.0.2.tar.gz"