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