From nobody Mon Feb 03 15:55:51 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ymrgr2VF0z5lsdD; Mon, 03 Feb 2025 15:55:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ymrgr0L25z3khh; Mon, 03 Feb 2025 15:55:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738598152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U5MAPh9xKYfRPgh8/YheHQCgl4ss9qKy2eWWjBEgT5A=; b=ZVv1MSn1QUundYaccjCBuCvvU6AXV4g5yfkIsVutANXEWu6ZCYiCUNco+IkX4R0ZEjhavk v/U8/8vo5dh8YwaUwJQ043QdKsj9+WsB13P2RvVwsgmaJNpk33KwiSiS21bgeMKY8257wg 6znTC/vHtJM9EIOdjMNKQQ6SFDoCjwHpYs7ETaonbrB6rpQ4W52WszW0Gn9XPcadp6NTZy c2Y6VCCiYGxE4injpSNueu89jGLq6QRypU7TxBDloeNVnGChpnwj6u+e2apDiHf5+xY8tc wZ+tcXCXn0HGO1s+RM9GcOeEP/ZcgEhARADzPWShYbrPo4Nv4QtUZ5iTlUxTMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738598152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U5MAPh9xKYfRPgh8/YheHQCgl4ss9qKy2eWWjBEgT5A=; b=vQu2nqIYzU013hsipxD13GvCFt1AQGPg5vIeEALgX9Lm76DmC7v/VIp+NszQhZ9t4tTZv0 FQ0LTiGFpk4QBhXHiHiJOrU1Yj0S8jxCFa76500bSnBFcKt7R92khb9mcBGlcS6wU7rOlq 0ic6h/qav3opRogJi8bWYp2lllLG/WLxU0JOJKXuHRfbhgk4R4rJztl8EGbVpG4jOWqu5S 2Shk2VOK3FZeXpB3O2c+OJJCEZjgAcE7FarxHkhfa2OomGIuGNpmaIsglJV4bAFy6/MIFb znC6n4fEwvcKSFqrm/5L9SZdJr85SxRFhAsH80XZONXQoqJrsrEf/A0kGJDGyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738598152; a=rsa-sha256; cv=none; b=kS9IwIWr62LVf5Zu9ZQWcCRqBxJKB6xlIK4uOYDowgqOYX4d/fJcMKga0D4Qtzu9xukMBy SPRG99tqbCl9I0yIZE2A0qt0ZHmAw81oe6QwUAr4/2hjswZaWu3BzSSHL3TueoA+X1GYud 2Oa6lkJmw9+/AeIH8H9wVaXMh4/PD989l8nXLKzk4FJE0atNWGHUidTFR6iRu9C6VAZW/1 4dSOljai1ydNhVQnL3fhg3FiaZLBj4bgo7HMk6odqjZDFE6KQUAK63xVuR3mO+4d2yIEly V8Fvh/aI/Nl4WQSXqBDuoZai8DOuMpSunLuD99dKPmNI4KboGGoUHESFVETLjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ymrgq73hgzjgP; Mon, 03 Feb 2025 15:55:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 513Ftpmc007394; Mon, 3 Feb 2025 15:55:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 513FtpT0007391; Mon, 3 Feb 2025 15:55:51 GMT (envelope-from git) Date: Mon, 3 Feb 2025 15:55:51 GMT Message-Id: <202502031555.513FtpT0007391@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 72501c88d4f0 - main - graphics/libultrahdr: Add libultrahdr 1.4.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72501c88d4f03db3b9204f6f4083fa46eb94b608 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=72501c88d4f03db3b9204f6f4083fa46eb94b608 commit 72501c88d4f03db3b9204f6f4083fa46eb94b608 Author: Po-Chuan Hsieh AuthorDate: 2025-02-03 15:12:13 +0000 Commit: Po-Chuan Hsieh 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 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