git: 6b3c0c5d303e - main - audio/ardour: Update to 8.1.0 release.

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 26 Oct 2023 07:23:40 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b3c0c5d303e615e444cc6fe29425ec23ec8223c

commit 6b3c0c5d303e615e444cc6fe29425ec23ec8223c
Author:     Florian Walpen <dev@submerge.ch>
AuthorDate: 2023-10-25 11:36:16 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-10-26 07:23:11 +0000

    audio/ardour: Update to 8.1.0 release.
    
    ChangeLog: https://ardour.org/whatsnew.html
    
    VST3 plugin is optional since audio/vst3sdk is broken in various FreeBSD
    versions.
    
    PR:             274644
    Reported by:    dev@submerge.ch (maintainer)
---
 audio/ardour/Makefile                              | 25 ++++++++++++++++------
 audio/ardour/distinfo                              |  6 +++---
 ...patch-libs_vst3_pluginterfaces_base_fplatform.h | 11 ++++++++++
 audio/ardour/pkg-plist                             | 20 +++++++++++++++++
 4 files changed, 52 insertions(+), 10 deletions(-)

diff --git a/audio/ardour/Makefile b/audio/ardour/Makefile
index c7d7f7e32faf..71e57809e13b 100644
--- a/audio/ardour/Makefile
+++ b/audio/ardour/Makefile
@@ -1,11 +1,11 @@
 PORTNAME=	ardour
-DISTVERSION=	7.5.0
+DISTVERSION=	8.1.0
 CATEGORIES=	audio
 # Official source download is tailored to browsers, downloads from github are
 # deliberately made empty. Put the badly named distfile into a subdirectory.
 MASTER_SITES=	https://community.ardour.org/download/release/
 DISTNAME=	Ardour-${DISTVERSION}
-DISTFILES=	534
+DISTFILES=	550
 DIST_SUBDIR=	${DISTNAME}
 
 MAINTAINER=	dev@submerge.ch
@@ -42,7 +42,6 @@ LIB_DEPENDS=	libserd-0.so:devel/serd \
 		libcurl.so:ftp/curl \
 		libogg.so:audio/libogg \
 		libFLAC.so:audio/flac \
-		libSoundTouch.so:audio/soundtouch \
 		libwebsockets.so:net/libwebsockets
 
 USES=		compiler:c++11-lang desktop-file-utils gettext gnome \
@@ -54,7 +53,7 @@ USE_LDCONFIG=	yes
 USE_XORG=	x11
 
 CONFIGURE_ARGS=	--optimize --ptformat --freedesktop --no-phone-home \
-		--with-backends=jack,dummy --internal-shared-libs --no-vst3 \
+		--with-backends=jack,dummy --internal-shared-libs \
 		${CONFIGURE_ARGS_${ARCH}}
 CONFIGURE_ARGS_amd64=	--arch='-msse -mfpmath=sse -DARCH_X86' --dist-target=x86_64
 # only support for i686 or better
@@ -62,14 +61,23 @@ CONFIGURE_ARGS_i386=	--arch='-msse -mfpmath=sse -march=i686 -DARCH_X86' --dist-t
 
 LDFLAGS_powerpc=	-Wl,-z,notext
 
+ARDOUR_MAJOR=	ardour8
+ETCDIR=		${PREFIX}/etc/${ARDOUR_MAJOR}
+DATADIR=	${PREFIX}/share/${ARDOUR_MAJOR}
 BINARY_ALIAS+=	gas=${CC}
 
-ARDOUR_MAJOR=	ardour7
-DATADIR=	${PREFIX}/share/${ARDOUR_MAJOR}
-ETCDIR=		${PREFIX}/etc/${ARDOUR_MAJOR}
 PLIST_SUB+=	VERSION=${PORTVERSION} \
 		ARDOUR_MAJOR=${ARDOUR_MAJOR}
 
+OPTIONS_DEFINE=		VST3
+OPTIONS_SUB=		yes
+
+VST3_DESC=		Build with VST3 plugin support
+
+VST3_BUILD_DEPENDS=	vst3sdk>0:audio/vst3sdk
+# Inverted logic, the --vst3 argument _disables_ VST3 support.
+VST3_CONFIGURE_OFF=	--vst3
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/obj\.use            = '\''libsmf libpbd'\''/obj\.use            = '\''libsmf_internal libpbd'\''/g' ${WRKSRC}/libs/evoral/wscript
 	@${REINPLACE_CMD} -e 's/libsmf\.name         = '\''libsmf'\''/libsmf\.name         = '\''libsmf_internal'\''/g' ${WRKSRC}/libs/evoral/wscript
@@ -99,4 +107,7 @@ post-install:
 	@${LN} -sf ffmpeg ${STAGEDIR}${PREFIX}/bin/ffmpeg_harvid
 	@${LN} -sf ffprobe ${STAGEDIR}${PREFIX}/bin/ffprobe_harvid
 
+post-install-VST3-on:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${ARDOUR_MAJOR}/ardour-vst3-scanner
+
 .include <bsd.port.mk>
