From owner-dev-commits-ports-main@freebsd.org Tue Aug 10 14:47:49 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 AAB61669A6A; Tue, 10 Aug 2021 14:47:49 +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 4GkbQs4DCxz4jMg; Tue, 10 Aug 2021 14:47:49 +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 7940D1D9BF; Tue, 10 Aug 2021 14:47:49 +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 17AElnV8085134; Tue, 10 Aug 2021 14:47:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17AEln5J085133; Tue, 10 Aug 2021 14:47:49 GMT (envelope-from git) Date: Tue, 10 Aug 2021 14:47:49 GMT Message-Id: <202108101447.17AEln5J085133@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: 5407477bf71d - main - graphics/p5-ming: 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: 5407477bf71d072b0387a53ffd284759b2e5e8d9 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: Tue, 10 Aug 2021 14:47:49 -0000 The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=5407477bf71d072b0387a53ffd284759b2e5e8d9 commit 5407477bf71d072b0387a53ffd284759b2e5e8d9 Author: Tobias C. Berner AuthorDate: 2021-08-10 14:46:10 +0000 Commit: Tobias C. Berner CommitDate: 2021-08-10 14:47:37 +0000 graphics/p5-ming: 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 --- graphics/p5-ming/Makefile | 4 +++- graphics/p5-ming/files/patch-configure.in | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/graphics/p5-ming/Makefile b/graphics/p5-ming/Makefile index 7214e5e5e84d..4163403a6b47 100644 --- a/graphics/p5-ming/Makefile +++ b/graphics/p5-ming/Makefile @@ -19,7 +19,7 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \ libming.so:graphics/ming \ libpng.so:graphics/png -USES= autoreconf bison gmake libtool localbase perl5 shebangfix +USES= autoreconf bison gmake libtool localbase perl5 pkgconfig shebangfix CONFIGURE_ARGS= --enable-perl GNU_CONFIGURE= yes @@ -38,6 +38,8 @@ SHEBANG_FILES= perl_ext/examples/*.cgi OPTIONS_DEFINE= EXAMPLES +BINARY_ALIAS= freetype-config=true + post-patch: @${REINPLACE_CMD} -e '/ming_is_compiled()/ s|^|#|; /LIBS/d' ${WRKSRC}/perl_ext/Makefile.PL @${REINPLACE_CMD} -e 's|\.3pm|.3|g' ${WRKSRC}/perl_ext/Makefile.PL ${WRKSRC}/perl_ext/mkdoc diff --git a/graphics/p5-ming/files/patch-configure.in b/graphics/p5-ming/files/patch-configure.in new file mode 100644 index 000000000000..0c3332359d41 --- /dev/null +++ b/graphics/p5-ming/files/patch-configure.in @@ -0,0 +1,13 @@ +--- configure.in.orig 2021-08-10 14:43:41 UTC ++++ configure.in +@@ -272,8 +272,8 @@ if test "$freetype_support" = "yes"; then + ft_config="$freetype_config" + fi + +- FREETYPE_CFLAGS="`$ft_config --cflags`" +- FREETYPE_LIBS="`$ft_config --libs`" ++ FREETYPE_CFLAGS="`pkg-config freetype2 --cflags`" ++ FREETYPE_LIBS="`pkg-config freetype2 --libs`" + + AC_SUBST(FREETYPE_LIBS) + AC_SUBST(FREETYPE_CFLAGS)