aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-04-13 18:14:05 +0000
committeralice <alice@ayaya.dev>2022-04-13 18:55:00 +0000
commitfb5a6c4cf0d8923fecf002f0f09a2fb2ea7f0158 (patch)
tree269cdef36f5212f67a2f8f5d807a03b214abf590
parente84a0094a4771b2c460eb69dff2a5830dc5dfce4 (diff)
downloadaports-fb5a6c4cf0d8923fecf002f0f09a2fb2ea7f0158.tar.gz
aports-fb5a6c4cf0d8923fecf002f0f09a2fb2ea7f0158.tar.bz2
aports-fb5a6c4cf0d8923fecf002f0f09a2fb2ea7f0158.tar.xz
community/libsrt: set BUILD_TYPE=MinSizeRel and build with samurai
-rw-r--r--community/libsrt/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/community/libsrt/APKBUILD b/community/libsrt/APKBUILD
index 6fd490277f..da6c374b5a 100644
--- a/community/libsrt/APKBUILD
+++ b/community/libsrt/APKBUILD
@@ -8,7 +8,7 @@ options="!check" # TestMuxer.IPv4_and_IPv6 fail when setting up IPv6
url="https://www.srtalliance.org/"
arch="all"
license="MPL-2.0"
-makedepends="cmake openssl-dev linux-headers"
+makedepends="cmake openssl-dev linux-headers samurai"
checkdepends="gtest-dev"
subpackages="$pkgname-progs $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Haivision/srt/archive/v$pkgver.tar.gz
@@ -19,11 +19,10 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake -B build \
+ cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
- -DCMAKE_BUILD_TYPE=None \
- -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DENABLE_UNITTESTS="$(want_check && echo ON || echo OFF)" \
-DENABLE_TESTING="$(want_check && echo ON || echo OFF)" \
-DENABLE_STATIC=OFF \