git: 76c3cb3f09f0 - main - audio/gtultra: Add new port

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Mon, 20 Feb 2023 20:46:44 UTC
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=76c3cb3f09f0c937f348f6c142e49062351accd8

commit 76c3cb3f09f0c937f348f6c142e49062351accd8
Author:     Felix Palmen <zirias@FreeBSD.org>
AuthorDate: 2023-02-20 15:51:44 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2023-02-20 20:46:23 +0000

    audio/gtultra: Add new port
    
    GTUltra is a fork of goattracker, a music tracker for the Commodore 64,
    which adds many new features, most notably an extended user interface.
    
    Approved by:            tcberner (mentor)
    Differential Revision:  https://reviews.freebsd.org/D38699
---
 audio/Makefile          |  1 +
 audio/gtultra/Makefile  | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
 audio/gtultra/distinfo  |  3 +++
 audio/gtultra/pkg-descr |  2 ++
 audio/gtultra/pkg-plist | 32 ++++++++++++++++++++++++++++
 5 files changed, 94 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index f7969a2f9862..6f9264cb8f3c 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -288,6 +288,7 @@
     SUBDIR += gtkguitune
     SUBDIR += gtkpod
     SUBDIR += gtmixer
+    SUBDIR += gtultra
     SUBDIR += guidoar
     SUBDIR += guidolib
     SUBDIR += guitarix-lv2
diff --git a/audio/gtultra/Makefile b/audio/gtultra/Makefile
new file mode 100644
index 000000000000..1df7c0767dc9
--- /dev/null
+++ b/audio/gtultra/Makefile
@@ -0,0 +1,56 @@
+PORTNAME=		gtultra
+DISTVERSIONPREFIX=	v
+DISTVERSION=		1.4.2.2
+CATEGORIES=		audio
+
+MAINTAINER=	zirias@FreeBSD.org
+COMMENT=	Music tracker for the C64, fork of goattracker
+WWW=		https://github.com/jpage8580/GTUltra
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/copying
+
+LIB_DEPENDS=	libasound.so:audio/alsa-lib
+
+USES=		gmake pkgconfig sdl
+USE_GITHUB=	yes
+GH_ACCOUNT=	jpage8580
+GH_PROJECT=	GTUltra
+USE_SDL=	sdl2
+
+MAKEFILE=	makefile
+
+DESKTOP_ENTRIES=	"GTUltra" \
+			"${COMMENT}" \
+			"${PREFIX}/share/pixmaps/gtultra.ico" \
+			"gtultra" \
+			"" \
+			false
+
+BUILD_WRKSRC=	${WRKSRC}/src
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+do-install:
+.for p in gtultra mod2sng2 ss2stereo
+		${INSTALL_PROGRAM} ${WRKSRC}/linux/${p} \
+			${STAGEDIR}${PREFIX}/bin
+.endfor
+		# Avoid conflict with original goattracker:
+		${INSTALL_PROGRAM} ${WRKSRC}/linux/ins2snd2 \
+			${STAGEDIR}${PREFIX}/bin/ins2snd2u
+		${INSTALL_DATA} ${WRKSRC}/src/gt2stereo_2.ico \
+			${STAGEDIR}${PREFIX}/share/pixmaps/gtultra.ico
+
+post-install-DOCS-on:
+		${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for d in readme.txt GTUltra.pdf
+		${INSTALL_MAN} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+post-install-EXAMPLES-on:
+		${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+		(cd ${WRKSRC}/examples && \
+			${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/audio/gtultra/distinfo b/audio/gtultra/distinfo
new file mode 100644
index 000000000000..f0b7efc4c2de
--- /dev/null
+++ b/audio/gtultra/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676905202
+SHA256 (jpage8580-GTUltra-v1.4.2.2_GH0.tar.gz) = b1b309023fd24fde2b6493de8c872bc1156bdb0e24fd5c95b1cb4b480d10992e
+SIZE (jpage8580-GTUltra-v1.4.2.2_GH0.tar.gz) = 3830232
diff --git a/audio/gtultra/pkg-descr b/audio/gtultra/pkg-descr
new file mode 100644
index 000000000000..d1b17c7bdc8e
--- /dev/null
+++ b/audio/gtultra/pkg-descr
@@ -0,0 +1,2 @@
+GTUltra is an extensively modified GoatTracker Stereo (2.76) version.
+It includes many new features.
diff --git a/audio/gtultra/pkg-plist b/audio/gtultra/pkg-plist
new file mode 100644
index 000000000000..715b9d87b4f9
--- /dev/null
+++ b/audio/gtultra/pkg-plist
@@ -0,0 +1,32 @@
+bin/gtultra
+bin/ins2snd2u
+bin/mod2sng2
+bin/ss2stereo
+%%PORTDOCS%%%%DOCSDIR%%/GTUltra.pdf
+%%PORTDOCS%%%%DOCSDIR%%/readme.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Jammer/$3GarysGlitteringSaliva_4x.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Jammer/$3LastNight_Jammer.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Jammer/$3TrippyTrappy.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Jammer/$6Boileroom_2SID.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Jammer/$6StarsAreUs_2SID.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/LMan/$3LMan-Rivalry-Dubs.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/LMan/$3LMan-SID-Chip-Club-Menu.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3Cold-War-Generation.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3Space_Beer.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3childhood-ends.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3elevate-me-to-the-gallows.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3heavy-weight-blues-beard.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3modern-love-classics.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3pissholes-in-the-snow.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Linus/$3sys64738-days.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - A Tune for Unity [8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - Brigade Akin Eco [8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - Ebisu [8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - I Can't Go On I'll Go On [2x speed 8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - Lydia on Speed Dial [8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mibri/$3Mibri - Psychic Carpet Bombing [3x speed 8580].sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Shogoon/$3In-clouds.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Shogoon/$3jammar-akhbar.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Shogoon/$6Oum-Le-Dauphin.sng
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Shogoon/$6To-Norah.sng
+share/pixmaps/gtultra.ico