Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2021 08:16:48 GMT
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8252bf7bd5a9 - main - graphics/sswf: prepare for freetype2 update
Message-ID:  <202108070816.1778Gml8069777@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8252bf7bd5a92e6bf5b11a9785625e8b1fca19f8

commit 8252bf7bd5a92e6bf5b11a9785625e8b1fca19f8
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2021-08-07 08:08:15 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2021-08-07 08:12:37 +0000

    graphics/sswf: 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/sswf/Makefile              |  2 ++
 graphics/sswf/files/patch-configure | 13 +++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/graphics/sswf/Makefile b/graphics/sswf/Makefile
index 14bc992c7535..40dceeb8a830 100644
--- a/graphics/sswf/Makefile
+++ b/graphics/sswf/Makefile
@@ -29,6 +29,8 @@ OPTIONS_DEFINE=	DEBUG
 
 DEBUG_CONFIGURE_OFF=	--disable-debug --disable-yydebug
 
+BINARY_ALIAS=		freetype-config=true
+
 .include <bsd.port.pre.mk>
 
 .if empty(ICONV_LIB)
diff --git a/graphics/sswf/files/patch-configure b/graphics/sswf/files/patch-configure
new file mode 100644
index 000000000000..5a00dfb7b7a3
--- /dev/null
+++ b/graphics/sswf/files/patch-configure
@@ -0,0 +1,13 @@
+--- configure.orig	2021-08-07 08:00:57 UTC
++++ configure
+@@ -22421,8 +22421,8 @@ fi
+ if test "x$FREETYPE_CONFIG" != "xno" ; then
+   { echo "$as_me:$LINENO: checking for freetype libraries" >&5
+ echo $ECHO_N "checking for freetype libraries... $ECHO_C" >&6; }
+-  FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
+-  FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
++  FREETYPE_LIBS=`pkg-config freetype2 --libs`
++  FREETYPE_CFLAGS=`pkg-config freetype2 --cflags`
+   { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
+ echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
+ fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108070816.1778Gml8069777>