Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libbpg/
Date: Fri, 30 Apr 2021 20:56:51
Message-Id: 1619816185.5dd356ea48b792c0578217ccd754004f616ebc53.tastytea@gentoo
1 commit: 5dd356ea48b792c0578217ccd754004f616ebc53
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Fri Apr 30 20:33:55 2021 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Fri Apr 30 20:56:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5dd356ea
7
8 media-libs/libbpg: Add missing dependencies.
9
10 libnuma support is optional. If sys-process/numactl is installed, it
11 will be used, if not, not. The check for libnuma happens in CMake, which
12 is called by the Makefile. But the Makefile also needs to know if it
13 should link in libnuma or not. No one tells it. I chose the easy way out
14 of this pickle, made libnuma mandatory and added `-lnuma` to LIBS.
15
16 Closes: https://bugs.gentoo.org/781113
17 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
18
19 media-libs/libbpg/libbpg-0.9.8.ebuild | 6 ++++--
20 1 file changed, 4 insertions(+), 2 deletions(-)
21
22 diff --git a/media-libs/libbpg/libbpg-0.9.8.ebuild b/media-libs/libbpg/libbpg-0.9.8.ebuild
23 index 1d8149d0c..265654470 100644
24 --- a/media-libs/libbpg/libbpg-0.9.8.ebuild
25 +++ b/media-libs/libbpg/libbpg-0.9.8.ebuild
26 @@ -21,7 +21,7 @@ PATCHES=(
27 "${FILESDIR}"/${P}-add-fpic.patch
28 )
29
30 -DEPEND=""
31 +DEPEND="sys-process/numactl"
32 RDEPEND="${DEPEND}"
33 BDEPEND="
34 media-video/ffmpeg
35 @@ -29,6 +29,7 @@ BDEPEND="
36 virtual/jpeg
37 bpgview? ( media-libs/sdl-image )
38 bpgview? ( media-libs/libsdl )
39 + dev-lang/yasm
40 "
41
42 src_prepare() {
43 @@ -55,7 +56,8 @@ src_compile() {
44 $(usex jctvc USE_JCTVC=y '') \
45 $(usex emcc USE_EMCC=y '') \
46 CXX="$(tc-getCXX)" \
47 - CC="$(tc-getCC)"
48 + CC="$(tc-getCC)" \
49 + LIBS="-lrt -lm -lpthread -lnuma"
50 }
51
52 src_install() {