Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Aug 2015 03:37:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 201683] [PATCH] [mips] graphics/cairo: fails to build on mips
Message-ID:  <bug-201683-6497-YC6WaNaYFE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201683-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201683-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201683

Carlos J Puga Medina <cpm@fbsd.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #158959|0                           |1
        is obsolete|                            |

--- Comment #6 from Carlos J Puga Medina <cpm@fbsd.es> ---
Comment on attachment 158959
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D158959
cairo-fix-mips.diff

>diff -urN graphics/cairo.old/Makefile graphics/cairo/Makefile
>--- graphics/cairo.old/Makefile	2015-07-19 03:20:21.000000000 +0200
>+++ graphics/cairo/Makefile	2015-07-19 03:22:06.000000000 +0200
>@@ -4,7 +4,7 @@
>=20
> PORTNAME=3D	cairo
> PORTVERSION=3D	1.12.18
>-PORTREVISION=3D	1
>+PORTREVISION=3D	2
> PORTEPOCH=3D	2
> CATEGORIES=3D	graphics
> MASTER_SITES=3D	http://cairographics.org/releases/
>@@ -12,11 +12,14 @@
> MAINTAINER=3D	gnome@FreeBSD.org
> COMMENT=3D	Vector graphics library with cross-device output support
>=20
>+LICENSE=3D	LGPL21 MPL
>+LICENSE_COMB=3D	multi
>+
> USES=3D		tar:xz
>=20
> .if !defined(REFERENCE_PORT)
>=20
>-LIB_DEPENDS=3D	libfreetype.so:${PORTSDIR}/print/freetype2 \
>+LIB_DEPENDS+=3D	libfreetype.so:${PORTSDIR}/print/freetype2 \
> 		libpng.so:${PORTSDIR}/graphics/png \
> 		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
>=20
>@@ -41,7 +44,7 @@
> 		--disable-egl \
> 		--enable-tee
>=20
>-OPTIONS_DEFINE=3D	OPENGL XCB GLIB X11=20
>+OPTIONS_DEFINE=3D	OPENGL XCB GLIB X11
> OPTIONS_DEFAULT=3DXCB GLIB X11
> XCB_DESC=3D	Enable XCB (X C-language Binding) Support
> GLIB_DESC=3D	Enable GObject Functions Feature
>@@ -61,6 +64,10 @@
>=20
> .include <bsd.port.options.mk>
>=20
>+.if ${ARCH} =3D=3D "mips"
>+CONFIGURE_ARGS+=3D	--disable-atomic
>+.endif
>+
> post-patch:
> 	@${REINPLACE_CMD} -e '/test/s/=3D=3D/=3D/g' \
> 		-e '/LIBS/s/-lrt//'  -e '/LIBS/s|-ldld||' \
>@@ -77,7 +84,6 @@
> 	@${REINPLACE_CMD} 's|@CAIRO_CFLAGS@|-I$$(top_srcdir)/src/glew &|' \
> 		${WRKSRC}/src/Makefile.in
> .endif
>+.endif
>=20
> .include <bsd.port.mk>
>-
>-.endif
>diff -urN graphics/cairo.old/files/patch-src_cairo-xlib-display.c graphics=
/cairo/files/patch-src_cairo-xlib-display.c
>--- graphics/cairo.old/files/patch-src_cairo-xlib-display.c	2015-07-19 03:=
20:21.000000000 +0200
>+++ graphics/cairo/files/patch-src_cairo-xlib-display.c	2015-07-18 21:45:0=
5.000000000 +0200
>@@ -1,6 +1,6 @@
>---- src/cairo-xlib-display.c.orig	2010-11-21 14:41:31.000000000 -0500
>-+++ src/cairo-xlib-display.c	2010-11-21 14:42:12.000000000 -0500
>-@@ -353,11 +353,7 @@ _cairo_xlib_device_create (Display *dpy)
>+--- src/cairo-xlib-display.c.orig	2014-11-06 21:35:30 UTC
>++++ src/cairo-xlib-display.c
>+@@ -263,11 +263,7 @@ _cairo_xlib_device_create (Display *dpy)
>      /* Prior to Render 0.10, there is no protocol support for gradients =
and
>       * we call function stubs instead, which would silently consume the =
drawing.
>       */
>diff -urN graphics/cairo.old/files/patch-util_cairo-sphinx_sphinx.c graphi=
cs/cairo/files/patch-util_cairo-sphinx_sphinx.c
>--- graphics/cairo.old/files/patch-util_cairo-sphinx_sphinx.c	2015-07-19 0=
3:20:21.000000000 +0200
>+++ graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c	2015-07-18 21:45=
:05.000000000 +0200
>@@ -1,5 +1,5 @@
>---- util/cairo-sphinx/sphinx.c.orig	2014-10-06 15:22:24.000000000 -0400
>-+++ util/cairo-sphinx/sphinx.c	2014-10-06 15:23:04.000000000 -0400
>+--- util/cairo-sphinx/sphinx.c.orig	2014-11-06 21:35:30 UTC
>++++ util/cairo-sphinx/sphinx.c
> @@ -1325,7 +1325,7 @@ client_shm (const char *shm_path)
>=20=20
>      base =3D mmap (NULL, DATA_SIZE,
>diff -urN graphics/cairo.old/pkg-descr graphics/cairo/pkg-descr
>--- graphics/cairo.old/pkg-descr	2015-07-19 03:20:21.000000000 +0200
>+++ graphics/cairo/pkg-descr	2015-07-18 21:47:24.000000000 +0200
>@@ -10,4 +10,4 @@
> and filling Bezier cubic splines, transforming and compositing translucent
> images, and antialiased text rendering.
>=20
>-WWW:	http://www.cairographics.org
>+WWW: http://www.cairographics.org

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201683-6497-YC6WaNaYFE>