View | Details | Raw Unified | Return to bug 233742
Collapse All | Expand All

(-)graphics/cairo/Makefile (-6 / +5 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	cairo
4
PORTNAME=	cairo
5
PORTVERSION=	1.15.12
5
PORTVERSION=	1.16.0
6
PORTEPOCH=	2
6
PORTEPOCH=	2
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
#MASTER_SITES=	http://cairographics.org/releases/
8
MASTER_SITES=	http://cairographics.org/releases/ \
9
MASTER_SITES=	http://cairographics.org/snapshots/
9
		http://cairographics.org/snapshots/
10
10
11
MAINTAINER=	gnome@FreeBSD.org
11
MAINTAINER=	gnome@FreeBSD.org
12
COMMENT=	Vector graphics library with cross-device output support
12
COMMENT=	Vector graphics library with cross-device output support
Lines 44-49 Link Here
44
X11_USE=	xorg=x11,xext,xrender
44
X11_USE=	xorg=x11,xext,xrender
45
X11_CONFIGURE_ENABLE=xlib
45
X11_CONFIGURE_ENABLE=xlib
46
46
47
OPENGL_USES=	gl
47
OPENGL_USE=	gl=gl,egl xorg=xorgproto:both
48
OPENGL_USE=	gl=gl,egl xorg=xorgproto:both
48
OPENGL_CONFIGURE_ENABLE=gl egl
49
OPENGL_CONFIGURE_ENABLE=gl egl
49
OPENGL_IMPLIES=	X11
50
OPENGL_IMPLIES=	X11
Lines 54-61 Link Here
54
GLIB_CONFIGURE_ENABLE=	gobject
55
GLIB_CONFIGURE_ENABLE=	gobject
55
56
56
XCB_DESC=	Enable XCB (X C-language Binding) Support
57
XCB_DESC=	Enable XCB (X C-language Binding) Support
57
XCB_BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:x11/xcb-util-renderutil
58
XCB_RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:x11/xcb-util-renderutil
59
XCB_USE=	xorg=xcb
58
XCB_USE=	xorg=xcb
60
XCB_CONFIGURE_ENABLE=	xcb
59
XCB_CONFIGURE_ENABLE=	xcb
61
60
Lines 64-70 Link Here
64
MIPS_USES=	localbase
63
MIPS_USES=	localbase
65
MIPS_CONFIGURE_ENV=	cairo_cv_atomic_primitives="libatomic-ops"
64
MIPS_CONFIGURE_ENV=	cairo_cv_atomic_primitives="libatomic-ops"
66
65
67
PLIST_SUB+=	LIBVER=2.11512.0
66
PLIST_SUB+=	LIBVER=2.11600.0
68
67
69
post-patch:
68
post-patch:
70
	@${REINPLACE_CMD} -e '/strings/s/ - / -a /' \
69
	@${REINPLACE_CMD} -e '/strings/s/ - / -a /' \
(-)graphics/cairo/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1526801051
1
TIMESTAMP = 1542402739
2
SHA256 (cairo-1.15.12.tar.xz) = 7623081b94548a47ee6839a7312af34e9322997806948b6eec421a8c6d0594c9
2
SHA256 (cairo-1.16.0.tar.xz) = 5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
3
SIZE (cairo-1.15.12.tar.xz) = 41883440
3
SIZE (cairo-1.16.0.tar.xz) = 41997432
(-)graphics/cairo/files/patch-src_cairo-ft-font.c (-51 lines)
Lines 1-51 Link Here
1
From 7554822dd0b52d33ec7898e81b59e97164b00142 Mon Sep 17 00:00:00 2001
2
From: Uli Schlachter <psychon@znc.in>
3
Date: Sat, 21 Apr 2018 09:37:06 +0200
4
Subject: [PATCH] Fix assertion failure in the freetype backend
5
6
Fonts are kept in a hash table, so when creating a new font, the code
7
first checks the hash table for an already-existing entry and only then
8
is a new instance really created. There is an assert that checks that
9
the key used for the hash table lookup is the same as the instance that
10
is created later has, because otherwise the hash table was checked
11
incorrectly.
12
13
This assert failed in some conditions.
14
15
Fix this by fixing some places that initialised ft hash keys in a wrong
16
way.
17
18
Patch by Behdad Esfahbod and submitted via bugzilla.
19
20
Source: https://bugs.freedesktop.org/show_bug.cgi?id=105746#c4
21
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105746
22
Signed-off-by: Uli Schlachter <psychon@znc.in>
23
---
24
 src/cairo-ft-font.c | 4 ++--
25
 1 file changed, 2 insertions(+), 2 deletions(-)
26
27
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
28
index 79aef78f5b0d..9b10708988d7 100644
29
--- src/cairo-ft-font.c
30
+++ src/cairo-ft-font.c
31
@@ -445,7 +445,7 @@ _cairo_ft_unscaled_font_init (cairo_ft_unscaled_font_t *unscaled,
32
 
33
     if (from_face) {
34
 	unscaled->from_face = TRUE;
35
-	_cairo_ft_unscaled_font_init_key (unscaled, TRUE, NULL, face->face_index, face);
36
+	_cairo_ft_unscaled_font_init_key (unscaled, TRUE, NULL, id, face);
37
 
38
 
39
         unscaled->have_color = FT_HAS_COLOR (face) != 0;
40
@@ -640,7 +640,7 @@ static cairo_status_t
41
 _cairo_ft_unscaled_font_create_from_face (FT_Face face,
42
 					  cairo_ft_unscaled_font_t **out)
43
 {
44
-    return _cairo_ft_unscaled_font_create_internal (TRUE, NULL, 0, face, out);
45
+    return _cairo_ft_unscaled_font_create_internal (TRUE, NULL, face->face_index, face, out);
46
 }
47
 
48
 static cairo_bool_t
49
-- 
50
2.17.0
51
(-)graphics/cairo/pkg-plist (+1 lines)
Lines 102-107 Link Here
102
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.10.html
102
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.10.html
103
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.12.html
103
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.12.html
104
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.14.html
104
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.14.html
105
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.16.html
105
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.2.html
106
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.2.html
106
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.4.html
107
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.4.html
107
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.6.html
108
%%PORTDOCS%%%%DOCSDIR%%/cairo/index-1.6.html

Return to bug 233742