summaryrefslogtreecommitdiff
path: root/repo/media/libsrt.xibuild
blob: 3d79326062939446051b88416d42916e4107338a (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
#!/bin/sh

NAME="libsrt"
DESC="Secure Reliable Transport (SRT)"

MAKEDEPS="cmake "
DEPS="openssl musl"

PKG_VER=1.4.4
SOURCE="https://github.com/Haivision/srt/archive/v$PKG_VER.tar.gz"
ADDITIONAL="fix-cmake.patch "

prepare () {
    apply_patches
}

build () {
    cmake -B build \
        -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DBUILD_SHARED_LIBS=True \
        -DBUILD_STATIC_LIBS=OFF
	cmake --build build
}

package () {
	DESTDIR="$PKG_DEST" cmake --install build
}