git: b1a4d610d3f7 - main - graphics/oidn: Fix build on some systems

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 13 Jul 2024 18:11:50 UTC
The branch main has been updated by yuri:

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

commit b1a4d610d3f7e48071c4c9f7c156d953faafbed2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-13 18:10:54 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-13 18:10:54 +0000

    graphics/oidn: Fix build on some systems
    
    PR:             279877
---
 graphics/oidn/Makefile | 5 ++++-
 graphics/oidn/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/oidn/Makefile b/graphics/oidn/Makefile
index 80ffd4298584..d663b9ee53fa 100644
--- a/graphics/oidn/Makefile
+++ b/graphics/oidn/Makefile
@@ -6,6 +6,9 @@ CATEGORIES=	graphics
 MASTER_SITES=	http://freebsd.org/:weights # bogus URL to make the framework happy, the fetch uses Git URL below
 DISTFILES=	${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}:weights
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES=	e5e52d335c58365b6cbd91f9a8a6f9ee9a085bf5.patch:-p1 # fix compile error when using old libc++
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Intel(R) Open Image Denoise library
 WWW=		https://www.openimagedenoise.org/
@@ -61,7 +64,7 @@ pre-fetch:
 			${MKDIR} ${WRKDIR}; \
 			HOME=${WRKDIR}; \
 			git config --global filter.lfs.smudge "git-lfs smudge -- %f" && \
-			git clone -q ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \
+			GIT_CLONE_PROTECTION_ACTIVE=false git clone -q ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \
 			(cd ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && git reset -q --hard ${WEIGHTS_GIT_HASH} && ${RM} -r .git) && \
 			${RM} -r ${WRKDIR} \
 		) && \
diff --git a/graphics/oidn/distinfo b/graphics/oidn/distinfo
index 53bb128e9328..77b2cdc0cd49 100644
--- a/graphics/oidn/distinfo
+++ b/graphics/oidn/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1718696155
+TIMESTAMP = 1720888672
 SHA256 (oidn-weights-28883d1769d5930e13cf7f1676dd852bd81ed9e7.tar.gz) = 90726b544f6e8b86a8bc4756e7c0b3da7530d4bab9dd671f2689001b4f9801f7
 SIZE (oidn-weights-28883d1769d5930e13cf7f1676dd852bd81ed9e7.tar.gz) = 46880514
 SHA256 (OpenImageDenoise-oidn-v2.3.0_GH0.tar.gz) = e71555003f972863ace8a7391287c0d74f1adfc875138338f577daf43b269402
@@ -9,3 +9,5 @@ SHA256 (ROCmSoftwarePlatform-composable_kernel-e85178b_GH0.tar.gz) = b870ae0dcac
 SIZE (ROCmSoftwarePlatform-composable_kernel-e85178b_GH0.tar.gz) = 2153311
 SHA256 (NVIDIA-cutlass-66d9cdd_GH0.tar.gz) = 8ab91c8930ad48a4012410b234c743a4df0cf270e60c52b80466da740b6c31a6
 SIZE (NVIDIA-cutlass-66d9cdd_GH0.tar.gz) = 15495942
+SHA256 (e5e52d335c58365b6cbd91f9a8a6f9ee9a085bf5.patch) = b51dcb5d6d2408aeeeed7740eed73a32398d95308fb87d11e5d173dfb8d7d99a
+SIZE (e5e52d335c58365b6cbd91f9a8a6f9ee9a085bf5.patch) = 1080