git: 06d391d9d847 - main - audio/ft2-clone: Rename and update to 1.80

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Wed, 10 Apr 2024 06:09:04 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=06d391d9d847c42824778511fab88d08a37ffc44

commit 06d391d9d847c42824778511fab88d08a37ffc44
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2024-04-10 06:05:08 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2024-04-10 06:05:08 +0000

    audio/ft2-clone: Rename and update to 1.80
    
    Rename the audio/fasttracker2 package to audio/ft2-clone to align with
    the upstream naming convention. Update the package to version 1.80.
    
    Note that version 1.81 has been observed to cause segmentation faults
    and has therefore been skipped. Additionally, apply recommendations from
    portlint, portclippy, and portfmt.
---
 MOVED                                      |  1 +
 audio/Makefile                             |  2 +-
 audio/fasttracker2/distinfo                |  3 ---
 audio/fasttracker2/pkg-descr               |  1 -
 audio/{fasttracker2 => ft2-clone}/Makefile | 33 ++++++++++++++++--------------
 audio/ft2-clone/distinfo                   |  3 +++
 audio/ft2-clone/pkg-descr                  |  5 +++++
 7 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/MOVED b/MOVED
index d2e156ee2633..73489090d532 100644
--- a/MOVED
+++ b/MOVED
@@ -3166,3 +3166,4 @@ math/lean4-std||2024-04-08|Removed: Lean4 doesn't yet support seperate library p
 misc/urbit||2024-04-08|Deprecated: Can't be built with a reasonable effort
 lang/tcl85||2024-04-09|EOL
 x11-toolkits/tk85||2024-04-09|EOL
+audio/fasttracker2|audio/ft2-clone|2024-04-10|Renamed to match upstream
diff --git a/audio/Makefile b/audio/Makefile
index 8827cbe6db92..9259b8b0e6c5 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -149,7 +149,6 @@
     SUBDIR += faad
     SUBDIR += fabla2-lv2
     SUBDIR += fapg
-    SUBDIR += fasttracker2
     SUBDIR += fatfrog-lv2
     SUBDIR += faudio
     SUBDIR += faust
@@ -200,6 +199,7 @@
     SUBDIR += freebsd-13-mixer
     SUBDIR += freedesktop-sound-theme
     SUBDIR += freepats
+    SUBDIR += ft2-clone
     SUBDIR += ft2play
     SUBDIR += funktrackergold
     SUBDIR += furnace
diff --git a/audio/fasttracker2/distinfo b/audio/fasttracker2/distinfo
deleted file mode 100644
index ba154925b6e0..000000000000
--- a/audio/fasttracker2/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1710829432
-SHA256 (8bitbubsy-ft2-clone-v1.79.2_GH0.tar.gz) = bf684b2756ec840803ffd063c6b58e96e1ec5e1e1e7239c6426752bde3db8b12
-SIZE (8bitbubsy-ft2-clone-v1.79.2_GH0.tar.gz) = 6084463
diff --git a/audio/fasttracker2/pkg-descr b/audio/fasttracker2/pkg-descr
deleted file mode 100644
index 550332007bba..000000000000
--- a/audio/fasttracker2/pkg-descr
+++ /dev/null
@@ -1 +0,0 @@
-Multi-platform clone of the classic music making software FastTracker II.
diff --git a/audio/fasttracker2/Makefile b/audio/ft2-clone/Makefile
similarity index 71%
rename from audio/fasttracker2/Makefile
rename to audio/ft2-clone/Makefile
index c99dda0a0031..687d4e3892c2 100644
--- a/audio/fasttracker2/Makefile
+++ b/audio/ft2-clone/Makefile
@@ -1,6 +1,6 @@
-PORTNAME=	fasttracker2
+PORTNAME=	ft2-clone
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.79.2
+DISTVERSION=	1.80
 CATEGORIES=	audio
 
 MAINTAINER=	ehaupt@FreeBSD.org
@@ -16,27 +16,30 @@ LICENSE_FILE_CC-BY-NC-SA-4.0=	${WRKSRC}/src/gfxdata/bmp/LICENSE.txt
 USES=		cmake compiler dos2unix iconv:wchar_t localbase:ldflags sdl
 USE_GITHUB=	yes
 GH_ACCOUNT=	8bitbubsy
-GH_PROJECT=	ft2-clone
 USE_SDL=	sdl2
 
 CFLAGS_i386+=	-msse2
 LDFLAGS+=	-lSDL2 -lpthread -lstdc++ -lm -liconv
 
-DESKTOP_ENTRIES="FastTracker II" \
-		"${COMMENT}" \
-		"${PREFIX}/share/pixmaps/ft2-clone.ico" \
-		"fasttracker2" \
-		"" \
-		false
+DESKTOP_ENTRIES=	"FastTracker II Clone" \
+			"${COMMENT}" \
+			"${PREFIX}/share/pixmaps/ft2-clone.ico" \
+			"ft2-clone" \
+			"" \
+			false
 
-PLIST_FILES=	bin/fasttracker2 share/pixmaps/ft2-clone.ico
+# segfaults
+PORTSCOUT=	skipv:v1.81
 
-OPTIONS_DEFINE=	ALSA PULSEAUDIO
-OPTIONS_DEFAULT=ALSA
+PLIST_FILES=	bin/ft2-clone \
+		share/pixmaps/ft2-clone.ico
+
+OPTIONS_DEFINE=		ALSA PULSEAUDIO
+OPTIONS_DEFAULT=	ALSA
 
 ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
-ALSA_CFLAGS+=	-D__LINUX_ALSA__
-ALSA_LDFLAGS+=	-lasound
+ALSA_CFLAGS+=		-D__LINUX_ALSA__
+ALSA_LDFLAGS+=		-lasound
 
 PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
 PULSEAUDIO_LDFLAGS+=	-lpulse
@@ -52,7 +55,7 @@ USE_CSTD=	c99
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
 	${INSTALL_PROGRAM} ${WRKSRC}/release/other/ft2-clone \
-		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+		${STAGEDIR}${PREFIX}/bin
 	${INSTALL_DATA} ${WRKSRC}/src/gfxdata/icon/ft2-clone.ico \
 		${STAGEDIR}${PREFIX}/share/pixmaps
 
diff --git a/audio/ft2-clone/distinfo b/audio/ft2-clone/distinfo
new file mode 100644
index 000000000000..c64f74484658
--- /dev/null
+++ b/audio/ft2-clone/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712728483
+SHA256 (8bitbubsy-ft2-clone-v1.80_GH0.tar.gz) = 805e21bd7fafde255deb117e22f2ee4a7ade1a9b500de3580a2e25bd48479701
+SIZE (8bitbubsy-ft2-clone-v1.80_GH0.tar.gz) = 6084971
diff --git a/audio/ft2-clone/pkg-descr b/audio/ft2-clone/pkg-descr
new file mode 100644
index 000000000000..66de4550633c
--- /dev/null
+++ b/audio/ft2-clone/pkg-descr
@@ -0,0 +1,5 @@
+Multi-platform clone of the classic music making software FastTracker II.
+
+It aims to be a highly accurate clone of the classic Fasttracker II
+software for MS-DOS. The XM player itself has been directly ported from
+the original source code, for maximum accuracy.