blob: 625ff78d8e95578a47655f264fad5a39f2711978 (
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
|
#!/bin/sh
NAME="live-media"
DESC="A set of C++ libraries for multimedia streaming"
MAKEDEPS="openssl"
PKG_VER=2022.07.14
SOURCE="https://download.videolan.org/contrib/live555/live.$PKG_VER.tar.gz"
ADDITIONAL="
0001-Add-a-pkg-config-file-for-the-shared-libraries.patch
0003-Link-shared-libraries-with-g-instead-of-gcc-to-fix-b.patch
"
prepare () {
apply_patches
}
build() {
./genMakefiles linux-with-shared-libraries
make PREFIX=/usr LIBDIR=/usr/lib
}
package() {
local testprog f so
mkdir -p "$PKG_DEST"/usr/lib
for f in BasicUsageEnvironment UsageEnvironment liveMedia groupsock; do
mkdir -p "$PKG_DEST"/usr/include/$f
cp $f/include/*.h* "$PKG_DEST"/usr/include/$f
for so in $f/lib*.so.*; do
soname=$(scanelf -B --format "#F%S" $so)
cp $so "$PKG_DEST"/usr/lib/
so=${so##*/}
ln -s $so "$PKG_DEST"/usr/lib/$soname
ln -s $so "$PKG_DEST"/usr/lib/${soname%.so.*}.so
done
done
mkdir -p "$PKG_DEST"/usr/bin
for testprog in $(find testProgs -type f -perm 755); do
install $testprog "$PKG_DEST"/usr/bin
done
}
|