diff --git a/audio/fluidsynth/Makefile b/audio/fluidsynth/Makefile index 46da480b9457..06bd4adbc0a8 100644 --- a/audio/fluidsynth/Makefile +++ b/audio/fluidsynth/Makefile @@ -1,66 +1,71 @@ PORTNAME= fluidsynth DISTVERSIONPREFIX= v -DISTVERSION= 2.2.8 +DISTVERSION= 2.3.1 CATEGORIES= audio MAINTAINER= multimedia@FreeBSD.org COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications WWW= https://www.fluidsynth.org/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake cpe gnome pkgconfig USE_GITHUB= yes GH_ACCOUNT= FluidSynth USE_GNOME= glib20 USE_LDCONFIG= yes # would require unreleased libinstpatch >= 1.1.0 CMAKE_OFF= enable-libinstpatch enable-midishare LDFLAGS+= -lpthread -OPTIONS_DEFINE= ALSA DBUS JACK LADSPA LASH PORTAUDIO PULSEAUDIO \ - READLINE SDL SNDFILE SNDIO +OPTIONS_DEFINE= ALSA DBUS JACK LADSPA LASH PIPEWIRE PORTAUDIO \ + PULSEAUDIO READLINE SDL SNDFILE SNDIO OPTIONS_DEFAULT= JACK READLINE +PIPEWIRE_DESC= PipeWire support + JACK_LIB_DEPENDS= libjack.so:audio/jack JACK_CMAKE_BOOL= enable-jack ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_CMAKE_BOOL= enable-alsa DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_CMAKE_BOOL= enable-dbus LADSPA_BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa LADSPA_RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa LADSPA_USES= localbase LADSPA_CMAKE_BOOL= enable-ladspa LASH_LIB_DEPENDS= liblash.so:audio/lash LASH_CMAKE_BOOL= enable-lash +PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire +PIPEWIRE_CMAKE_BOOL= enable-pipewire + PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio PORTAUDIO_CMAKE_BOOL= enable-portaudio PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CMAKE_BOOL= enable-pulseaudio READLINE_USES= readline READLINE_CMAKE_BOOL= enable-readline SDL_USES= sdl SDL_USE= SDL=sdl2 SDL_CMAKE_BOOL= enable-sdl2 SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile SNDFILE_CMAKE_BOOL= enable-libsndfile SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio SNDIO_CMAKE_BOOL= enable-sndio post-patch: ${CP} ${FILESDIR}/fluid_sndio.c ${WRKSRC}/src/drivers/ .include diff --git a/audio/fluidsynth/distinfo b/audio/fluidsynth/distinfo index 737098f6852c..87d0738a0804 100644 --- a/audio/fluidsynth/distinfo +++ b/audio/fluidsynth/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1658525753 -SHA256 (FluidSynth-fluidsynth-v2.2.8_GH0.tar.gz) = 7c29a5cb7a2755c8012d941d1335da7bda957bbb0a86b7c59215d26773bb51fe -SIZE (FluidSynth-fluidsynth-v2.2.8_GH0.tar.gz) = 1751615 +TIMESTAMP = 1672385297 +SHA256 (FluidSynth-fluidsynth-v2.3.1_GH0.tar.gz) = d734e4cf488be763cf123e5976f3154f0094815093eecdf71e0e9ae148431883 +SIZE (FluidSynth-fluidsynth-v2.3.1_GH0.tar.gz) = 1758632 diff --git a/audio/fluidsynth/files/patch-CMakeLists.txt b/audio/fluidsynth/files/patch-CMakeLists.txt index f9197d1ca637..f9c26aca644e 100644 --- a/audio/fluidsynth/files/patch-CMakeLists.txt +++ b/audio/fluidsynth/files/patch-CMakeLists.txt @@ -1,22 +1,22 @@ ---- CMakeLists.txt.orig 2019-02-03 07:13:31 UTC +--- CMakeLists.txt.orig 2022-12-28 11:43:59 UTC +++ CMakeLists.txt -@@ -71,6 +71,7 @@ option ( enable-dsound "compile DirectSound support (i - option ( enable-winmidi "compile Windows MIDI support (if it is available)" on ) - option ( enable-pkgconfig "use pkg-config to locate fluidsynth's (mostly optional) dependencies" on ) +@@ -90,6 +90,7 @@ option ( enable-winmidi "compile Windows MIDI support + option ( enable-sdl2 "compile SDL2 audio support (if it is available)" on ) option ( enable-pulseaudio "compile PulseAudio support (if it is available)" on ) + option ( enable-pipewire "compile PipeWire support (if it is available)" on ) +option ( enable-sndio "compile Sndio support (if it is available)" on ) option ( enable-readline "compile readline lib line editing (if it is available)" on ) option ( enable-threads "enable multi-threading support (such as parallel voice synthesis)" on ) - -@@ -481,6 +482,11 @@ else(NOT enable-pkgconfig) - else ( enable-pulseaudio ) + option ( enable-openmp "enable OpenMP support (parallelization of soundfont decoding, vectorization of voice mixing, etc.)" on ) +@@ -530,6 +531,11 @@ if ( enable-pulseaudio ) + else ( enable-pulseaudio ) unset_pkg_config ( PULSE ) - endif ( enable-pulseaudio ) + endif ( enable-pulseaudio ) + -+ unset ( SNDIO_SUPPORT CACHE ) -+ if ( enable-sndio ) -+ set ( SNDIO_SUPPORT 1 ) -+ endif ( enable-sndio ) ++unset ( SNDIO_SUPPORT CACHE ) ++if ( enable-sndio ) ++ set ( SNDIO_SUPPORT 1 ) ++endif ( enable-sndio ) - unset ( ALSA_SUPPORT CACHE ) - if ( enable-alsa ) + unset ( ALSA_SUPPORT CACHE ) + if ( enable-alsa ) diff --git a/audio/fluidsynth/files/patch-src_CMakeLists.txt b/audio/fluidsynth/files/patch-src_CMakeLists.txt index c668618bc7e9..c1de696660a8 100644 --- a/audio/fluidsynth/files/patch-src_CMakeLists.txt +++ b/audio/fluidsynth/files/patch-src_CMakeLists.txt @@ -1,30 +1,33 @@ ---- src/CMakeLists.txt.orig 2018-12-30 11:42:00 UTC +--- src/CMakeLists.txt.orig 2022-12-28 11:43:59 UTC +++ src/CMakeLists.txt -@@ -50,6 +50,11 @@ if ( PULSE_SUPPORT ) - include_directories ( ${PULSE_INCLUDE_DIRS} ) +@@ -25,6 +25,11 @@ if ( PULSE_SUPPORT ) + set ( fluid_pulse_SOURCES drivers/fluid_pulse.c ) endif ( PULSE_SUPPORT ) +if ( SNDIO_SUPPORT ) + set ( fluid_sndio_SOURCES drivers/fluid_sndio.c ) + set ( SNDIO_LIBRARIES sndio ) +endif ( SNDIO_SUPPORT ) + if ( ALSA_SUPPORT ) set ( fluid_alsa_SOURCES drivers/fluid_alsa.c ) - include_directories ( ${ALSA_INCLUDE_DIRS} ) -@@ -247,6 +252,7 @@ add_library ( libfluidsynth-OBJ OBJECT + endif ( ALSA_SUPPORT ) +@@ -245,6 +250,7 @@ add_library ( libfluidsynth-OBJ OBJECT ${fluid_oss_SOURCES} ${fluid_portaudio_SOURCES} ${fluid_pulse_SOURCES} + ${fluid_sndio_SOURCES} ${fluid_dsound_SOURCES} - ${fluid_winmidi_SOURCES} - ${libfluidsynth_SOURCES} -@@ -314,6 +320,7 @@ target_link_libraries ( libfluidsynth - ${JACK_LIBRARIES} - ${ALSA_LIBRARIES} - ${PULSE_LIBRARIES} -+ ${SNDIO_LIBRARIES} - ${PORTAUDIO_LIBRARIES} - ${LIBSNDFILE_LIBRARIES} - ${DBUS_LIBRARIES} + ${fluid_wasapi_SOURCES} + ${fluid_waveout_SOURCES} +@@ -360,6 +366,10 @@ endif() + + if ( TARGET PkgConfig::PULSE AND PULSE_SUPPORT ) + target_link_libraries ( libfluidsynth-OBJ PUBLIC PkgConfig::PULSE ) ++endif() ++ ++if ( SNDIO_SUPPORT) ++ target_link_libraries ( libfluidsynth-OBJ PUBLIC ${SNDIO_LIBRARIES} ) + endif() + + if ( ALSA_SUPPORT ) diff --git a/audio/fluidsynth/pkg-plist b/audio/fluidsynth/pkg-plist index 34e0ce7a667b..55c988f54edd 100644 --- a/audio/fluidsynth/pkg-plist +++ b/audio/fluidsynth/pkg-plist @@ -1,24 +1,28 @@ bin/fluidsynth include/fluidsynth.h include/fluidsynth/audio.h include/fluidsynth/event.h include/fluidsynth/gen.h include/fluidsynth/ladspa.h include/fluidsynth/log.h include/fluidsynth/midi.h include/fluidsynth/misc.h include/fluidsynth/mod.h include/fluidsynth/seq.h include/fluidsynth/seqbind.h include/fluidsynth/settings.h include/fluidsynth/sfont.h include/fluidsynth/shell.h include/fluidsynth/synth.h include/fluidsynth/types.h include/fluidsynth/version.h include/fluidsynth/voice.h +lib/cmake/fluidsynth/FluidSynthConfig.cmake +lib/cmake/fluidsynth/FluidSynthConfigVersion.cmake +lib/cmake/fluidsynth/FluidSynthTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/fluidsynth/FluidSynthTargets.cmake lib/libfluidsynth.so lib/libfluidsynth.so.3 -lib/libfluidsynth.so.3.1.1 +lib/libfluidsynth.so.3.1.4 libdata/pkgconfig/fluidsynth.pc -man/man1/fluidsynth.1.gz +share/man/man1/fluidsynth.1.gz