git: 457bfbd2148c - main - graphics/colord: respect LOCALBASE to find hwdata (for EDID manufacturer)

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 26 Jun 2022 15:34:05 UTC
The branch main has been updated by jbeich:

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

commit 457bfbd2148cfde5d1b2a93b8b68ea750c74ed1d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-06-26 14:39:23 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-06-26 15:33:41 +0000

    graphics/colord: respect LOCALBASE to find hwdata (for EDID manufacturer)
---
 graphics/colord/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/graphics/colord/Makefile b/graphics/colord/Makefile
index 3f66766c1e8f..f096db1fa993 100644
--- a/graphics/colord/Makefile
+++ b/graphics/colord/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	colord
 PORTVERSION=	1.3.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	https://www.freedesktop.org/software/colord/releases/
 
@@ -70,6 +70,8 @@ post-patch:
 		${WRKSRC}/src/cd-main.c \
 		${WRKSRC}/lib/colord/cd-icc-store.c \
 		${WRKSRC}/src/cd-profile.c
+	@${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|g' \
+		${WRKSRC}/lib/colord/cd-edid.c
 .if ! ${PORT_OPTIONS:MMANPAGES}
 	@${REINPLACE_CMD} -e "s|2MAN_TRUE=$$|2MAN_TRUE='#'|g ; \
 		s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure