git: 9c4ff612d806 - main - audio/ocp: Install desktop icons

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Thu, 13 Jan 2022 08:29:09 UTC
The branch main has been updated by ehaupt:

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

commit 9c4ff612d80694f3f73edda77bd4172afb123e74
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-01-13 08:29:06 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-01-13 08:29:06 +0000

    audio/ocp: Install desktop icons
---
 audio/ocp/Makefile  | 4 ++++
 audio/ocp/pkg-plist | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index 3b2d081db1f7..5346cb07b1a0 100644
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	ocp
 PORTVERSION=	0.2.92
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://github.com/mywave82/opencubicplayer/releases/download/v${PORTVERSION}/
@@ -95,4 +96,7 @@ post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/*.so
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/autoload/*.so
 
+post-install-X11-on:
+	${INSTALL_DATA} ${WRKSRC}/desktop/*.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
+
 .include <bsd.port.mk>
diff --git a/audio/ocp/pkg-plist b/audio/ocp/pkg-plist
index 4f22d833856c..7efcbabace7c 100644
--- a/audio/ocp/pkg-plist
+++ b/audio/ocp/pkg-plist
@@ -72,5 +72,7 @@ man/man1/ocp.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/html/starting.html
 %%PORTDOCS%%%%DOCSDIR%%/html/support.html
 %%PORTDOCS%%%%DOCSDIR%%/html/wap.html
+%%XORG%%share/pixmaps/opencubicplayer.xpm
+%%XORG%%share/pixmaps/opencubicplayer_mini.xpm
 %%DATADIR%%/data/ocp.hlp
 %%DATADIR%%/etc/ocp.ini