From nobody@FreeBSD.org  Fri Mar 30 10:25:21 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 35F8010657C2
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2012 10:25:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 214798FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2012 10:25:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2UAPKGQ052421
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2012 10:25:20 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q2UAPKAh052420;
	Fri, 30 Mar 2012 10:25:20 GMT
	(envelope-from nobody)
Message-Id: <201203301025.q2UAPKAh052420@red.freebsd.org>
Date: Fri, 30 Mar 2012 10:25:20 GMT
From: Joris Dedieu <joris.dedieu@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] graphics/mapserver add cairo support
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166511
>Category:       ports
>Synopsis:       [PATCH] graphics/mapserver add cairo support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wen
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 30 10:30:09 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Sep 17 09:00:23 UTC 2012
>Originator:     Joris Dedieu
>Release:        8.1-RELEASE-p6
>Organization:
>Environment:
FreeBSD entente2.nfrance.com 8.1-RELEASE-p6 FreeBSD 8.1-RELEASE-p6 #1: Tue Oct 11 18:17:37 CEST 2011     root@entente2.nfrance.com:/usr/obj/usr/src/sys/NFDEDIE_2_0_PF  amd64

>Description:
This patch add an option to enable cairo support in mapserver
>How-To-Repeat:

>Fix:
--- graphics/mapserver/Makefile.orig    2012-03-30 11:52:01.000000000 +0200
+++ graphics/mapserver/Makefile 2012-03-30 12:18:20.000000000 +0200
@@ -32,6 +32,7 @@
 MAKE_JOBS_UNSAFE=      yes
 
 OPTIONS=               AGG "Support for AGG image rendering (req: FreeType)" off \
+                       CAIRO "SVG/PDF support via Cairo" off \
                        TIFF "Support for TIFF (but not GeoTIFF) files" off \
                        PDF "Support for PDF output via pdflib" off \
                        GDAL "Support for a number of input raster formats" on \
@@ -55,6 +56,11 @@
 CONFIGURE_ARGS+=       --with-agg=${LOCALBASE} --with-freetype=${LOCALBASE}
 .endif
 
+.if defined(WITH_CAIRO)
+LIB_DEPENDS+=          cairo.2:${PORTSDIR}/graphics/cairo
+CONFIGURE_ARGS+=       --with-cairo=yes
+.endif
+
 .if defined(WITH_TIFF)
 .if !defined(WITH_GDAL)
 LIB_DEPENDS+=          tiff.4:${PORTSDIR}/graphics/tiff


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Mar 30 10:30:20 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166511 

From: joris dedieu <joris.dedieu@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/166511: [PATCH] graphics/mapserver add cairo support
Date: Mon, 17 Sep 2012 10:53:06 +0200

 Hi,
 Updated version of this patch :
 
 - switch to new option framework
 - refine dependency : only libcairo-svg is needed
 
 
 diff -u graphics/mapserver/Makefile.orig graphics/mapserver/Makefile
 --- graphics/mapserver/Makefile.orig    2012-09-17 10:42:06.000000000 +0200
 +++ graphics/mapserver/Makefile 2012-09-17 10:47:07.000000000 +0200
 @@ -30,7 +30,7 @@
  MAKE_JOBS_UNSAFE=      yes
 
  OPTIONS_DEFINE=                AGG TIFF PDF GDAL GEOS MING MYGIS
 POSTGIS PHP PERL PYTHON \
 -                       WMS WFS MAPSERV FASTCGI DEBUG
 +                       WMS WFS MAPSERV FASTCGI DEBUG CAIRO
  OPTIONS_DEFAULT=       GDAL GEOS MAPSERV
  AGG_DESC=              AGG image rendering support
  GDAL_DESC=             GDAL library support
 @@ -153,6 +153,11 @@
  CONFIGURE_ARGS+=       --enable-debug
  .endif
 
 +.if ${PORT_OPTIONS:MCAIRO}
 +LIB_DEPENDS+=          svg-cairo:${PORTSDIR}/graphics/libsvg-cairo
 +CONFIGURE_ARGS+=       --with-cairo=yes
 +.endif
 +
  PROG_FILES=            legend scalebar shp2img shptree shptreetst
 shptreevis sortshp
 
  post-patch:
 
 
 Regards
 Joris
>Unformatted:
