git: 01b09545a3a5 - main - graphics/R-cran-Cairo: New port

From: Devin Teske <dteske_at_FreeBSD.org>
Date: Sat, 19 Sep 2026 02:26:36 UTC
The branch main has been updated by dteske:

URL: https://cgit.FreeBSD.org/ports/commit/?id=01b09545a3a590187687201d238c8cbf3135e140

commit 01b09545a3a590187687201d238c8cbf3135e140
Author:     Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2026-09-19 02:23:31 +0000
Commit:     Devin Teske <dteske@FreeBSD.org>
CommitDate: 2026-09-19 02:23:31 +0000

    graphics/R-cran-Cairo: New port
    
    R graphics device using the cairographics library for high-quality
    vector (PDF, PostScript, SVG) and bitmap (PNG, JPEG, TIFF) output,
    plus X11/Win32 display backends.
    
    Reviewed by:    fuz, mat (previous revision)
    Differential Revision:  https://reviews.freebsd.org/D22681
---
 graphics/Makefile               |  1 +
 graphics/R-cran-Cairo/Makefile  | 24 ++++++++++++++++++++++++
 graphics/R-cran-Cairo/distinfo  |  3 +++
 graphics/R-cran-Cairo/pkg-descr | 11 +++++++++++
 4 files changed, 39 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index bd62510cc37c..80a02b16e283 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -7,6 +7,7 @@
     SUBDIR += ImageMagick6
     SUBDIR += ImageMagick7
     SUBDIR += O2-tools
+    SUBDIR += R-cran-Cairo
     SUBDIR += R-cran-DiagrammeR
     SUBDIR += R-cran-GDD
     SUBDIR += R-cran-R.devices
diff --git a/graphics/R-cran-Cairo/Makefile b/graphics/R-cran-Cairo/Makefile
new file mode 100644
index 000000000000..53d20be6a9bf
--- /dev/null
+++ b/graphics/R-cran-Cairo/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	Cairo
+DISTVERSION=	1.7-0
+CATEGORIES=	graphics
+DISTNAME=	${PORTNAME}_${DISTVERSION}
+
+MAINTAINER=	dteske@FreeBSD.org
+COMMENT=	R Graphics Device using Cairo Graphics Library
+WWW=		https://www.rforge.net/Cairo/
+
+LICENSE=	GPLv2 GPLv3
+LICENSE_COMB=	dual
+
+LIB_DEPENDS=	libcairo.so:graphics/cairo \
+		libfreetype.so:print/freetype2 \
+		libharfbuzz.so:print/harfbuzz \
+		libharfbuzz-icu.so:print/harfbuzz-icu \
+		libicuuc.so:devel/icu \
+		libpng16.so:graphics/png \
+		libtiff.so:graphics/tiff
+
+USES=		cran:auto-plist,compiles jpeg pkgconfig xorg
+USE_XORG=	x11 xext xrender
+
+.include <bsd.port.mk>
diff --git a/graphics/R-cran-Cairo/distinfo b/graphics/R-cran-Cairo/distinfo
new file mode 100644
index 000000000000..13d206227eb8
--- /dev/null
+++ b/graphics/R-cran-Cairo/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1785285581
+SHA256 (Cairo_1.7-0.tar.gz) = fcb84a614bbb85b976dd4fd1c17e2f7fd2f4fa21c3ac9e930819d88099a61d52
+SIZE (Cairo_1.7-0.tar.gz) = 110573
diff --git a/graphics/R-cran-Cairo/pkg-descr b/graphics/R-cran-Cairo/pkg-descr
new file mode 100644
index 000000000000..468ff157255c
--- /dev/null
+++ b/graphics/R-cran-Cairo/pkg-descr
@@ -0,0 +1,11 @@
+R graphics device using cairographics library that can be used to create
+high-quality vector (PDF, PostScript and SVG) and bitmap output
+(PNG,JPEG,TIFF), and high-quality rendering in displays (X11 and Win32).
+Since it uses the same back-end for all output, copying across formats is
+WYSIWYG. Files are created without the dependence on X11 or other external
+programs. This device supports alpha channel (semi-transparent drawing)
+and resulting images can contain transparent and semi-transparent regions.
+It is ideal for use in server environments (file output) and as a
+replacement for other devices that don't have Cairo's capabilities such as
+alpha support or anti-aliasing. Backends are modular such that any subset
+of backends is supported.