From owner-dev-commits-ports-main@freebsd.org Fri Aug 6 12:19:13 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D330665504A; Fri, 6 Aug 2021 12:19:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gh4KF5V8rz4Wjd; Fri, 6 Aug 2021 12:19:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0F575AA0; Fri, 6 Aug 2021 12:19:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 176CJDnb065423; Fri, 6 Aug 2021 12:19:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 176CJDXa065422; Fri, 6 Aug 2021 12:19:13 GMT (envelope-from git) Date: Fri, 6 Aug 2021 12:19:13 GMT Message-Id: <202108061219.176CJDXa065422@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Tobias C. Berner" Subject: git: 0e6688a40ed8 - main - games/brutalchess: prepare for freetype2 update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tcberner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e6688a40ed805ec4f505b76f5bfa6b693a657ae Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 12:19:13 -0000 The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=0e6688a40ed805ec4f505b76f5bfa6b693a657ae commit 0e6688a40ed805ec4f505b76f5bfa6b693a657ae Author: Tobias C. Berner AuthorDate: 2021-08-06 12:17:00 +0000 Commit: Tobias C. Berner CommitDate: 2021-08-06 12:18:56 +0000 games/brutalchess: prepare for freetype2 update - freetype2 will no longer ship freetype-config (which was a pkg-config wrapper) in the near future -- use pkg-config to gather the required flags. PR: 251512 --- games/brutalchess/Makefile | 3 ++- games/brutalchess/files/patch-configure | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/games/brutalchess/Makefile b/games/brutalchess/Makefile index 644a47aba27d..0b2678623b3a 100644 --- a/games/brutalchess/Makefile +++ b/games/brutalchess/Makefile @@ -15,11 +15,12 @@ COMMENT= Nice looking OpenGL chess game WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} GNU_CONFIGURE= yes -USES= dos2unix gl gmake libtool sdl xorg +USES= dos2unix gl gmake libtool pkgconfig sdl xorg USE_GL= yes USE_SDL= sdl image USE_XORG= x11 xext xt xmu xi INSTALL_TARGET= install-strip +BINARY_ALIAS= freetype-config=true pre-build: ${CHMOD} 0755 ${WRKSRC}/install-sh diff --git a/games/brutalchess/files/patch-configure b/games/brutalchess/files/patch-configure new file mode 100644 index 000000000000..cd5ce6453ab3 --- /dev/null +++ b/games/brutalchess/files/patch-configure @@ -0,0 +1,21 @@ +--- configure.orig 2021-08-06 12:14:42 UTC ++++ configure +@@ -7998,13 +7998,13 @@ echo $ECHO_N "checking for FreeType -- version >= $min + if test "$FT2_CONFIG" = "no" ; then + no_ft=yes + else +- FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` +- FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` +- ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ ++ FT2_CFLAGS=`pkg-config freetype2 --cflags` ++ FT2_LIBS=`pkg-config freetype2 --libs` ++ ft_config_major_version=`pkg-config freetype2 --modversion | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` +- ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ ++ ft_config_minor_version=`pkg-config freetype2 --modversion | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` +- ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ ++ ft_config_micro_version=`pkg-config freetype2 --modversion | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + ft_min_major_version=`echo $min_ft_version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`