git: 97d1f3c40be5 - main - audio/bambootracker: Update to 0.5.0

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sun, 29 May 2022 15:07:08 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=97d1f3c40be5f32e3eda5c30a9c37ee380484fdb

commit 97d1f3c40be5f32e3eda5c30a9c37ee380484fdb
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-05-29 15:06:57 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-05-29 15:07:03 +0000

    audio/bambootracker: Update to 0.5.0
---
 audio/bambootracker/Makefile  | 69 +++++++++++++++--------------------
 audio/bambootracker/distinfo  |  8 ++--
 audio/bambootracker/pkg-plist | 85 +++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 115 insertions(+), 47 deletions(-)

diff --git a/audio/bambootracker/Makefile b/audio/bambootracker/Makefile
index 2aaf5c8629b6..e0f112cc05cd 100644
--- a/audio/bambootracker/Makefile
+++ b/audio/bambootracker/Makefile
@@ -2,11 +2,10 @@
 
 PORTNAME=	bambootracker
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.4.5
-PORTREVISION=	2
+DISTVERSION=	0.5.0
 CATEGORIES=	audio
-MASTER_SITES=	LOCAL/ehaupt:extras
-DISTFILES=	${PORTNAME}-extras-${EXTRASVERSION}${EXTRACT_SUFX}:extras
+MASTER_SITES=	https://github.com/BambooTracker/BambooTracker/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
+DISTNAME=	BambooTracker-src-${DISTVERSIONPREFIX}${DISTVERSION}
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Music tracker for the Yamaha YM2608 (OPNA) sound chip
@@ -14,30 +13,29 @@ COMMENT=	Music tracker for the Yamaha YM2608 (OPNA) sound chip
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		compiler:c++14-lang qmake qt:5 gl xorg
+LIB_DEPENDS=	librtaudio.so:audio/rtaudio \
+		librtmidi.so:audio/rtmidi
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	rerrahkr
-GH_PROJECT=	BambooTracker
-USE_GL=		gl
-USE_QT=		buildtools core gui linguisttools_build multimedia network \
-		widgets
+USES=		compiler:c++14-lang desktop-file-utils gl qmake qt:5 \
+		shared-mime-info xorg
 
-BUILD_WRKSRC=		${WRKSRC}/BambooTracker
-CONFIGURE_WRKSRC=	${WRKSRC}/BambooTracker
+USE_GL=		gl
+USE_QT=		buildtools core gui multimedia network widgets \
+		linguisttools_build
 
-PORTEXAMPLES=	*
+DATADIR=	${PREFIX}/share/BambooTracker
+DOCSDIR=	${PREFIX}/share/doc/BambooTracker
+EXAMPLESDIR=	${PREFIX}/share/examples/BambooTracker
 
-EXTRASVERSION=	2
+WRKSRC=		${WRKDIR}/BambooTracker-src-${DISTVERSIONPREFIX}${DISTVERSION}
 
-OPTIONS_DEFINE=	ALSA EXAMPLES JACK NLS PULSEAUDIO
-OPTIONS_DEFAULT=PULSEAUDIO
+OPTIONS_DEFINE=		ALSA EXAMPLES JACK NLS PULSEAUDIO
+OPTIONS_DEFAULT=	PULSEAUDIO
+OPTIONS_SUB=		yes
 
 ALSA_DESC=	ALSA audio architecture support (EXPERIMENTAL)
 JACK_DESC=	JACK audio server support (EXPERIMENTAL)
 
-OPTIONS_SUB=	yes
-
 ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
 JACK_LIB_DEPENDS=	libjack.so:audio/jack
 PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
@@ -49,31 +47,24 @@ QMAKE_ARGS+=	CONFIG+="use_alsa"
 .endif
 
 .if ${PORT_OPTIONS:MJACK}
