git: 36f408ce8fb5 - main - audio/libvgm: update to latest GitHub commit and improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Sep 2024 11:45:25 UTC
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=36f408ce8fb5f6eb47c1eb3438620817a33076ea commit 36f408ce8fb5f6eb47c1eb3438620817a33076ea Author: Hiroki Tagato <tagattie@FreeBSD.org> AuthorDate: 2024-09-12 11:40:35 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2024-09-12 11:45:18 +0000 audio/libvgm: update to latest GitHub commit and improve port Improvements include: - switch to build shared libraries so that they are usable for other apps - optionize bundled commands (ON by default) - rename "player" command to "libvgm-player" (player is too generic name and can cause filename clashes) Co-authored-by: Daniel Engberg <diizzy@FreeBSD.org> PR: 281363 Reported by: diizzy --- audio/libvgm/Makefile | 28 +++++++++++++++++++++++----- audio/libvgm/distinfo | 6 +++--- audio/libvgm/pkg-plist | 12 ++++++------ 3 files changed, 32 insertions(+), 14 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> diff --git a/audio/libvgm/distinfo b/audio/libvgm/distinfo index d5ec4993a131..afe86758fd47 100644 --- a/audio/libvgm/distinfo +++ b/audio/libvgm/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1706527092 -SHA256 (ValleyBell-libvgm-g20240103-223b6f9d629feda1982dc4bbeebd19fa63b987fb_GH0.tar.gz) = fb1eebb0d75ac3203c5b7639e847dbcb0c306a852c874ff9ba64519b67fdae92 -SIZE (ValleyBell-libvgm-g20240103-223b6f9d629feda1982dc4bbeebd19fa63b987fb_GH0.tar.gz) = 1442014 +TIMESTAMP = 1725787643 +SHA256 (ValleyBell-libvgm-g20240608-34c368c_GH0.tar.gz) = 2673c7a1f3a6a5289929404dbfafa17f90710af7a637c2052b13371007bebc9c +SIZE (ValleyBell-libvgm-g20240608-34c368c_GH0.tar.gz) = 1441492 diff --git a/audio/libvgm/pkg-plist b/audio/libvgm/pkg-plist index d0abf1811573..c4acce313159 100644 --- a/audio/libvgm/pkg-plist +++ b/audio/libvgm/pkg-plist @@ -1,5 +1,5 @@ -bin/player -bin/vgm2wav +%%PLAYER%%bin/libvgm-player +%%VGM2WAV%%bin/vgm2wav include/vgm/audio/AudioStream.h include/vgm/audio/AudioStream_SpcDrvFuns.h include/vgm/audio/AudioStructs.h @@ -72,10 +72,10 @@ lib/cmake/libvgm/libvgmConfig.cmake lib/cmake/libvgm/libvgmConfigVersion.cmake lib/cmake/libvgm/libvgmTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/libvgm/libvgmTargets.cmake -lib/libvgm-audio.a -lib/libvgm-emu.a -lib/libvgm-player.a -lib/libvgm-utils.a +lib/libvgm-audio.so +lib/libvgm-emu.so +lib/libvgm-player.so +lib/libvgm-utils.so libdata/pkgconfig/vgm-audio.pc libdata/pkgconfig/vgm-emu.pc libdata/pkgconfig/vgm-player.pc