git: 04ff6dd7a42b - main - audio/libgme: Update to latest commit upstream

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 09:40:50 UTC
The branch main has been updated by ehaupt:

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

commit 04ff6dd7a42b8ce3f72aff7b735d657d84ec3321
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2024-09-08 09:40:13 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2024-09-08 09:40:13 +0000

    audio/libgme: Update to latest commit upstream
    
    - Update WWW, project moved to github
    - Utilize USES= pathfix
    
    PR:             281027
    Reported by:    diizzy
---
 audio/libgme/Makefile                         | 17 ++++++-----------
 audio/libgme/distinfo                         |  6 +++---
 audio/libgme/files/patch-gme_blargg__endian.h | 13 -------------
 audio/libgme/pkg-plist                        |  3 +--
 4 files changed, 10 insertions(+), 29 deletions(-)

diff --git a/audio/libgme/Makefile b/audio/libgme/Makefile
index 80eb00833cfe..a5554583095a 100644
--- a/audio/libgme/Makefile
+++ b/audio/libgme/Makefile
@@ -1,20 +1,19 @@
 PORTNAME=	libgme
-DISTVERSION=	0.6.3
-PORTREVISION=	1
+DISTVERSION=	0.6.3-183
+DISTVERSIONSUFFIX=	-g05a2aa2
 CATEGORIES=	audio
-MASTER_SITES=	https://bitbucket.org/mpyne/game-music-emu/downloads/ \
-		LOCAL/ehaupt
-DISTNAME=	game-music-emu-${DISTVERSION}
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Collection of video game music emulators
-WWW=		https://bitbucket.org/mpyne/game-music-emu
+WWW=		https://github.com/libgme/game-music-emu
 
 LICENSE=	LGPL21+
 LICENSE_FILE=	${WRKSRC}/license.txt
 
-USES=		cmake compiler:c++11-lang dos2unix tar:xz
+USES=		cmake compiler:c++11-lang dos2unix pathfix
 DOS2UNIX_FILES=	${PORTDOCS}
+USE_GITHUB=	yes
+GH_PROJECT=	game-music-emu
 USE_LDCONFIG=	yes
 
 CMAKE_OFF=	ENABLE_UBSAN
@@ -23,10 +22,6 @@ PORTDOCS=	changes.txt design.txt gme.txt readme.txt
 
 OPTIONS_DEFINE=	DOCS
 
-post-patch:
-	@${REINPLACE_CMD} -e '/pkgconfig/s/lib[[:>:]]/libdata/' \
-		${WRKSRC}/gme/CMakeLists.txt
-
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
diff --git a/audio/libgme/distinfo b/audio/libgme/distinfo
index 71f59f47c449..cf451fa6923e 100644
--- a/audio/libgme/distinfo
+++ b/audio/libgme/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1681316189
-SHA256 (game-music-emu-0.6.3.tar.xz) = aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
-SIZE (game-music-emu-0.6.3.tar.xz) = 234412
+TIMESTAMP = 1724490683
+SHA256 (libgme-game-music-emu-0.6.3-183-g05a2aa2_GH0.tar.gz) = 3dd621457e6ae9100ff85dda76b7bed5ef9eb0c960fc8d0203ef54aac109434c
+SIZE (libgme-game-music-emu-0.6.3-183-g05a2aa2_GH0.tar.gz) = 343648
diff --git a/audio/libgme/files/patch-gme_blargg__endian.h b/audio/libgme/files/patch-gme_blargg__endian.h
deleted file mode 100644
index 56b36df80b61..000000000000
--- a/audio/libgme/files/patch-gme_blargg__endian.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- gme/blargg_endian.h.orig	2021-02-10 16:11:06 UTC
-+++ gme/blargg_endian.h
-@@ -33,9 +33,7 @@
- #if defined (LSB_FIRST) || defined (__LITTLE_ENDIAN__) || BLARGG_CPU_X86 || \
- 		(defined (LITTLE_ENDIAN) && LITTLE_ENDIAN+0 != 1234)
- 	#define BLARGG_LITTLE_ENDIAN 1
--#endif
--
--#if defined (MSB_FIRST)     || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
-+#elif defined (MSB_FIRST)     || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
- 	defined (__sparc__)     ||  BLARGG_CPU_POWERPC || \
- 	(defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
- 	#define BLARGG_BIG_ENDIAN 1
diff --git a/audio/libgme/pkg-plist b/audio/libgme/pkg-plist
index d636bd2ef6ae..f2f4167ca88f 100644
--- a/audio/libgme/pkg-plist
+++ b/audio/libgme/pkg-plist
@@ -1,6 +1,5 @@
-include/gme/blargg_source.h
 include/gme/gme.h
 lib/libgme.so
 lib/libgme.so.0
-lib/libgme.so.0.6.3
+lib/libgme.so.0.6.4
 libdata/pkgconfig/libgme.pc