-QMAKE_ARGS+=	CONFIG+="use_jack" \
-		CONFIG+="jack_has_rename"
+QMAKE_ARGS+=	CONFIG+="jack_has_rename" CONFIG+="use_jack"
 .endif
 
 .if ${PORT_OPTIONS:MPULSEAUDIO}
 QMAKE_ARGS+=	CONFIG+="use_pulse"
 .endif
 
-do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons \
-		${STAGEDIR}${MANPREFIX}/man/fr.UTF-8/man1
-	${INSTALL_PROGRAM} ${WRKSRC}/BambooTracker/BambooTracker \
-		${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/data/man/en/man1/BambooTracker.1 \
-		${STAGEDIR}${MANPREFIX}/man/man1
-	${INSTALL_MAN} ${WRKSRC}/data/man/fr/man1/BambooTracker.1 \
-		${STAGEDIR}${MANPREFIX}/man/fr.UTF-8/man1
-	${INSTALL_DATA} ${WRKSRC}/data/applications/BambooTracker.desktop ${STAGEDIR}${DESKTOPDIR}
-	${INSTALL_DATA} ${WRKSRC}/img/icon.png \
-		${STAGEDIR}${PREFIX}/share/icons/BambooTracker.png
-
-do-install-EXAMPLES-on:
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/data/demos/modules/*.btm \
-		${WRKDIR}/${PORTNAME}-extras-${EXTRASVERSION}/*.btm \
-		${STAGEDIR}${EXAMPLESDIR}
+post-install:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${MANPREFIX}/share/man/man1
+	${MV} ${STAGEDIR}${PREFIX}/share/BambooTracker/demos/* ${STAGEDIR}${EXAMPLESDIR}/
+	${MV} ${STAGEDIR}${MANPREFIX}/share/man/en/man1/BambooTracker.1 ${STAGEDIR}${MANPREFIX}/share/man/man1/
+	${RMDIR} ${STAGEDIR}${PREFIX}/share/BambooTracker/demos
+	${RMDIR} ${STAGEDIR}${MANPREFIX}/share/man/en/man1
+	${RMDIR} ${STAGEDIR}${MANPREFIX}/share/man/en
+
+# maintainer targets
+try-latest: clean extract
+	@${RM} -rf ${WRKSRC}
+	@git clone --recurse-submodules https://github.com/BambooTracker/BambooTracker.git ${WRKSRC}
 
 .include <bsd.port.mk>
diff --git a/audio/bambootracker/distinfo b/audio/bambootracker/distinfo
index 2b8a6d9e8e55..818e6d611c26 100644
--- a/audio/bambootracker/distinfo
+++ b/audio/bambootracker/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1608802624
-SHA256 (bambootracker-extras-2.tar.gz) = 72f9994ea329bc6bd3f8855262209aa827b66f880e5734fc1486e9709546c9ce
-SIZE (bambootracker-extras-2.tar.gz) = 8321
-SHA256 (rerrahkr-BambooTracker-v0.4.5_GH0.tar.gz) = b31221353f54e81edbeb301c125efc84c69deb2c943be305601310bf5cc3cc0e
-SIZE (rerrahkr-BambooTracker-v0.4.5_GH0.tar.gz) = 3288468
+TIMESTAMP = 1653747236
+SHA256 (BambooTracker-src-v0.5.0.tar.gz) = 89e6232c582b38137d12631d5fae93350ff0810bf158b6e7accf6069777d0f32
+SIZE (BambooTracker-src-v0.5.0.tar.gz) = 1273184
diff --git a/audio/bambootracker/pkg-plist b/audio/bambootracker/pkg-plist
index 2513d9055a7c..2a915fc3de00 100644
--- a/audio/bambootracker/pkg-plist
+++ b/audio/bambootracker/pkg-plist
@@ -1,5 +1,84 @@
 bin/BambooTracker
-%%NLS%%man/fr.UTF-8/man1/BambooTracker.1.gz
-man/man1/BambooTracker.1.gz
+%%DATADIR%%/lang/bamboo_tracker_fr.qm
+%%DATADIR%%/lang/bamboo_tracker_ja.qm
+%%DATADIR%%/lang/bamboo_tracker_pl.qm
+%%DATADIR%%/skins/Cream.ini
+%%DATADIR%%/skins/Default-Blue.ini
+%%DATADIR%%/skins/Default.ini
+%%DATADIR%%/skins/Dynagray.ini
+%%DATADIR%%/skins/FTish.ini
+%%DATADIR%%/skins/Night Blue.ini
+%%DATADIR%%/skins/Yuzu4K.ini
+%%DATADIR%%/skins/skins.md
+%%DATADIR%%/specs/archives/bank_specs_v1.0.0.md
+%%DATADIR%%/specs/archives/bank_specs_v1.0.1.md
+%%DATADIR%%/specs/archives/bank_specs_v1.0.2.md
+%%DATADIR%%/specs/archives/bank_specs_v1.1.0.md
+%%DATADIR%%/specs/archives/bank_specs_v1.2.0.md
+%%DATADIR%%/specs/archives/inst_specs_v1.0.0.md
+%%DATADIR%%/specs/archives/inst_specs_v1.0.1.md
+%%DATADIR%%/specs/archives/inst_specs_v1.1.0.md
+%%DATADIR%%/specs/archives/inst_specs_v1.2.0.md
+%%DATADIR%%/specs/archives/inst_specs_v1.2.1.md
+%%DATADIR%%/specs/archives/inst_specs_v1.2.2.md
+%%DATADIR%%/specs/archives/inst_specs_v1.2.3.md
+%%DATADIR%%/specs/archives/inst_specs_v1.3.0.md
+%%DATADIR%%/specs/archives/inst_specs_v1.4.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.0.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.0.1.md
+%%DATADIR%%/specs/archives/mod_specs_v1.0.2.md
+%%DATADIR%%/specs/archives/mod_specs_v1.0.3.md
+%%DATADIR%%/specs/archives/mod_specs_v1.1.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.2.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.2.1.md
+%%DATADIR%%/specs/archives/mod_specs_v1.2.2.md
+%%DATADIR%%/specs/archives/mod_specs_v1.3.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.3.1.md
+%%DATADIR%%/specs/archives/mod_specs_v1.3.2.md
+%%DATADIR%%/specs/archives/mod_specs_v1.4.0.md
+%%DATADIR%%/specs/archives/mod_specs_v1.4.1.md
+%%DATADIR%%/specs/archives/mod_specs_v1.5.0.md
+%%DATADIR%%/specs/bank_specs_v1.3.0.md
+%%DATADIR%%/specs/inst_specs_v1.5.0.md
+%%DATADIR%%/specs/mod_specs_v1.6.0.md
+%%DATADIR%%/specs/speclist.txt
 share/applications/BambooTracker.desktop
-share/icons/BambooTracker.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demos.md
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Rerrah/FM.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Rerrah/PMD-like Drums.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Rerrah/SSG.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Bass.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Bell.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Brass.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Guitars.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Lead & Organ.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Percussion.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Piano.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Sound Effect.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Special.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Strings & Pad.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/Wind.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/Takeshi Abo/World.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/papiezak/FM.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/instruments/papiezak/SSG.btb
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Battleship.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Flying High.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Is This What You Desired.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Jump.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Lotus.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Neo Megalopolis.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Rude Buster.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Strategic Achievement.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Temple Theme.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Underwater Ruins.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/Wilderness.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/breeze 2608.btm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modules/sword with no scabbard.btm
+share/icons/hicolor/128x128/apps/BambooTracker.png
+share/icons/hicolor/16x16/apps/BambooTracker.png
+share/icons/hicolor/256x256/apps/BambooTracker.png
+share/icons/hicolor/32x32/apps/BambooTracker.png
+share/icons/hicolor/64x64/apps/BambooTracker.png
+share/man/fr/man1/BambooTracker.1.gz
+share/man/man1/BambooTracker.1.gz
+share/mime/packages/application-x-btm.xml