From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93FDF1382C5 for ; Fri, 18 Jun 2021 21:07:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD225E087E; Fri, 18 Jun 2021 21:07:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B132CE086E for ; Fri, 18 Jun 2021 21:07:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 99B88340BC0 for ; Fri, 18 Jun 2021 21:07:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 582117C3 for ; Fri, 18 Jun 2021 21:07:38 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1624050428.c2c24ad694d76c541d680eb671a34dd04838cbf4.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/pmars-sdl/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild X-VCS-Directories: games-simulation/pmars-sdl/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: c2c24ad694d76c541d680eb671a34dd04838cbf4 X-VCS-Branch: master Date: Fri, 18 Jun 2021 21:07:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1329fc74-957b-4e3c-a7cc-227d0ea7b005 X-Archives-Hash: 2411641ed904d8e71235f783fb0af46c commit: c2c24ad694d76c541d680eb671a34dd04838cbf4 Author: Sam James gentoo org> AuthorDate: Fri Jun 18 21:07:08 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Fri Jun 18 21:07:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c24ad6 games-simulation/pmars-sdl: use pkg-config to find ncurses, x11 Signed-off-by: Sam James gentoo.org> Signed-off-by: David Seifert gentoo.org> games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild index ae564aa94c0..df1ca5fb51e 100644 --- a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild +++ b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild @@ -25,6 +25,7 @@ RDEPEND=" !sdl? ( !X? ( sys-libs/ncurses:0= ) ) " DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}"/${P}-format.patch @@ -46,15 +47,15 @@ src_compile() { append-cflags $(sdl-config --cflags) append-cppflags -DSDLGRAPHX - LIB=$(sdl-config --libs) + LIB="$(sdl-config --libs)" elif use X ; then append-cppflags -DXWINGRAPHX - LIB="-L${ESYSROOT}/usr/X11R6/lib -lX11" + LIB="$($(tc-getPKG_CONFIG) --libs x11)" else append-cppflags -DCURSESGRAPHX - LIB="-lcurses -ltinfo" + LIB="$($(tc-getPKG_CONFIG) --libs ncurses)" fi cd src || die