Skip to content

Commit

Permalink
audio/ardour: Update to 8.1.0 release.
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
0EVSG authored and fernape committed Oct 26, 2023
1 parent 30f031e commit 6b3c0c5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 10 deletions.
25 changes: 18 additions & 7 deletions 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
Expand Down Expand Up @@ -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 \
Expand All @@ -54,22 +53,31 @@ 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
CONFIGURE_ARGS_i386= --arch='-msse -mfpmath=sse -march=i686 -DARCH_X86' --dist-target=i686

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
Expand Down Expand Up @@ -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>
6 changes: 3 additions & 3 deletions 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
11 changes: 11 additions & 0 deletions 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
20 changes: 20 additions & 0 deletions audio/ardour/pkg-plist
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -285,19 +293,24 @@ 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
%%DATADIR%%/midi_maps/AKAI_MPK225_Plugins.map
%%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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6b3c0c5

Please sign in to comment.