media-libs/libbpg: Add -lnuma to X265_LIBS instead of to LIBS.

X265_LIBS is only used in bpgenc binary, LIBS in bpgenc bpgdec and
bpgview.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod 2021-04-30 23:18:30 +02:00
parent 5dd356ea48
commit df1e257df3
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07

View File

@ -47,6 +47,8 @@ Version: ${PV}
Libs: "-L\${libdir}" -lbpg Libs: "-L\${libdir}" -lbpg
Cflags: "-I\${includedir}" Cflags: "-I\${includedir}"
EOF EOF
sed -Ei 's/^(X265_LIBS:=.+\.a)$/\1 -lnuma/' Makefile || die
} }
src_compile() { src_compile() {
@ -56,8 +58,7 @@ src_compile() {
$(usex jctvc USE_JCTVC=y '') \ $(usex jctvc USE_JCTVC=y '') \
$(usex emcc USE_EMCC=y '') \ $(usex emcc USE_EMCC=y '') \
CXX="$(tc-getCXX)" \ CXX="$(tc-getCXX)" \
CC="$(tc-getCC)" \ CC="$(tc-getCC)"
LIBS="-lrt -lm -lpthread -lnuma"
} }
src_install() { src_install() {