mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Update fluidsynth to 2.5.4
OK ratchov@
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
COMMENT = SoundFont2 software synthesizer
|
||||
|
||||
# 2.5.x is expected to remove SDL2 support in favour of SDL3
|
||||
GH_ACCOUNT = FluidSynth
|
||||
GH_PROJECT = fluidsynth
|
||||
GH_TAGNAME = v2.4.8
|
||||
GH_TAGNAME = v2.5.4
|
||||
|
||||
SHARED_LIBS += fluidsynth 4.0 # 3.3 (grep LIB_VERSION CMakeLists.txt)
|
||||
SHARED_LIBS += fluidsynth 5.0 # 3.5 (grep LIB_VERSION CMakeLists.txt)
|
||||
|
||||
CATEGORIES = audio
|
||||
|
||||
@@ -14,16 +13,19 @@ HOMEPAGE = https://www.fluidsynth.org/
|
||||
# LGPLv2+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} SDL2 c glib-2.0 gthread-2.0 intl
|
||||
WANTLIB += ${COMPILER_LIBCXX} SDL3 c glib-2.0 gthread-2.0 intl
|
||||
WANTLIB += m readline sndfile sndio
|
||||
|
||||
COMPILER = base-clang ports-gcc
|
||||
|
||||
MODULES = devel/cmake
|
||||
|
||||
BUILD_DEPENDS = devel/gcem
|
||||
|
||||
LIB_DEPENDS = audio/libsndfile \
|
||||
devel/gettext,-runtime \
|
||||
devel/glib2 \
|
||||
devel/sdl2
|
||||
devel/sdl3
|
||||
|
||||
CONFIGURE_ARGS = -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=On \
|
||||
-Denable-jack=OFF \
|
||||
@@ -37,7 +39,7 @@ CONFIGURE_ARGS = -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=On \
|
||||
-Denable-oss=OFF \
|
||||
-Denable-pipewire=OFF \
|
||||
-Denable-pulseaudio=OFF \
|
||||
-Denable-sdl3=OFF
|
||||
-Denable-sdl3=ON
|
||||
|
||||
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (fluidsynth-2.4.8.tar.gz) = 1tBOkBRVeQbuQqof481YCEDqSC1MOxpF/d1F7GBtbpc=
|
||||
SIZE (fluidsynth-2.4.8.tar.gz) = 1798565
|
||||
SHA256 (fluidsynth-2.5.4.tar.gz) = cvVyAyj+ROLlxngTiF8Ka0sATQSL0u7rDABkB06/9TA=
|
||||
SIZE (fluidsynth-2.5.4.tar.gz) = 2115539
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -97,6 +97,7 @@ option ( enable-winmidi "compile Windows MIDI support
|
||||
option ( enable-sdl2 "compile SDL2 audio support (if it is available)" off )
|
||||
@@ -96,6 +96,7 @@ option ( enable-waveout "compile Windows WaveOut suppo
|
||||
option ( enable-winmidi "compile Windows MIDI support (if it is available)" on )
|
||||
option ( enable-sdl3 "compile SDL3 audio support (if it is available)" on )
|
||||
option ( enable-pulseaudio "compile PulseAudio support (if it is available)" on )
|
||||
+option ( enable-sndio "compile sndio support (if it is available)" on )
|
||||
option ( enable-pipewire "compile PipeWire 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 )
|
||||
@@ -201,8 +202,6 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MA
|
||||
if (NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin|OS2|Emscripten|SunOS") )
|
||||
@@ -209,8 +210,6 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MA
|
||||
if (NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin|iOS|tvOS|OS2|Emscripten|SunOS") )
|
||||
set ( CMAKE_EXE_LINKER_FLAGS
|
||||
"${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" )
|
||||
- set ( CMAKE_SHARED_LINKER_FLAGS
|
||||
@@ -18,8 +18,8 @@ Index: CMakeLists.txt
|
||||
endif ()
|
||||
|
||||
# define some warning flags
|
||||
@@ -576,6 +575,18 @@ if ( enable-libsndfile )
|
||||
endif ( LIBSNDFILE_SUPPORT )
|
||||
@@ -612,6 +611,18 @@ if ( enable-libsndfile )
|
||||
endif ( SndFile_FOUND )
|
||||
#set(CMAKE_FIND_DEBUG_MODE OFF)
|
||||
endif ( enable-libsndfile )
|
||||
+
|
||||
|
||||
@@ -7,22 +7,11 @@ Index: FluidSynthConfig.cmake.in
|
||||
set(FLUIDSYNTH_SUPPORT_ALSA @ALSA_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_COREAUDIO @COREAUDIO_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_COREMIDI @COREMIDI_SUPPORT@)
|
||||
@@ -14,6 +15,7 @@ set(FLUIDSYNTH_SUPPORT_PIPEWIRE @PIPEWIRE_SUPPORT@)
|
||||
@@ -13,6 +14,7 @@ set(FLUIDSYNTH_SUPPORT_OSS @OSS_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_PIPEWIRE @PIPEWIRE_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_PORTAUDIO @PORTAUDIO_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_PULSE @PULSE_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_SDL2 @SDL2_SUPPORT@)
|
||||
+set(FLUIDSYNTH_SUPPORT_SNDIO @SNDIO_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_SDL3 @SDL3_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_WASAPI @WASAPI_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_WAVEOUT @WAVEOUT_SUPPORT@)
|
||||
set(FLUIDSYNTH_SUPPORT_WINMIDI @WINMIDI_SUPPORT@)
|
||||
@@ -133,6 +135,10 @@ if(NOT FLUIDSYNTH_IS_SHARED)
|
||||
|
||||
if(FLUIDSYNTH_SUPPORT_SDL2 AND NOT TARGET SDL2::SDL2)
|
||||
find_dependency(SDL2)
|
||||
+ endif()
|
||||
+
|
||||
+ if(FLUIDSYNTH_SUPPORT_SNDIO AND NOT TARGET SNDIO::SNDIO)
|
||||
+ find_dependency(SNDIO)
|
||||
endif()
|
||||
|
||||
if(FLUIDSYNTH_SUPPORT_SYSTEMD AND NOT Systemd::libsystemd)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: cmake_admin/report.cmake
|
||||
--- cmake_admin/report.cmake.orig
|
||||
+++ cmake_admin/report.cmake
|
||||
@@ -98,6 +98,12 @@ else ( SDL3_SUPPORT )
|
||||
@@ -96,6 +96,12 @@ else ( SDL3_SUPPORT )
|
||||
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} SDL3: no\n" )
|
||||
endif ( SDL3_SUPPORT )
|
||||
|
||||
|
||||
@@ -12,15 +12,15 @@ Index: src/CMakeLists.txt
|
||||
if ( PULSE_SUPPORT )
|
||||
set ( fluid_pulse_SOURCES drivers/fluid_pulse.c )
|
||||
endif ( PULSE_SUPPORT )
|
||||
@@ -252,6 +256,7 @@ add_library ( libfluidsynth-OBJ OBJECT
|
||||
@@ -277,6 +281,7 @@ add_library ( libfluidsynth-OBJ OBJECT
|
||||
${fluid_waveout_SOURCES}
|
||||
${fluid_winmidi_SOURCES}
|
||||
${fluid_sdl2_SOURCES}
|
||||
${fluid_sdl3_SOURCES}
|
||||
+ ${fluid_sndio_SOURCES}
|
||||
${fluid_dls_SOURCES}
|
||||
${fluid_libinstpatch_SOURCES}
|
||||
${libfluidsynth_SOURCES}
|
||||
${public_HEADERS}
|
||||
@@ -371,6 +376,11 @@ target_link_libraries ( libfluidsynth-OBJ PUBLIC GLib2
|
||||
${fluid_osal_SOURCES}
|
||||
@@ -405,6 +410,11 @@ endif()
|
||||
|
||||
if ( TARGET SndFile::sndfile AND LIBSNDFILE_SUPPORT )
|
||||
target_link_libraries ( libfluidsynth-OBJ PUBLIC SndFile::sndfile )
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/config.cmake
|
||||
--- src/config.cmake.orig
|
||||
+++ src/config.cmake
|
||||
@@ -211,6 +211,9 @@
|
||||
@@ -209,6 +209,9 @@
|
||||
/* Define to enable SDL3 audio driver */
|
||||
#cmakedefine SDL3_SUPPORT @SDL3_SUPPORT@
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/drivers/fluid_adriver.c
|
||||
--- src/drivers/fluid_adriver.c.orig
|
||||
+++ src/drivers/fluid_adriver.c
|
||||
@@ -40,6 +40,16 @@ struct _fluid_audriver_definition_t
|
||||
@@ -39,6 +39,16 @@ struct _fluid_audriver_definition_t
|
||||
/* Available audio drivers, listed in order of preference */
|
||||
static const fluid_audriver_definition_t fluid_audio_drivers[] =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/drivers/fluid_adriver.h
|
||||
--- src/drivers/fluid_adriver.h.orig
|
||||
+++ src/drivers/fluid_adriver.h
|
||||
@@ -43,6 +43,15 @@ void fluid_audio_driver_settings(fluid_settings_t *set
|
||||
@@ -42,6 +42,15 @@ void fluid_audio_driver_settings(fluid_settings_t *set
|
||||
/* Defined in fluid_filerenderer.c */
|
||||
void fluid_file_renderer_settings(fluid_settings_t *settings);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/drivers/fluid_mdriver.c
|
||||
--- src/drivers/fluid_mdriver.c.orig
|
||||
+++ src/drivers/fluid_mdriver.c
|
||||
@@ -38,6 +38,14 @@ struct _fluid_mdriver_definition_t
|
||||
@@ -37,6 +37,14 @@ struct _fluid_mdriver_definition_t
|
||||
|
||||
static const fluid_mdriver_definition_t fluid_midi_drivers[] =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/drivers/fluid_mdriver.h
|
||||
--- src/drivers/fluid_mdriver.h.orig
|
||||
+++ src/drivers/fluid_mdriver.h
|
||||
@@ -38,6 +38,15 @@ struct _fluid_midi_driver_t
|
||||
@@ -37,6 +37,15 @@ struct _fluid_midi_driver_t
|
||||
|
||||
void fluid_midi_driver_settings(fluid_settings_t *settings);
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ include/fluidsynth/types.h
|
||||
include/fluidsynth/version.h
|
||||
include/fluidsynth/voice.h
|
||||
lib/cmake/fluidsynth/
|
||||
lib/cmake/fluidsynth/FluidSynth-shared-targets${MODCMAKE_BUILD_SUFFIX}
|
||||
lib/cmake/fluidsynth/FluidSynth-shared-targets.cmake
|
||||
lib/cmake/fluidsynth/FluidSynthConfig.cmake
|
||||
lib/cmake/fluidsynth/FluidSynthConfigVersion.cmake
|
||||
lib/cmake/fluidsynth/FluidSynthTargets${MODCMAKE_BUILD_SUFFIX}
|
||||
lib/cmake/fluidsynth/FluidSynthTargets.cmake
|
||||
@lib lib/libfluidsynth.so.${LIBfluidsynth_VERSION}
|
||||
lib/pkgconfig/fluidsynth.pc
|
||||
@man man/man1/fluidsynth.1
|
||||
|
||||
Reference in New Issue
Block a user