From owner-dev-commits-ports-main@freebsd.org Sun Sep 19 06:07:12 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 594C36ABE50; Sun, 19 Sep 2021 06:07:12 +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 4HBxzg45JDz3Mw1; Sun, 19 Sep 2021 06:07:11 +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 2195418278; Sun, 19 Sep 2021 06:07:11 +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 18J67B8E052902; Sun, 19 Sep 2021 06:07:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18J67BYt052901; Sun, 19 Sep 2021 06:07:11 GMT (envelope-from git) Date: Sun, 19 Sep 2021 06:07:11 GMT Message-Id: <202109190607.18J67BYt052901@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: ccc0b6055dbd - main - graphics/p5-ming: Replace configure.in patch with upstream one MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ccc0b6055dbd8b78f21c93d46d2e7319c32bd609 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: Sun, 19 Sep 2021 06:07:12 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ccc0b6055dbd8b78f21c93d46d2e7319c32bd609 commit ccc0b6055dbd8b78f21c93d46d2e7319c32bd609 Author: Po-Chuan Hsieh AuthorDate: 2021-09-19 05:28:32 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-19 05:59:52 +0000 graphics/p5-ming: Replace configure.in patch with upstream one - Remove no-op BINARY_ALIAS Obtained from: https://github.com/libming/libming/commit/a89a619e187ebe070db2a1760f3b90489bfff382 --- graphics/p5-ming/Makefile | 2 - graphics/p5-ming/files/patch-configure.in | 73 +++++++++++++++++++++++++++---- 2 files changed, 65 insertions(+), 10 deletions(-) diff --git a/graphics/p5-ming/Makefile b/graphics/p5-ming/Makefile index 4163403a6b47..05626d377a20 100644 --- a/graphics/p5-ming/Makefile +++ b/graphics/p5-ming/Makefile @@ -38,8 +38,6 @@ 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 index 0c3332359d41..1b79fe266905 100644 --- a/graphics/p5-ming/files/patch-configure.in +++ b/graphics/p5-ming/files/patch-configure.in @@ -1,13 +1,70 @@ ---- configure.in.orig 2021-08-10 14:43:41 UTC +Obtained from: https://github.com/libming/libming/commit/a89a619e187ebe070db2a1760f3b90489bfff382 + +--- configure.in.orig 2017-04-07 08:12:56 UTC +++ configure.in -@@ -272,8 +272,8 @@ if test "$freetype_support" = "yes"; then - ft_config="$freetype_config" - fi +@@ -247,7 +247,7 @@ AC_CHECK_LIB(X11, XGetImage, XLIB="-lX11", XLIB="") + AC_ARG_ENABLE( + [freetype], +-[ --enable-freetype Enable freetype support (default: enabled)], ++[ --disable-freetype Disable freetype support (default: enabled)], + [case "${enableval}" in + yes) freetype_support=yes ;; + no) freetype_support=no ;; +@@ -257,26 +257,10 @@ freetype_support=yes) + + if test "$freetype_support" = "yes"; then + dnl Check for the freetype library +- AC_ARG_WITH(freetype-config, [ --with-freetype-config=PROG Use FreeType configuration program PROG], freetype_config=$withval, freetype_config=yes) +- if test "$freetype_config" = "yes"; then +- AC_PATH_PROG(ft_config,freetype-config,no) +- if test "$ft_config" = "no"; then +- echo "To compile ming please install freetype:" +- echo " as .deb user: sudo apt-get install libfreetype6 libfreetype6-dev" +- echo "" +- echo "or disable the freetype configuration option:" +- echo " --disable-freetype" +- AC_MSG_ERROR([Could not detect freetype-config!]) +- fi +- else +- 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) ++ PKG_PROG_PKG_CONFIG ++ PKG_CHECK_MODULES(FREETYPE, freetype2, HAS_FREETYPE=true, ++ AC_MSG_ERROR([Could not find freetype]) ++ ) + fi + + dnl Check for the ungif or gif (new or old) libraries +@@ -334,9 +318,9 @@ if test -n "${ZLIB}" -a -n "${ZLIB_INC}"; then + AC_DEFINE([USE_ZLIB], [1], [Use zlib]) + fi + +-AM_CONDITIONAL(USE_FREETYPE, test x${ft_config} != x) +-if test -n "${ft_config}"; then +- AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) ++AM_CONDITIONAL(USE_FREETYPE, test x${HAS_FREETYPE} != x) ++if test x${HAS_FREETYPE} = xtrue ; then ++ AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) + fi + + AM_CONDITIONAL(GIFLIB_GIFERRORSTRING, test x"$ac_cv_lib_gif_GifErrorString" = xyes) +@@ -504,10 +488,10 @@ else + echo " ZLIB enabled ($ZLIB)" + fi + +-if test x"$ft_config" = "x"; then ++if test x"$HAS_FREETYPE" = "x"; then + echo " Freetype library disabled" + else +- echo " Freetype library enabled ($ft_config)" ++ echo " Freetype library enabled ($FREETYPE_LIBS)" + fi - AC_SUBST(FREETYPE_LIBS) - AC_SUBST(FREETYPE_CFLAGS) + if test x"$GIFLIB" = "x" -o x"$GIFINC" = "x"; then