games-engines/zoom: Find libXft with pkg-config rather than xft-config

Closes: https://bugs.gentoo.org/967824
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot 2025-12-21 11:45:30 +00:00
parent c94fa9beeb
commit efba465006
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,15 @@
--- a/configure.in
+++ b/configure.in
@@ -356,10 +356,10 @@
# If Xft is installed, then there will be a xft-config file on the current path
AC_MSG_CHECKING([for xft-config])
- XFTCONFIG=`which xft-config`
+ XFTCONFIG="${PKG_CONFIG:-pkg-config} xft"
XFT_CFLAGS=""
XFT_LIBS=""
- if test -x ${XFTCONFIG}; then
+ if ${XFTCONFIG} --exists; then
AC_MSG_RESULT([$XFTCONFIG])
XFT_CFLAGS=`${XFTCONFIG} --cflags`
XFT_LIBS=`${XFTCONFIG} --libs`

View File

@ -1,8 +1,10 @@
# Copyright 1999-2024 Gentoo Authors # Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
inherit autotools
DESCRIPTION="Fast, clean, modern Z-code interpreter for X" DESCRIPTION="Fast, clean, modern Z-code interpreter for X"
HOMEPAGE="https://www.logicalshift.co.uk/unix/zoom/" HOMEPAGE="https://www.logicalshift.co.uk/unix/zoom/"
SRC_URI="https://www.logicalshift.co.uk/unix/zoom/${P}.tar.gz" SRC_URI="https://www.logicalshift.co.uk/unix/zoom/${P}.tar.gz"
@ -20,8 +22,19 @@ RDEPEND="!net-im/zoom[zoom-symlink(+)]
DEPEND="${RDEPEND} DEPEND="${RDEPEND}
dev-lang/perl dev-lang/perl
x11-base/xorg-proto" x11-base/xorg-proto"
BDEPEND="
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}"/${P}-gcc7.patch ) PATCHES=(
"${FILESDIR}"/${P}-gcc7.patch
"${FILESDIR}"/${P}-xft-config.patch
)
src_prepare() {
default
AT_M4DIR="m4" eautoreconf
}
src_install() { src_install() {
default default