commit:     5dd356ea48b792c0578217ccd754004f616ebc53
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Apr 30 20:33:55 2021 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Apr 30 20:56:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5dd356ea

media-libs/libbpg: Add missing dependencies.

libnuma support is optional. If sys-process/numactl is installed, it
will be used, if not, not. The check for libnuma happens in CMake, which
is called by the Makefile. But the Makefile also needs to know if it
should link in libnuma or not. No one tells it. I chose the easy way out
of this pickle, made libnuma mandatory and added `-lnuma` to LIBS.

Closes: https://bugs.gentoo.org/781113
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 media-libs/libbpg/libbpg-0.9.8.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-libs/libbpg/libbpg-0.9.8.ebuild 
b/media-libs/libbpg/libbpg-0.9.8.ebuild
index 1d8149d0c..265654470 100644
--- a/media-libs/libbpg/libbpg-0.9.8.ebuild
+++ b/media-libs/libbpg/libbpg-0.9.8.ebuild
@@ -21,7 +21,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-add-fpic.patch
 )
 
-DEPEND=""
+DEPEND="sys-process/numactl"
 RDEPEND="${DEPEND}"
 BDEPEND="
        media-video/ffmpeg
@@ -29,6 +29,7 @@ BDEPEND="
        virtual/jpeg
        bpgview? ( media-libs/sdl-image )
        bpgview? ( media-libs/libsdl )
+       dev-lang/yasm
 "
 
 src_prepare() {
@@ -55,7 +56,8 @@ src_compile() {
                $(usex jctvc USE_JCTVC=y '') \
                $(usex emcc USE_EMCC=y '') \
                CXX="$(tc-getCXX)" \
-               CC="$(tc-getCC)"
+               CC="$(tc-getCC)" \
+               LIBS="-lrt -lm -lpthread -lnuma"
 }
 
 src_install() {

Reply via email to