summaryrefslogtreecommitdiff
path: root/repo/libsrt/libsrt.xibuild
blob: 067c2dd2463d91bc76262128abbf484e23ee097a (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.5.0
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
}