diff --git a/audio/ardour/distinfo b/audio/ardour/distinfo
index 8f5219c36676..738711edc9a0 100644
--- a/audio/ardour/distinfo
+++ b/audio/ardour/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1688296708
-SHA256 (Ardour-7.5.0/534) = a63beabe8c665fa685316f0e97d48ac9c95a93a0e5befcad2db731c77af9310f
-SIZE (Ardour-7.5.0/534) = 13465772
+TIMESTAMP = 1697821942
+SHA256 (Ardour-8.1.0/550) = 5a2656b326b2ee38f14df9378d044982f9ca1607e7e0bec647686eb6edc9dc17
+SIZE (Ardour-8.1.0/550) = 13835817
diff --git a/audio/ardour/files/patch-libs_vst3_pluginterfaces_base_fplatform.h b/audio/ardour/files/patch-libs_vst3_pluginterfaces_base_fplatform.h
new file mode 100644
index 000000000000..5150a861ecd4
--- /dev/null
+++ b/audio/ardour/files/patch-libs_vst3_pluginterfaces_base_fplatform.h
@@ -0,0 +1,11 @@
+--- libs/vst3/pluginterfaces/base/fplatform.h.orig	2023-10-10 20:07:54 UTC
++++ libs/vst3/pluginterfaces/base/fplatform.h
+@@ -86,7 +86,7 @@
+ //-----------------------------------------------------------------------------
+ // LINUX
+ //-----------------------------------------------------------------------------
+-#elif __gnu_linux__ || __linux__
++#elif __gnu_linux__ || __linux__ || __FreeBSD__
+ 	#define SMTG_OS_LINUX	1
+ 	#define SMTG_OS_MACOS	0
+ 	#define SMTG_OS_WINDOWS	0
diff --git a/audio/ardour/pkg-plist b/audio/ardour/pkg-plist
index 4078d5d71b77..dfbfe98b69a5 100644
--- a/audio/ardour/pkg-plist
+++ b/audio/ardour/pkg-plist
@@ -41,6 +41,7 @@ lib/%%ARDOUR_MAJOR%%/ardour-%%VERSION%%
 lib/%%ARDOUR_MAJOR%%/ardour-avahi
 lib/%%ARDOUR_MAJOR%%/ardour-exec-wrapper
 lib/%%ARDOUR_MAJOR%%/ardour-vst-scanner
+%%VST3%%lib/%%ARDOUR_MAJOR%%/ardour-vst3-scanner
 lib/%%ARDOUR_MAJOR%%/backends/libdummy_audiobackend.so
 lib/%%ARDOUR_MAJOR%%/backends/libjack_audiobackend.so
 lib/%%ARDOUR_MAJOR%%/engines/libclearlooks.so
@@ -94,6 +95,7 @@ lib/%%ARDOUR_MAJOR%%/surfaces/libardour_faderport2.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_faderport8.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_generic_midi.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_launch_control_xl.so
+lib/%%ARDOUR_MAJOR%%/surfaces/libardour_launchpad_pro.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_mcp.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_osc.so
 lib/%%ARDOUR_MAJOR%%/surfaces/libardour_us2400.so
@@ -178,6 +180,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/icons/halfnote.png
 %%DATADIR%%/icons/i_beam_cursor.png
 %%DATADIR%%/icons/launch_control_xl.png
+%%DATADIR%%/icons/launchpad-pro.png
 %%DATADIR%%/icons/mezzforte.png
 %%DATADIR%%/icons/mezzoforte.png
 %%DATADIR%%/icons/mezzopiano.png
@@ -233,6 +236,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/icons/solo-safe-icon.png
 %%DATADIR%%/icons/soloed-by-others.png
 %%DATADIR%%/icons/soundcloud.png
+%%DATADIR%%/icons/ssl-uf8-small.png
 %%DATADIR%%/icons/thirtysecondnote.png
 %%DATADIR%%/icons/time_exp.png
 %%DATADIR%%/icons/trim_bottom_cursor.png
@@ -271,6 +275,10 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/mcp/qcon_g2ex+g2.device
 %%DATADIR%%/mcp/qex+qcon.device
 %%DATADIR%%/mcp/ruco.device
+%%DATADIR%%/mcp/ssl-uf8+1.device
+%%DATADIR%%/mcp/ssl-uf8+2.device
+%%DATADIR%%/mcp/ssl-uf8+3.device
+%%DATADIR%%/mcp/ssl-uf8.device
 %%DATADIR%%/mcp/two_platform_x+_platform_m+.device
 %%DATADIR%%/mcp/user.profile
 %%DATADIR%%/mcp/x-touch+2x-touch-compact.device
@@ -285,6 +293,8 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/media/.daw-meta.xml
 %%DATADIR%%/media/click-120bpm.flac
 %%DATADIR%%/media/click.mid
