From owner-dev-commits-ports-main@freebsd.org Fri Aug 6 14:10:00 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 7D9E065782C; Fri, 6 Aug 2021 14:10:00 +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 4Gh6n42wV9z4f5W; Fri, 6 Aug 2021 14:10:00 +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 472E7712B; Fri, 6 Aug 2021 14:10:00 +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 176EA0nY017267; Fri, 6 Aug 2021 14:10:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 176EA0vZ017263; Fri, 6 Aug 2021 14:10:00 GMT (envelope-from git) Date: Fri, 6 Aug 2021 14:10:00 GMT Message-Id: <202108061410.176EA0vZ017263@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: 63c8147ee1aa - main - games/openmortal: 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: 63c8147ee1aafa7d42d24407f3905aed7408f182 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 14:10:00 -0000 The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=63c8147ee1aafa7d42d24407f3905aed7408f182 commit 63c8147ee1aafa7d42d24407f3905aed7408f182 Author: Tobias C. Berner AuthorDate: 2021-08-06 13:34:24 +0000 Commit: Tobias C. Berner CommitDate: 2021-08-06 14:09:31 +0000 games/openmortal: 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/openmortal/Makefile | 4 +++- games/openmortal/files/patch-configure | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/games/openmortal/Makefile b/games/openmortal/Makefile index 8081762f52b6..a5db4d35feb6 100644 --- a/games/openmortal/Makefile +++ b/games/openmortal/Makefile @@ -11,7 +11,7 @@ COMMENT= Parody of the once popular coin-up fighting game, Mortal Kombat LIB_DEPENDS= libfreetype.so:print/freetype2 -USES= dos2unix perl5 sdl tar:bzip2 +USES= dos2unix perl5 pkgconfig sdl tar:bzip2 GNU_CONFIGURE= yes USE_SDL= mixer image sdl net DOS2UNIX_FILES= src/gfx.cpp @@ -19,4 +19,6 @@ DOS2UNIX_FILES= src/gfx.cpp PLIST_FILES= bin/${PORTNAME} PORTDATA= * +BINARY_ALIAS= freetype-config=true + .include diff --git a/games/openmortal/files/patch-configure b/games/openmortal/files/patch-configure new file mode 100644 index 000000000000..a7680ba7d5b0 --- /dev/null +++ b/games/openmortal/files/patch-configure @@ -0,0 +1,21 @@ +--- configure.orig 2021-08-06 13:30:20 UTC ++++ configure +@@ -1685,13 +1685,13 @@ no_ft="" + 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/'`