games-puzzle/zaz: call pkg-config via toolchain-funcs.eclass helper

This ensures we call the correct pkg-config in e.g. cross.

Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-07 06:12:27 +01:00
parent c909bc83e9
commit 9d7d59894e

View File

@@ -1,8 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic xdg
inherit autotools flag-o-matic xdg toolchain-funcs
DESCRIPTION="A puzzle game where the player has to arrange balls in triplets"
HOMEPAGE="https://sourceforge.net/projects/zaz/"
@@ -39,8 +40,8 @@ src_prepare() {
src_configure() {
append-libs -lvorbis
append-cflags $(pkg-config sdl --cflags)
append-cxxflags $(pkg-config sdl --cflags)
append-cflags $($(tc-getPKG_CONFIG) sdl --cflags)
append-cxxflags $($(tc-getPKG_CONFIG) sdl --cflags)
econf \
--with-applicationdir=/usr/share/applications \
--with-icondir=/usr/share/pixmaps \