Bug 281363 - audio/libvgm: Improve port
Summary: audio/libvgm: Improve port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-08 12:19 UTC by Daniel Engberg
Modified: 2024-09-12 20:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tagattie)


Attachments
Patch for libvgm (2.27 KB, patch)
2024-09-08 12:19 UTC, Daniel Engberg
no flags Details | Diff
Revised patch (2.63 KB, patch)
2024-09-11 07:38 UTC, Hiroki Tagato
tagattie: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-09-08 12:19:28 UTC
Created attachment 253422 [details]
Patch for libvgm

* Build it as a shared library so it's usable for other applications
* Ddo not bundle anything else
* While at it update to latest upstream commit

Compile and tested on FreeBSD 14.1-RELEASE (amd64) (make, make check-plist)

Poudriere testport OK 13.3-RELEASE (amd64)
Poudriere testport OK 14.0-RELEASE (i386)
Poudriere testport OK 14.0-RELEASE (amd64)
Poudriere testport OK 14.1-RELEASE (amd64)
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-09-08 12:25:37 UTC
I have a crude patch for vgmplay-libvgm here:
https://projects.pyret.net/files/freebsd-patches/vgmplay-libvgm.patch
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2024-09-08 12:27:05 UTC
This is also so we can build it with audio/fooyin
Comment 3 Hiroki Tagato freebsd_committer freebsd_triage 2024-09-11 07:38:41 UTC
Created attachment 253496 [details]
Revised patch

(In reply to Daniel Engberg from comment #0)

Hi Daniel,

Thanks for the patch.

Instead of disabling player and vgm2wav commands altogether, I have introduced options to control building/installing them. The options are ON by default so that users already installed the port aren't surprised by sudden removal of the commands.

I personally find vgm2wav command useful and sometimes use it.

If the revision is acceptable to you, I will commit the changes.
Comment 4 Hiroki Tagato freebsd_committer freebsd_triage 2024-09-11 07:42:04 UTC
(In reply to Daniel Engberg from comment #1)

audio/vgmplay is already based on (currently static) libvgm :-)
I will later update the port to use shared version of the library.
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2024-09-11 16:57:44 UTC
Ahh, I overlooked it as upstream refers to it differently.
As for the utils, vgmplay -w ?

If you want to keep the bundled legacy player I would at least recommend that you prefix it as "player" is way too generic and can cause filename clashes.

Best regards,
Daniel
Comment 6 Hiroki Tagato freebsd_committer freebsd_triage 2024-09-12 11:16:28 UTC
(In reply to Daniel Engberg from comment #5)

> If you want to keep the bundled legacy player I would at least recommend that you prefix it as "player" is way too generic and can cause filename clashes.

Thanks for the suggestion. I agree. I will change the command name to "libvgm-player".
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-09-12 11:46:30 UTC
A commit in branch main references this bug:

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(-)
Comment 8 Hiroki Tagato freebsd_committer freebsd_triage 2024-09-12 11:47:47 UTC
Committed, thanks!
Comment 9 Daniel Engberg freebsd_committer freebsd_triage 2024-09-12 20:49:25 UTC
Thanks, audio/fooyin now also features libvgm support :-)