audio/vgmplay: create port
The official and always up-to-date player for all VGM (Video Game Music) files. VGM is an audio file format for multiple video game platforms, such as Sega Master System, Game Gear, Mega Drive/Genesis, MSX, Neo Geo, IBM PC AT (Adlib/SoundBlaster), and has expanded to a variety of arcade system boards since its release. WWW: https://github.com/vgmrips/vgmplay PR: 234848 Submitted by: Hiroki Tagato <tagattie@yandex.com>
This commit is contained in:
parent
d584ffc1d3
commit
1546c8a8e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490554
@ -841,6 +841,7 @@
|
||||
SUBDIR += umurmur
|
||||
SUBDIR += vagalume
|
||||
SUBDIR += vamp-plugin-sdk
|
||||
SUBDIR += vgmplay
|
||||
SUBDIR += virtual_oss
|
||||
SUBDIR += virtual_oss_ctl
|
||||
SUBDIR += vitunes
|
||||
|
48
audio/vgmplay/Makefile
Normal file
48
audio/vgmplay/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= vgmplay
|
||||
PORTVERSION= 0.40.9
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= https://github.com/vgmrips/${PORTNAME}/releases/download/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME:S/vgmp/VGMP/}_${PORTVERSION:S/.//:S/./-/}_src
|
||||
|
||||
MAINTAINER= tagattie@yandex.com
|
||||
COMMENT= Command-line player for VGM (video game music) files
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/licenses/GPL.txt
|
||||
|
||||
USES= 7z dos2unix gmake
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
OPTIONS_SINGLE= AUDIO
|
||||
OPTIONS_SINGLE_AUDIO= OSS LIBAO
|
||||
OPTIONS_DEFAULT= OSS
|
||||
|
||||
OSS_DESC= Use OSS (/dev/dsp)
|
||||
LIBAO_DESC= Use libao
|
||||
|
||||
OSS_MAKE_ENV+= USE_LIBAO=0
|
||||
LIBAO_MAKE_ENV+= USE_LIBAO=1
|
||||
LIBAO_LIB_DEPENDS= libao.so:audio/libao
|
||||
LIBAO_CFLAGS+= -I${LOCALBASE}/include
|
||||
LIBAO_LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
MAKE_ENV+= PREFIX=${LOCALBASE}
|
||||
|
||||
PLIST_FILES= bin/vgmplay bin/vgm2pcm bin/vgm2wav man/man1/vgmplay.1.gz ${EXAMPLESDIR}/vgmplay.ini
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's/@//' ${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; s|/usr/share/vgmplay|${EXAMPLESDIR}|; s|VGMPlay|vgmplay|g;' ${WRKSRC}/vgmplay.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vgmplay ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vgm2pcm ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vgm2wav ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/vgmplay.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/VGMPlay.ini ${STAGEDIR}${EXAMPLESDIR}/vgmplay.ini
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/vgmplay/distinfo
Normal file
3
audio/vgmplay/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1546946539
|
||||
SHA256 (VGMPlay_040-9_src.7z) = 4f799bb21ba288893a627b0c6d71db84e2d8a74ec8852a092845ad831de8e19a
|
||||
SIZE (VGMPlay_040-9_src.7z) = 586532
|
12
audio/vgmplay/files/patch-Makefile
Normal file
12
audio/vgmplay/files/patch-Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
--- Makefile.orig 2019-01-11 06:06:08 UTC
|
||||
+++ Makefile
|
||||
@@ -58,7 +58,9 @@ endif
|
||||
|
||||
|
||||
|
||||
+ifndef CC
|
||||
CC = gcc
|
||||
+endif
|
||||
ifndef PREFIX
|
||||
PREFIX = /usr/local
|
||||
#PREFIX = $(HOME)/.local
|
11
audio/vgmplay/files/patch-Stream.c
Normal file
11
audio/vgmplay/files/patch-Stream.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- Stream.c.orig 2019-01-08 12:56:30 UTC
|
||||
+++ Stream.c
|
||||
@@ -16,6 +16,8 @@
|
||||
#include <fcntl.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <sys/audioio.h>
|
||||
+#elif defined(__FreeBSD__)
|
||||
+#include <sys/soundcard.h>
|
||||
#elif defined(__APPLE__) || defined(__OpenBSD__)
|
||||
// nothing
|
||||
#else
|
7
audio/vgmplay/pkg-descr
Normal file
7
audio/vgmplay/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
The official and always up-to-date player for all VGM (Video Game
|
||||
Music) files. VGM is an audio file format for multiple video game
|
||||
platforms, such as Sega Master System, Game Gear, Mega Drive/Genesis,
|
||||
MSX, Neo Geo, IBM PC AT (Adlib/SoundBlaster), and has expanded to a
|
||||
variety of arcade system boards since its release.
|
||||
|
||||
WWW: https://github.com/vgmrips/vgmplay
|
Loading…
Reference in New Issue
Block a user