aboutsummaryrefslogtreecommitdiffstats
path: root/main/ortp/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-07-02 14:45:48 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-07-02 14:45:53 +0000
commit78b5a858feee29a16d6de196c43cb8ba46c5f9a5 (patch)
tree8057275038989e3e0aef6c00735fffd876f03369 /main/ortp/APKBUILD
parent61089b518583ea8d3aebee3610e03e8dc6db429f (diff)
downloadaports-78b5a858feee29a16d6de196c43cb8ba46c5f9a5.tar.gz
aports-78b5a858feee29a16d6de196c43cb8ba46c5f9a5.tar.bz2
aports-78b5a858feee29a16d6de196c43cb8ba46c5f9a5.tar.xz
main/ortp: refactored APKBUILD with cmake, added -doc subpkg
Diffstat (limited to 'main/ortp/APKBUILD')
-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"