blob: 1cef0f71238ecd087ff25979a026c44a6639cacc (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mediastreamer2
pkgver=5.3.38
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="
alsa-lib-dev
bcg729-dev
bctoolbox-dev
bzrtp-dev
cmake
doxygen
ffmpeg4-dev
gettext-dev
glew-dev
graphviz
grep
gsm-dev
jpeg-dev
libpcap-dev
libsrtp-dev
libtheora-dev
libvpx-dev
libxml2-dev
libxv-dev
mesa-dev
opus-dev
ortp-dev
python3-dev
samurai
spandsp-dev
speex-dev
speexdsp-dev
sqlite-dev
tiff-dev
v4l-utils-dev
"
subpackages="$pkgname-dev $pkgname-doc"
source="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/$pkgver/mediastreamer2-$pkgver.tar.gz
fix-cmake-path.patch
fix-soname.patch
"
build() {
cmake -G Ninja -B build \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-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 \
-DBUILD_SHARED_LIBS=YES \
-DENABLE_VPX=YES \
-DENABLE_UNIT_TESTS=NO
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
rm -r "$pkgdir"/usr/include/OpenGL
}
sha512sums="
1c3da2ccf14e01f5f439e0264b130088f592c659999dcf3da5f429a7c3caf1ea535c483ef197302eb3f3bfc28ba524dbb034fc2265f9cb59f3872016377488b8 mediastreamer2-5.3.38.tar.gz
964467b5f493915d4e920b3afce9ce0cacc9bb34a7886c4b4e06340d6fa646754a03ce18ec66a4a3b82d63ec52330a0b21c842d80e47a6685eb942bb01b1869b fix-cmake-path.patch
9aa98303d53c622cd8ee6386544db337eb5069d86754876d6901a0d9bebe6e6d623f41c7ae900bb2649254b503ee63367ce612bc4bec9423fc3d57cfece119c2 fix-soname.patch
"
|