Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2015 14:59:36 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r401102 - in head/graphics/cairo: . files
Message-ID:  <201511091459.tA9ExaJ9026245@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Mon Nov  9 14:59:36 2015
New Revision: 401102
URL: https://svnweb.freebsd.org/changeset/ports/401102

Log:
  Update port Makefile to support mips build of cairo.
  
  Add License Information
  
  PR:		201683
  Submitted by:	Carlos J Puga Medina <cpm@fbsd.es>

Modified:
  head/graphics/cairo/Makefile
  head/graphics/cairo/files/patch-src_cairo-gl.h
  head/graphics/cairo/files/patch-src_cairo-xlib-display.c
  head/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c
  head/graphics/cairo/pkg-descr

Modified: head/graphics/cairo/Makefile
==============================================================================
--- head/graphics/cairo/Makefile	Mon Nov  9 14:50:31 2015	(r401101)
+++ head/graphics/cairo/Makefile	Mon Nov  9 14:59:36 2015	(r401102)
@@ -3,6 +3,7 @@
 
 PORTNAME=	cairo
 PORTVERSION=	1.14.2
+PORTREVISION=	1
 PORTEPOCH=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://cairographics.org/releases/
@@ -10,6 +11,9 @@ MASTER_SITES=	http://cairographics.org/r
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	Vector graphics library with cross-device output support
 
+LICENSE=	LGPL21 MPL
+LICENSE_COMB=	multi
+
 USES=		tar:xz
 
 .if !defined(REFERENCE_PORT)
@@ -58,6 +62,13 @@ PLIST_SUB+=	LIBVER=2.11400.2
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == "mips"
+BUILD_DEPENDS+=	${LOCALBASE}/include/atomic_ops.h:${PORTSDIR}/devel/libatomic_ops
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+CONFIGURE_ENV=	cairo_cv_atomic_primitives="libatomic-ops"
+.endif
+
 .if ${PORT_OPTIONS:MOPENGL} && !${PORT_OPTIONS:MX11}
 BROKEN=	OpenGL option needs X11 support
 .endif
@@ -76,6 +87,6 @@ post-patch:
 		${WRKSRC}/util/*/Makefile.in \
 		${WRKSRC}/boilerplate/Makefile.in
 
-.include <bsd.port.mk>
-
 .endif
+
+.include <bsd.port.mk>

Modified: head/graphics/cairo/files/patch-src_cairo-gl.h
==============================================================================
--- head/graphics/cairo/files/patch-src_cairo-gl.h	Mon Nov  9 14:50:31 2015	(r401101)
+++ head/graphics/cairo/files/patch-src_cairo-gl.h	Mon Nov  9 14:59:36 2015	(r401102)
@@ -1,6 +1,6 @@
---- src/cairo-gl.h.orig	2013-03-15 21:29:27.000000000 +0100
-+++ src/cairo-gl.h	2015-01-05 10:30:46.611768380 +0100
-@@ -92,7 +92,7 @@
+--- src/cairo-gl.h.orig	2015-03-10 22:21:07 UTC
++++ src/cairo-gl.h
+@@ -92,7 +92,7 @@ cairo_public void
  cairo_gl_device_set_thread_aware (cairo_device_t	*device,
  				  cairo_bool_t		 thread_aware);
  
@@ -9,7 +9,7 @@
  #include <GL/glx.h>
  
  cairo_public cairo_device_t *
-@@ -110,7 +110,7 @@
+@@ -110,7 +110,7 @@ cairo_gl_surface_create_for_window (cair
  				    int width, int height);
  #endif
  
@@ -18,7 +18,7 @@
  #include <windows.h>
  
  cairo_public cairo_device_t *
-@@ -126,7 +126,7 @@
+@@ -126,7 +126,7 @@ cairo_gl_surface_create_for_dc (cairo_de
  				int			 height);
  #endif
  

Modified: head/graphics/cairo/files/patch-src_cairo-xlib-display.c
==============================================================================
--- head/graphics/cairo/files/patch-src_cairo-xlib-display.c	Mon Nov  9 14:50:31 2015	(r401101)
+++ head/graphics/cairo/files/patch-src_cairo-xlib-display.c	Mon Nov  9 14:59:36 2015	(r401102)
@@ -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	2015-03-10 22:21:07 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.
       */

Modified: head/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c
==============================================================================
--- head/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c	Mon Nov  9 14:50:31 2015	(r401101)
+++ head/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c	Mon Nov  9 14:59:36 2015	(r401102)
@@ -1,6 +1,6 @@
---- 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
-@@ -1325,7 +1325,7 @@ client_shm (const char *shm_path)
+--- util/cairo-sphinx/sphinx.c.orig	2015-03-10 22:21:07 UTC
++++ util/cairo-sphinx/sphinx.c
+@@ -1337,7 +1337,7 @@ client_shm (const char *shm_path)
  
      base = mmap (NULL, DATA_SIZE,
  		 PROT_READ | PROT_WRITE,

Modified: head/graphics/cairo/pkg-descr
==============================================================================
--- head/graphics/cairo/pkg-descr	Mon Nov  9 14:50:31 2015	(r401101)
+++ head/graphics/cairo/pkg-descr	Mon Nov  9 14:59:36 2015	(r401102)
@@ -10,4 +10,4 @@ the PDF 1.4 imaging model. Cairo provide
 and filling Bezier cubic splines, transforming and compositing translucent
 images, and antialiased text rendering.
 
-WWW:	http://www.cairographics.org
+WWW: http://www.cairographics.org



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