Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2025 15:55:51 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 72501c88d4f0 - main - graphics/libultrahdr: Add libultrahdr 1.4.0
Message-ID:  <202502031555.513FtpT0007391@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 72501c88d4f03db3b9204f6f4083fa46eb94b608
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-03 15:12:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-03 15:50:42 +0000

    graphics/libultrahdr: Add libultrahdr 1.4.0
    
    libultrahdr is an image compression library that uses gain map technology to
    store and distribute HDR images. Conceptually on the encoding side, the library
    accepts SDR and HDR rendition of an image and from these a Gain Map (quotient
    between the two renditions) is computed. The library then uses backward
    compatible means to store the base image (SDR), gain map image and some
    associated metadata. Legacy readers that do not support handling the gain map
    image and/or metadata, will display the base image. Readers that support the
    format combine the base image with the gain map and render a high dynamic range
    image on compatible displays.
---
 graphics/Makefile                               |  1 +
 graphics/libultrahdr/Makefile                   | 37 +++++++++++++++++++++++++
 graphics/libultrahdr/distinfo                   |  3 ++
 graphics/libultrahdr/files/patch-CMakeLists.txt | 10 +++++++
 graphics/libultrahdr/pkg-descr                  |  9 ++++++
 graphics/libultrahdr/pkg-plist                  |  7 +++++
 6 files changed, 67 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 75e2725c1ac3..9fdc5b2e9841 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -511,6 +511,7 @@
     SUBDIR += libspiro
     SUBDIR += libspng
     SUBDIR += libsvgtiny
+    SUBDIR += libultrahdr
     SUBDIR += libvisual
     SUBDIR += libvisual04
     SUBDIR += libvisual04-plugins
diff --git a/graphics/libultrahdr/Makefile b/graphics/libultrahdr/Makefile
new file mode 100644
index 000000000000..0d4226d1dfd2
--- /dev/null
+++ b/graphics/libultrahdr/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	libultrahdr
+PORTVERSION=	1.4.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	graphics
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Reference codec for the Ultra HDR format
+WWW=		https://developer.android.com/media/platform/hdr-image-format \
+		https://github.com/google/libultrahdr
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake jpeg pathfix
+
+CMAKE_OFF=	UHDR_BUILD_BENCHMARK \
+		UHDR_BUILD_DEPS \
+		UHDR_BUILD_FUZZERS \
+		UHDR_BUILD_JAVA \
+		UHDR_BUILD_PACKAGING \
+		UHDR_BUILD_TESTS \
+		UHDR_ENABLE_GLES \
+		UHDR_ENABLE_LOGS \
+		UHDR_ENABLE_WERROR \
+		UHDR_WRITE_XMP
+CMAKE_ON=	BUILD_SHARED_LIBS \
+		BUILD_STATIC_LIBS \
+		UHDR_BUILD_EXAMPLES \
+		UHDR_ENABLE_INSTALL \
+		UHDR_ENABLE_INTRINSICS \
+		UHDR_WRITE_ISO
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	google
+
+.include <bsd.port.mk>
diff --git a/graphics/libultrahdr/distinfo b/graphics/libultrahdr/distinfo
new file mode 100644
index 000000000000..3e86131ef803
--- /dev/null
+++ b/graphics/libultrahdr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1738088810
+SHA256 (google-libultrahdr-v1.4.0_GH0.tar.gz) = e7e1252e2c44d8ed6b99ee0f67a3caf2d8a61c43834b13b1c3cd485574c03ab9
+SIZE (google-libultrahdr-v1.4.0_GH0.tar.gz) = 1375424
diff --git a/graphics/libultrahdr/files/patch-CMakeLists.txt b/graphics/libultrahdr/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9264599ad0e7
--- /dev/null
+++ b/graphics/libultrahdr/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-01-10 19:31:48 UTC
++++ CMakeLists.txt
+@@ -36,6 +36,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android")
+ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android")
++elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+ elseif(WIN32)
+ elseif(APPLE)
+ else()
diff --git a/graphics/libultrahdr/pkg-descr b/graphics/libultrahdr/pkg-descr
new file mode 100644
index 000000000000..3c517ceee26c
--- /dev/null
+++ b/graphics/libultrahdr/pkg-descr
@@ -0,0 +1,9 @@
+libultrahdr is an image compression library that uses gain map technology to
+store and distribute HDR images. Conceptually on the encoding side, the library
+accepts SDR and HDR rendition of an image and from these a Gain Map (quotient
+between the two renditions) is computed. The library then uses backward
+compatible means to store the base image (SDR), gain map image and some
+associated metadata. Legacy readers that do not support handling the gain map
+image and/or metadata, will display the base image. Readers that support the
+format combine the base image with the gain map and render a high dynamic range
+image on compatible displays.
diff --git a/graphics/libultrahdr/pkg-plist b/graphics/libultrahdr/pkg-plist
new file mode 100644
index 000000000000..6958e10322a1
--- /dev/null
+++ b/graphics/libultrahdr/pkg-plist
@@ -0,0 +1,7 @@
+bin/ultrahdr_app
+include/ultrahdr_api.h
+lib/libuhdr.a
+lib/libuhdr.so
+lib/libuhdr.so.1
+lib/libuhdr.so.1.4.0
+libdata/pkgconfig/libuhdr.pc



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