summaryrefslogtreecommitdiff
path: root/media-video
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-08-25 17:07:42 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-08-25 17:07:42 -0400
commitea20d46555722382699e6d9d7cb43166a1e711cf (patch)
treed24c49dc1800a4d803bfe4049c610766b1c1b65b /media-video
parent92e314fa0154f490edf2fb27f693a23ba562220e (diff)
downloadgentoo-overlay-ea20d46555722382699e6d9d7cb43166a1e711cf.tar.xz
gentoo-overlay-ea20d46555722382699e6d9d7cb43166a1e711cf.zip
media-video/rav1e: add USE=static-libs
Diffstat (limited to 'media-video')
-rw-r--r--media-video/rav1e/rav1e-0.5.0_beta-r1.ebuild (renamed from media-video/rav1e/rav1e-0.5.0_beta.ebuild)4
1 files changed, 3 insertions, 1 deletions
diff --git a/media-video/rav1e/rav1e-0.5.0_beta.ebuild b/media-video/rav1e/rav1e-0.5.0_beta-r1.ebuild
index 4b815f4..fbb0466 100644
--- a/media-video/rav1e/rav1e-0.5.0_beta.ebuild
+++ b/media-video/rav1e/rav1e-0.5.0_beta-r1.ebuild
@@ -196,7 +196,7 @@ RESTRICT=""
LICENSE="BSD-2 Apache-2.0 MIT Unlicense"
SLOT="0"
-IUSE="+capi"
+IUSE="+capi static-libs"
ASM_DEP=">=dev-lang/nasm-2.15"
BDEPEND="
@@ -226,6 +226,7 @@ src_compile() {
if use capi; then
cargo cbuild ${args} --target-dir="capi" \
--prefix="/usr" --libdir="/usr/$(get_libdir)" \
+ --library-type=$(usex static-libs cdylib,staticlib cdylib) \
|| die "cargo cbuild failed"
fi
}
@@ -237,6 +238,7 @@ src_install() {
if use capi; then
cargo cinstall $args --target-dir="capi" \
--prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \
+ --library-type=$(usex static-libs cdylib,staticlib cdylib) \
|| die "cargo cinstall failed"
fi