git: 4c280f29b25f - main - audio/libgme: Don't build with undefined behavior sanitizer (UBSAN)

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 14 Apr 2023 06:19:06 UTC
The branch main has been updated by diizzy:

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

commit 4c280f29b25f0671f88915edfbb1209876a31985
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-13 23:41:35 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-14 06:18:53 +0000

    audio/libgme: Don't build with undefined behavior sanitizer (UBSAN)
    
    This error check should not be enabled by default and breaks
    build with some applications such as FFmpeg
    
    Reported by:    VVD <vvd@unislabs.com>
    Tested by:      VVD <vvd@unislabs.com>
    Sponsored by:   Blinkinblox
---
 audio/libgme/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/audio/libgme/Makefile b/audio/libgme/Makefile
index 3bb193c84c43..18f16a82f0f5 100644
--- a/audio/libgme/Makefile
+++ b/audio/libgme/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libgme
 DISTVERSION=	0.6.3
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://bitbucket.org/mpyne/game-music-emu/downloads/
 DISTNAME=	game-music-emu-${DISTVERSION}
@@ -17,6 +18,8 @@ USE_LDCONFIG=	yes
 
 PORTDOCS=	changes.txt design.txt gme.txt readme.txt
 
+CMAKE_OFF=	ENABLE_UBSAN
+
 OPTIONS_DEFINE=	DOCS
 
 post-patch: