From owner-svn-ports-head@freebsd.org Fri Jan 1 16:33:22 2021 Return-Path: Delivered-To: svn-ports-head@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 B9B064CD18D; Fri, 1 Jan 2021 16:33:22 +0000 (UTC) (envelope-from pi@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D6rDf4mnvz3HwJ; Fri, 1 Jan 2021 16:33:22 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8CC042608F; Fri, 1 Jan 2021 16:33:22 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 101GXMcM040442; Fri, 1 Jan 2021 16:33:22 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 101GXMl2040441; Fri, 1 Jan 2021 16:33:22 GMT (envelope-from pi@FreeBSD.org) Message-Id: <202101011633.101GXMl2040441@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 1 Jan 2021 16:33:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r559849 - in head/print/libotf: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/print/libotf: . files X-SVN-Commit-Revision: 559849 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jan 2021 16:33:22 -0000 Author: pi Date: Fri Jan 1 16:33:21 2021 New Revision: 559849 URL: https://svnweb.freebsd.org/changeset/ports/559849 Log: print/libotf: Don't use freetype-config - freetype-config is deprecated and shouldn't be used to detect freetype(2) Import patch from Archlinux to fix this issue PR: 252112 Submitted by: daniel.engberg.lists@pyret.net Approved by: nikola.lecic@anthesphoria.net (maintainer) Added: head/print/libotf/files/ head/print/libotf/files/patch-configure.ac (contents, props changed) Modified: head/print/libotf/Makefile Modified: head/print/libotf/Makefile ============================================================================== --- head/print/libotf/Makefile Fri Jan 1 16:30:38 2021 (r559848) +++ head/print/libotf/Makefile Fri Jan 1 16:33:21 2021 (r559849) @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfreetype.so:print/freetype2 -USES= pathfix pkgconfig libtool:keepla xorg +USES= autoreconf pathfix pkgconfig libtool:keepla xorg GNU_CONFIGURE= yes USE_XORG= ice sm x11 xaw xt xmu INSTALL_TARGET= install-strip Added: head/print/libotf/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/libotf/files/patch-configure.ac Fri Jan 1 16:33:21 2021 (r559849) @@ -0,0 +1,33 @@ +--- configure.ac.orig 2018-01-23 23:01:37 UTC ++++ configure.ac +@@ -48,23 +48,24 @@ AM_CONDITIONAL([X11_UNAVAILABLE], [test x$no_x = xyes] + AC_FUNC_ALLOCA + AC_FUNC_MALLOC + ++PKG_PROG_PKG_CONFIG ++ + # Check for Freetype2 usability. +-AC_CHECK_PROG(HAVE_FREETYPE_CONFIG, freetype-config, yes) +-if test "x$HAVE_FREETYPE_CONFIG" = "xyes"; then +- FREETYPE_INC=`freetype-config --cflags` ++PKG_CHECK_MODULES(FREETYPE, freetype2, [ ++ FREETYPE_INC="$FREETYPE_CFLAGS" + CPPFLAGS="$CPPFLAGS $FREETYPE_INC" + AC_CHECK_HEADER(ft2build.h, HAVE_FREETYPE=yes, + HAVE_FREETYPE=no CPPFLAGS=$save_CPPFLAGS) + if test "x$HAVE_FREETYPE" = "xyes" ; then +- FREETYPE_LD_FLAGS=`freetype-config --libs`; ++ FREETYPE_LD_FLAGS="$FREETYPE_LIBS" + LIBS="$LIBS $FREETYPE_LD_FLAGS" + AC_CHECK_LIB(freetype, FT_Init_FreeType, HAVE_FREETYPE=yes, + HAVE_FREETYPE=no) + fi +-fi ++]) + + if test "x$HAVE_FREETYPE" != "xyes" ; then +- echo "Freetype library wan't found in your system!" ++ echo "Freetype library not found in your system!" + exit 1 + fi + AC_SUBST(FREETYPE_INC)