git: 977a60aa218d - main - graphics/gdalcpp: Add gdalcpp 1.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 25 May 2025 09:59:26 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=977a60aa218df1615b33d4fa379056f490376f69

commit 977a60aa218df1615b33d4fa379056f490376f69
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-25 09:26:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-25 09:26:44 +0000

    graphics/gdalcpp: Add gdalcpp 1.3.0
    
    gdalcpp is a C++11 wrapper classes for GDAL/OGR.
    
    These are some small wrapper classes for GDAL offering:
    - classes with RAII instead of the arcane cleanup functions in stock GDAL
    - works with GDAL 1, 2, and 3
    - allows you to write less boilerplate code
    
    The classes are not very complete, they just have the code I needed for various
    programs.
---
 graphics/Makefile          |  1 +
 graphics/gdalcpp/Makefile  | 26 ++++++++++++++++++++++++++
 graphics/gdalcpp/distinfo  |  3 +++
 graphics/gdalcpp/pkg-descr |  9 +++++++++
 4 files changed, 39 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 9dae08519d8b..08e8725a6aed 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -230,6 +230,7 @@
     SUBDIR += gd
     SUBDIR += gdal
     SUBDIR += gdal-grass
+    SUBDIR += gdalcpp
     SUBDIR += gdchart
     SUBDIR += gdk-pixbuf-extra
     SUBDIR += gdk-pixbuf2
diff --git a/graphics/gdalcpp/Makefile b/graphics/gdalcpp/Makefile
new file mode 100644
index 000000000000..61e031bcacdf
--- /dev/null
+++ b/graphics/gdalcpp/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	gdalcpp
+PORTVERSION=	1.3.0
+CATEGORIES=	graphics
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	C++11 GDAL wrapper
+WWW=		https://github.com/joto/gdalcpp
+
+LICENSE=	BSL
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	gdal>=0:graphics/gdal
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	include/gdalcpp.hpp
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	joto
+GH_TAGNAME=	7e23085
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/gdalcpp.hpp ${STAGEDIR}${PREFIX}/include/
+
+.include <bsd.port.mk>
diff --git a/graphics/gdalcpp/distinfo b/graphics/gdalcpp/distinfo
new file mode 100644
index 000000000000..a667238d7658
--- /dev/null
+++ b/graphics/gdalcpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1747715284
+SHA256 (joto-gdalcpp-1.3.0-7e23085_GH0.tar.gz) = a3e84d6a1358754720e6cd68ad912ccc1e5cd14ab25f2281f849080d91d5ccc1
+SIZE (joto-gdalcpp-1.3.0-7e23085_GH0.tar.gz) = 4245
diff --git a/graphics/gdalcpp/pkg-descr b/graphics/gdalcpp/pkg-descr
new file mode 100644
index 000000000000..adf817cca361
--- /dev/null
+++ b/graphics/gdalcpp/pkg-descr
@@ -0,0 +1,9 @@
+gdalcpp is a C++11 wrapper classes for GDAL/OGR.
+
+These are some small wrapper classes for GDAL offering:
+- classes with RAII instead of the arcane cleanup functions in stock GDAL
+- works with GDAL 1, 2, and 3
+- allows you to write less boilerplate code
+
+The classes are not very complete, they just have the code I needed for various
+programs.