diff options
author | psykose <alice@ayaya.dev> | 2022-04-13 18:14:05 +0000 |
---|---|---|
committer | alice <alice@ayaya.dev> | 2022-04-13 18:55:00 +0000 |
commit | fb5a6c4cf0d8923fecf002f0f09a2fb2ea7f0158 (patch) | |
tree | 269cdef36f5212f67a2f8f5d807a03b214abf590 | |
parent | e84a0094a4771b2c460eb69dff2a5830dc5dfce4 (diff) |
community/libsrt: set BUILD_TYPE=MinSizeRel and build with samurai
-rw-r--r-- | community/libsrt/APKBUILD | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/community/libsrt/APKBUILD b/community/libsrt/APKBUILD index 6fd490277f1..da6c374b5a1 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 \ |