git: f813a7abfa86 - main - audio/ocp: Add an option for libgme support

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Mon, 14 Aug 2023 08:53:30 UTC
The branch main has been updated by ehaupt:

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

commit f813a7abfa862f458595612e3f8563f97b158f49
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-08-14 08:40:41 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-08-14 08:40:41 +0000

    audio/ocp: Add an option for libgme support
    
    Incorporate a selectable option for libgme support, introducing extended
    compatibility for various video game music formats.
---
 audio/ocp/Makefile  | 9 +++++++--
 audio/ocp/pkg-plist | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index 7aeffaa75507..590b7b6f257e 100644
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ocp
 PORTVERSION=	0.2.106
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://stian.cubic.org/ocp/
@@ -42,11 +43,12 @@ CONFLICTS_INSTALL=	alliance # man/man1/ocp.1.gz
 
 INFO=		ocp
 
-OPTIONS_DEFINE=		ADPLUG ALSA DOCS FLAC MIDI OSS SDL X11
-OPTIONS_DEFAULT=	ADPLUG ALSA FLAC MIDI OSS SDL X11
+OPTIONS_DEFINE=		ADPLUG ALSA DOCS FLAC GME MIDI OSS SDL X11
+OPTIONS_DEFAULT=	ADPLUG ALSA FLAC GME MIDI OSS SDL X11
 OPTIONS_SUB=		yes
 
 ADPLUG_DESC=	adplug support
+GME_DESC=	libgme support for additional video game music support
 MIDI_DESC=	timidity support
 
 ADPLUG_LIB_DEPENDS=	libadplug.so:audio/libadplug \
@@ -59,6 +61,9 @@ ALSA_CONFIGURE_WITH=	alsa
 FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
 FLAC_CONFIGURE_WITH=	flac
 
+GME_LIB_DEPENDS=	libgme.so:audio/libgme
+GME_CONFIGURE_WITH=	libgme
+
 MIDI_RUN_DEPENDS=	eawpats>0:audio/eawpats
 
 OSS_CONFIGURE_WITH=	oss
diff --git a/audio/ocp/pkg-plist b/audio/ocp/pkg-plist
index 71b080c44476..1110df27c986 100644
--- a/audio/ocp/pkg-plist
+++ b/audio/ocp/pkg-plist
@@ -91,6 +91,7 @@ share/mime/packages/opencubicplayer.xml
 %%DATADIR%%/etc/ocp.ini
 %%DESKTOP%%share/applications/cubic.org-opencubicplayer.desktop
 %%FLAC%%lib/ocp/autoload/95-playflac.so
+%%GME%%lib/ocp/autoload/95-playgme.so
 %%OSS%%lib/ocp/autoload/35-devposs.so
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/BUGS