1 |
commit: abae8dd6d869f6709c3513e7f796a31a1d2a7e5a |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Fri Apr 30 18:17:19 2021 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Fri Apr 30 19:57:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=abae8dd6 |
7 |
|
8 |
media-libs/libbpg: Set CC and CXX for CMake. |
9 |
|
10 |
CMake is called from the Makefile and it can't find the compilers if |
11 |
there are no `cc` and `cxx` symlinks. Inheriting cmake.eclass would |
12 |
require us to run cmake_src_prepare which would interfere with |
13 |
upstream's build system. |
14 |
|
15 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
16 |
|
17 |
media-libs/libbpg/libbpg-0.9.8.ebuild | 6 +++++- |
18 |
1 file changed, 5 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/media-libs/libbpg/libbpg-0.9.8.ebuild b/media-libs/libbpg/libbpg-0.9.8.ebuild |
21 |
index e1120b791..1d8149d0c 100644 |
22 |
--- a/media-libs/libbpg/libbpg-0.9.8.ebuild |
23 |
+++ b/media-libs/libbpg/libbpg-0.9.8.ebuild |
24 |
@@ -3,6 +3,8 @@ |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
DESCRIPTION="Better Portable Graphics reference implementation" |
31 |
HOMEPAGE="https://bellard.org/bpg/" |
32 |
SRC_URI="https://bellard.org/bpg/${P}.tar.gz" |
33 |
@@ -51,7 +53,9 @@ src_compile() { |
34 |
$(usex x265 USE_X265=y '') \ |
35 |
$(usex bpgview USE_BPGVIEW=y '') \ |
36 |
$(usex jctvc USE_JCTVC=y '') \ |
37 |
- $(usex emcc USE_EMCC=y '') |
38 |
+ $(usex emcc USE_EMCC=y '') \ |
39 |
+ CXX="$(tc-getCXX)" \ |
40 |
+ CC="$(tc-getCC)" |
41 |
} |
42 |
|
43 |
src_install() { |