summaryrefslogtreecommitdiff
path: root/audio/libvgm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libvgm/Makefile')
-rw-r--r--audio/libvgm/Makefile28
1 files changed, 23 insertions, 5 deletions
diff --git a/audio/libvgm/Makefile b/audio/libvgm/Makefile
index c45d7bf8f02b..1efe4f37b73f 100644
--- a/audio/libvgm/Makefile
+++ b/audio/libvgm/Makefile
@@ -1,21 +1,35 @@
PORTNAME= libvgm
-DISTVERSION= g20240103
+DISTVERSION= g20240608
CATEGORIES= audio
MAINTAINER= tagattie@FreeBSD.org
COMMENT= More modular rewrite of most components from VGMPlay
WWW= https://github.com/ValleyBell/libvgm
-USES= cmake iconv pathfix
+USES= cmake compiler:c++14-lang iconv pathfix
+USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= ValleyBell
-GH_TAGNAME= 223b6f9d629feda1982dc4bbeebd19fa63b987fb
+GH_TAGNAME= 34c368c
CMAKE_ON= AUDIODRV_OSS
+CMAKE_OFF= CMAKE_CXX_EXTENSIONS
+CMAKE_ARGS= -DLIBRARY_TYPE=SHARED
-OPTIONS_DEFINE= ALSA AO PULSEAUDIO
-OPTIONS_DEFAULT= # none
+OPTIONS_DEFINE= PLAYER VGM2WAV
+OPTIONS_DEFAULT= PLAYER VGM2WAV
+OPTIONS_GROUP= AUDIO
+OPTIONS_GROUP_AUDIO= ALSA AO PULSEAUDIO
+OPTIONS_SUB= yes
+
+PLAYER_DESC= Build and install libvgm-player command
+VGM2WAV_DESC= Build and install vgm2wav command
+AUDIO_DESC= Additional audio backends support
+
+PLAYER_CMAKE_BOOL= BUILD_PLAYER
+
+VGM2WAV_CMAKE_BOOL= BUILD_VGM2WAV
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CMAKE_BOOL= AUDIODRV_ALSA
@@ -27,4 +41,8 @@ PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_USES= localbase:ldflags
PULSEAUDIO_CMAKE_BOOL= AUDIODRV_PULSE
+post-install-PLAYER-on:
+ ${MV} ${STAGEDIR}${PREFIX}/bin/player \
+ ${STAGEDIR}${PREFIX}/bin/libvgm-player
+
.include <bsd.port.mk>