git: 7e4fc3b184a2 - main - graphics/alizams: Fix desktopfile

From: Kousuke Kannagi <mce_at_FreeBSD.org>
Date: Mon, 15 Jun 2026 17:12:09 UTC
The branch main has been updated by mce:

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

commit 7e4fc3b184a29a3f0b9017b16d937df7d20c6989
Author:     Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-06-15 13:48:02 +0000
Commit:     Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-06-15 17:11:32 +0000

    graphics/alizams: Fix desktopfile
    
    Fix the EXEC path in the desktop file.
    
    PR:             295493
    Approved by:    yuri (maintainer, implicit)
    Approved by:    osa (mentor)
---
 graphics/alizams/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/graphics/alizams/Makefile b/graphics/alizams/Makefile
index 219fee2bf191..41b0b3c65181 100644
--- a/graphics/alizams/Makefile
+++ b/graphics/alizams/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	alizams
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.10.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -33,4 +34,9 @@ CMAKE_ARGS+=	-DALIZA_DISABLE_SIMDMATH:BOOL=YES # i386 also needs disabling SIND,
 .endif
 
 .include <../../science/InsightToolkit/Makefile.version>
+
+post-patch:
+	@${REINPLACE_CMD} -e '/^Exec=/s,/usr,${PREFIX},' \
+		${WRKSRC}/package/archive/usr/share/applications/${PORTNAME}.desktop
+
 .include <bsd.port.mk>