summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2018-10-29 21:35:17 +0000
committerleot <leot@pkgsrc.org>2018-10-29 21:35:17 +0000
commitbaafa5d15451612d61e7f085f5d6ffa58e2f74ac (patch)
tree452a671ceabb6d511667badb81fb3a581aec8496 /x11
parent29bcae9a72373da1f13f7cb478599f36db56ff0a (diff)
downloadpkgsrc-baafa5d15451612d61e7f085f5d6ffa58e2f74ac.tar.gz
gtk3: Correctly include freetype2 headers
Only <ft2build.h> should be included, all the other header files should be included via FT_*_H macros. Fixes PR pkg/53690.
Diffstat (limited to 'x11')
-rw-r--r--x11/gtk3/distinfo3
-rw-r--r--x11/gtk3/patches/patch-gtk_gtkfontchooserwidget.c19
2 files changed, 21 insertions, 1 deletions
diff --git a/x11/gtk3/distinfo b/x11/gtk3/distinfo
index 6d5bb7eec34..678d240d012 100644
--- a/x11/gtk3/distinfo
+++ b/x11/gtk3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.57 2018/10/23 07:42:23 leot Exp $
+$NetBSD: distinfo,v 1.58 2018/10/29 21:35:17 leot Exp $
SHA1 (gtk+-3.24.1.tar.xz) = 0a5ce28ba6065a484308093bdb56ff6056b0db3c
RMD160 (gtk+-3.24.1.tar.xz) = f1e26685ff6a267ad0a81e0f8dd06112b6a5a5b8
@@ -12,3 +12,4 @@ SHA1 (patch-gdk_x11_gdkscreen-x11.h) = 455d6c3de8421984ba3c99baf51cd31982a3df78
SHA1 (patch-gdk_x11_gdkwindow-x11.h) = c80f7c9d5a570817e54fd74fa903a53400dc6f64
SHA1 (patch-gtk_a11y_gtkaccessibility.c) = 13232c85bd570f21ea03153dacde4ca98c7c76a8
SHA1 (patch-gtk_fallback-c89.c) = eaf5ac8aace9eab673eed0e265d4cb2617bf1fcd
+SHA1 (patch-gtk_gtkfontchooserwidget.c) = 6ede4fce683b70808c5d611dfb53312bf092665d
diff --git a/x11/gtk3/patches/patch-gtk_gtkfontchooserwidget.c b/x11/gtk3/patches/patch-gtk_gtkfontchooserwidget.c
new file mode 100644
index 00000000000..9481ebf94e5
--- /dev/null
+++ b/x11/gtk3/patches/patch-gtk_gtkfontchooserwidget.c
@@ -0,0 +1,19 @@
+$NetBSD: patch-gtk_gtkfontchooserwidget.c,v 1.1 2018/10/29 21:35:17 leot Exp $
+
+Correctly include freetype2 headers (<ft2build.h> and then macros
+should be used instead of directly including the headers).
+
+--- gtk/gtkfontchooserwidget.c.orig 2018-07-18 11:04:31.000000000 +0000
++++ gtk/gtkfontchooserwidget.c
+@@ -58,8 +58,9 @@
+ #include <hb.h>
+ #include <hb-ot.h>
+ #include <hb-ft.h>
+-#include <freetype/freetype.h>
+-#include <freetype/ftmm.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
++#include FT_MULTIPLE_MASTERS_H
+ #include "language-names.h"
+ #include "script-names.h"
+ #endif