git: a2f618c46160 - main - graphics/kealib: Add kealib 1.6.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 29 May 2025 04:52:48 UTC
The branch main has been updated by sunpoet:

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

commit a2f618c46160c40730e4f2b5453c6df595921d7c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-29 04:39:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-29 04:52:17 +0000

    graphics/kealib: Add kealib 1.6.2
    
    KEALib provides an implementation of the GDAL data model. The format supports
    raster attribute tables, image pyramids, meta-data and in-built statistics while
    also handling very large files and compression throughout.
    
    Based on the HDF5 standard, it also provides a base from which other formats can
    be derived and is a good choice for long term data archiving. An independent
    software library (libkea) provides complete access to the KEA image format and a
    GDAL driver allowing KEA images to be used from any GDAL supported software.
---
 graphics/Makefile         |  1 +
 graphics/kealib/Makefile  | 25 +++++++++++++++++++++++++
 graphics/kealib/distinfo  |  3 +++
 graphics/kealib/pkg-descr |  8 ++++++++
 graphics/kealib/pkg-plist | 20 ++++++++++++++++++++
 5 files changed, 57 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index c7113deb4e8d..6957b60b1bd5 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -401,6 +401,7 @@
     SUBDIR += kdegraphics-thumbnailers
     SUBDIR += kdiagram
     SUBDIR += kdiagram-qt6
+    SUBDIR += kealib
     SUBDIR += kf5-kimageformats
     SUBDIR += kf5-kplotting
     SUBDIR += kf5-kquickcharts
diff --git a/graphics/kealib/Makefile b/graphics/kealib/Makefile
new file mode 100644
index 000000000000..d38492513347
--- /dev/null
+++ b/graphics/kealib/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	kealib
+PORTVERSION=	1.6.2
+CATEGORIES=	graphics
+MASTER_SITES=	https://github.com/ubarsc/kealib/releases/download/kealib-${PORTVERSION}/
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	HDF5 Based Raster File Format
+WWW=		https://kealib.org/ \
+		https://github.com/ubarsc/kealib
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+LIB_DEPENDS=	libhdf5.so:science/hdf5
+
+USES=		cmake
+
+CMAKE_OFF=	HDF5_PREFER_PARALLEL \
+		HDF5_USE_STATIC_LIBRARIES \
+		LIBKEA_WITH_GDAL
+CMAKE_ON=	BUILD_SHARED_LIBS
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/graphics/kealib/distinfo b/graphics/kealib/distinfo
new file mode 100644
index 000000000000..e391db155b2d
--- /dev/null
+++ b/graphics/kealib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748107890
+SHA256 (kealib-1.6.2.tar.gz) = 815b8d335b8d4b9048baf863cdd3959d12210f158a86f6a0d1954c7d39ce6db0
+SIZE (kealib-1.6.2.tar.gz) = 189932
diff --git a/graphics/kealib/pkg-descr b/graphics/kealib/pkg-descr
new file mode 100644
index 000000000000..916412548a53
--- /dev/null
+++ b/graphics/kealib/pkg-descr
@@ -0,0 +1,8 @@
+KEALib provides an implementation of the GDAL data model. The format supports
+raster attribute tables, image pyramids, meta-data and in-built statistics while
+also handling very large files and compression throughout.
+
+Based on the HDF5 standard, it also provides a base from which other formats can
+be derived and is a good choice for long term data archiving. An independent
+software library (libkea) provides complete access to the KEA image format and a
+GDAL driver allowing KEA images to be used from any GDAL supported software.
diff --git a/graphics/kealib/pkg-plist b/graphics/kealib/pkg-plist
new file mode 100644
index 000000000000..9fcf437da1e1
--- /dev/null
+++ b/graphics/kealib/pkg-plist
@@ -0,0 +1,20 @@
+bin/kea-config
+include/libkea/KEAAttributeTable.h
+include/libkea/KEAAttributeTableFile.h
+include/libkea/KEAAttributeTableInMem.h
+include/libkea/KEACommon.h
+include/libkea/KEAException.h
+include/libkea/KEAImageIO.h
+include/libkea/kea-config.h
+include/libkea/kea_export.h
+lib/cmake/Kealib/KealibConfig.cmake
+lib/cmake/Kealib/KealibConfigVersion.cmake
+lib/cmake/Kealib/libkeaTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Kealib/libkeaTargets.cmake
+lib/cmake/libkea/libkeaConfig.cmake
+lib/cmake/libkea/libkeaConfigVersion.cmake
+lib/cmake/libkea/libkeaTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/libkea/libkeaTargets.cmake
+lib/libkea.so
+lib/libkea.so.1.6
+lib/libkea.so.%%PORTVERSION%%