+%%DATADIR%%/midi_maps/AKAI_APCmini.map
+%%DATADIR%%/midi_maps/AKAI_APCmini_mk2.map
 %%DATADIR%%/midi_maps/AKAI_MIDIMix_EQ_Mode.map
 %%DATADIR%%/midi_maps/AKAI_MIDIMix_Normal_Mode.map
 %%DATADIR%%/midi_maps/AKAI_MPK225_Normal.map
@@ -292,12 +302,15 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/midi_maps/AKAI_MPK249.map
 %%DATADIR%%/midi_maps/AKAI_MPK61.map
 %%DATADIR%%/midi_maps/AKAI_MPKmini.map
+%%DATADIR%%/midi_maps/AKAI_MPKminiplus.map
 %%DATADIR%%/midi_maps/Alesis_Q49v2.map
 %%DATADIR%%/midi_maps/Alesis_QX25.map
 %%DATADIR%%/midi_maps/Alesis_VI25.map
 %%DATADIR%%/midi_maps/Arturia_KeyLab49.map
 %%DATADIR%%/midi_maps/Arturia_MiniLab_mkII.map
 %%DATADIR%%/midi_maps/DDX3216.map
+%%DATADIR%%/midi_maps/Devine_Versakey.map
+%%DATADIR%%/midi_maps/Donner_StarryPad.map
 %%DATADIR%%/midi_maps/Korg_nanoKONTROL.map
 %%DATADIR%%/midi_maps/Korg_nanoKONTROL2.map
 %%DATADIR%%/midi_maps/Korg_nanoKONTROL2_With_Master.map
@@ -576,6 +589,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/patchfiles/Kurzweil_PC88_MX.midnam
 %%DATADIR%%/patchfiles/Kurzweil_PC88_VGM.midnam
 %%DATADIR%%/patchfiles/Kurzweil_PX_Plus.midnam
+%%DATADIR%%/patchfiles/Kurzweil_SP4.midnam
 %%DATADIR%%/patchfiles/Kurzweil_SP88x.midnam
 %%DATADIR%%/patchfiles/Lexicon_DR_Music_FX_Expansion.midnam
 %%DATADIR%%/patchfiles/Lexicon_Dual_FX_Expansion.midnam
@@ -608,6 +622,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/patchfiles/Moog_MF_108M_Cluster_Flux.midnam
 %%DATADIR%%/patchfiles/Moog_Minitaur.midnam
 %%DATADIR%%/patchfiles/Moog_Slim_Phatty.midnam
+%%DATADIR%%/patchfiles/Moog_Subsequent_37.midnam
 %%DATADIR%%/patchfiles/Morning_Star_MacWaveMaker.midnam
 %%DATADIR%%/patchfiles/Nord_Modular.midnam
 %%DATADIR%%/patchfiles/Novation_A_Station.midnam
@@ -801,6 +816,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/scripts/a_dtmf_phone.lua
 %%DATADIR%%/scripts/a_mute.lua
 %%DATADIR%%/scripts/a_slow_mute.lua
+%%DATADIR%%/scripts/a_stereo_routing.lua
 %%DATADIR%%/scripts/ab_switch.lua
 %%DATADIR%%/scripts/access_action.lua
 %%DATADIR%%/scripts/add_MIDI_monitor.lua
@@ -809,6 +825,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/scripts/addscopes.lua
 %%DATADIR%%/scripts/amp5.lua
 %%DATADIR%%/scripts/avldrums_midimap.lua
+%%DATADIR%%/scripts/barlow_arp.lua
 %%DATADIR%%/scripts/bounce_replace.lua
 %%DATADIR%%/scripts/bypass_all_plugins.lua
 %%DATADIR%%/scripts/collapse_playlists.lua
@@ -833,6 +850,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/scripts/pitch_to_mts.lua
 %%DATADIR%%/scripts/post_export_save_hook.lua
 %%DATADIR%%/scripts/preare_record_example.lua
+%%DATADIR%%/scripts/raptor_arp.lua
 %%DATADIR%%/scripts/record_now.lua
 %%DATADIR%%/scripts/remove_unknown_procs.lua
 %%DATADIR%%/scripts/reset_mixer.lua
@@ -852,6 +870,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/scripts/s_region_gain2.lua
 %%DATADIR%%/scripts/s_region_gain_curve.lua
 %%DATADIR%%/scripts/s_replaceplugin.lua
+%%DATADIR%%/scripts/s_sections.lua
 %%DATADIR%%/scripts/s_selection.lua
 %%DATADIR%%/scripts/s_set_region_fades.lua
 %%DATADIR%%/scripts/s_showhide_track.lua
@@ -868,6 +887,7 @@ share/applications/%%ARDOUR_MAJOR%%.desktop
 %%DATADIR%%/scripts/session_template_advanced.lua
 %%DATADIR%%/scripts/session_template_record.lua
 %%DATADIR%%/scripts/set_automation_mode.lua
+%%DATADIR%%/scripts/simple_arp.lua
 %%DATADIR%%/scripts/singen.lua
 %%DATADIR%%/scripts/spectrogram.lua
 %%DATADIR%%/scripts/split_all_markers.lua