commit:     65f231d3f8e95477c26ffeab12e5f748b35df26d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 18 21:06:53 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Jun 18 21:06:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65f231d3

games-emulation/zsnes: respect ${PKG_CONFIG}

Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3
Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 games-emulation/zsnes/zsnes-1.51-r9.ebuild | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/games-emulation/zsnes/zsnes-1.51-r9.ebuild 
b/games-emulation/zsnes/zsnes-1.51-r9.ebuild
index a92368d1bf9..f97e76f1228 100644
--- a/games-emulation/zsnes/zsnes-1.51-r9.ebuild
+++ b/games-emulation/zsnes/zsnes-1.51-r9.ebuild
@@ -26,7 +26,7 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="
        dev-lang/nasm
-       debug? ( virtual/pkgconfig )
+       virtual/pkgconfig
 "
 
 PATCHES=(
@@ -74,8 +74,8 @@ src_prepare() {
                -e '/^CFLAGS=.*local/s:-pipe.*:-Wall -I.":' \
                -e '/^LDFLAGS=.*local/d' \
                -e '/\w*CFLAGS=.*fomit/s:-O3.*$STRIP::' \
-               -e '/lncurses/s:-lncurses:`pkg-config ncurses --libs`:' \
-               -e '/lcurses/s:-lcurses:`pkg-config ncurses --libs`:' \
+               -e '/lncurses/s:-lncurses:`${PKG_CONFIG} ncurses --libs`:' \
+               -e '/lcurses/s:-lcurses:`${PKG_CONFIG} ncurses --libs`:' \
                configure.in || die
        sed -i \
                -e 's/configure.in/configure.ac/' \
@@ -85,13 +85,16 @@ src_prepare() {
 }
 
 src_configure() {
-       tc-export CC
+       tc-export CC PKG_CONFIG
+
        export BUILD_CXX=$(tc-getBUILD_CXX)
        export NFLAGS=-O1
+
        use amd64 && multilib_toolchain_setup x86
        use custom-cflags || strip-flags
 
-       append-cppflags -U_FORTIFY_SOURCE       #257963
+       # bug #257963
+       append-cppflags -U_FORTIFY_SOURCE
 
        econf \
                $(use_enable ao libao) \

Reply via email to