blob: ef31b0168fa69c44e65cf2b29a3a0d47c4befff3 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mediastreamer2
pkgver=5.0.58
pkgrel=0
pkgdesc="library written in C that allows you to create and run audio and video streams"
url="https://www.linphone.org/technical-corner/mediastreamer2"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test available
makedepends="cmake gettext-dev ffmpeg-dev ortp-dev
libxv-dev speex-dev speexdsp-dev libsrtp-dev
v4l-utils-dev bctoolbox-dev mesa-dev glew-dev
opus-dev libpcap-dev spandsp-dev tiff-dev libtheora-dev
alsa-lib-dev python3-dev gsm-dev sqlite-dev libxml2-dev
jpeg-dev libvpx-dev bzrtp-dev bcg729-dev"
subpackages="$pkgname-dev"
source="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/$pkgver/mediastreamer2-$pkgver.tar.gz
missing-def-o-binary.patch"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_MODULE_PATH=/usr/lib/cmake \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DENABLE_STRICT=NO \
-DENABLE_ALSA=YES \
-DENABLE_STATIC=NO \
-DENABLE_RESAMPLE=YES \
-DENABLE_JPEG=YES \
-DENABLE_PCAP=YES \
-DENABLE_FFMPEG=YES \
-DENABLE_SPEEX_CODEC=YES \
-DENABLE_SPEEX_DSP=YES \
-DENABLE_SHARED=YES \
-DENABLE_VPX=YES \
-DENABLE_UNIT_TESTS=NO
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/lib/cmake/Mediastreamer2
mv "$pkgdir"/usr/share/Mediastreamer2/cmake/* "$subpkgdir"/usr/lib/cmake/Mediastreamer2
# Remove empty dirs
rmdir "$pkgdir"/usr/share/Mediastreamer2/cmake
rmdir "$pkgdir"/usr/share/Mediastreamer2
}
sha512sums="
20e0d7ad42904826eabe7015f1bfcdd356547e18d99afefba6ae656505bc928ffdfea3454163ea0e0bb2c394c116f81e0b77ce1d4e7189b45b3af9c56bbcb38c mediastreamer2-5.0.58.tar.gz
d0158e03a7552580a9d9f04226c18a31a23d3cc502d52b51a9b083a5c32094ea7349495a7f74316eb727c2478a80b0385e1a28798b5b7d6e85e463485e33a822 missing-def-o-binary.patch
"
|