Skip to content

Commit

Permalink
deps: update fluidsynth to 2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Mar 28, 2024
1 parent e7336c4 commit a189459
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions deps/fluidsynth/include/fluidsynth/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ extern "C" {
*
* @{
*/
#define FLUIDSYNTH_VERSION "2.3.4" /**< String constant of libfluidsynth version. */
#define FLUIDSYNTH_VERSION "2.3.5" /**< String constant of libfluidsynth version. */
#define FLUIDSYNTH_VERSION_MAJOR 2 /**< libfluidsynth major version integer constant. */
#define FLUIDSYNTH_VERSION_MINOR 3 /**< libfluidsynth minor version integer constant. */
#define FLUIDSYNTH_VERSION_MICRO 4 /**< libfluidsynth micro version integer constant. */
#define FLUIDSYNTH_VERSION_MICRO 5 /**< libfluidsynth micro version integer constant. */

FLUIDSYNTH_API void fluid_version(int *major, int *minor, int *micro);
FLUIDSYNTH_API char* fluid_version_str(void);
Expand Down
2 changes: 1 addition & 1 deletion deps/fluidsynth/lib/cmake/fluidsynth/FindInstPatch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ find_path(

find_library(
InstPatch_LIBRARY
NAMES "instpatch-1.0"
NAMES "instpatch-1.0" "instpatch-2"
HINTS "${PC_INSTPATCH_LIBDIR}")

# Get version from pkg-config or read the config header
Expand Down
4 changes: 2 additions & 2 deletions deps/fluidsynth/lib/cmake/fluidsynth/FindOpus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ find_library(

# Get the version from pkg-config
if(PC_OPUS_VERSION)
set(Opus_VERSION "${PC_OPUS_VERSION}")
set(Opus_VERSION "${PC_OPUS_VERSION}.0")
set(OPUS_VERSION "${Opus_VERSION}")
set(OPUS_VERSION_STRING "${Opus_VERSION}")
string(REPLACE "." ";" _opus_version_list "${Opus_VERSION}")
list(GET _opus_version_list 0 OPUS_VERSION_MAJOR)
list(GET _opus_version_list 1 OPUS_VERSION_MINOR)
list(GET _opus_version_list 2 OPUS_VERSION_PATCH)
list(GET _opus_version_list 2 OPUS_VERSION_PATCH) # might be missing if zero, hence adding the .0 above
else()
message(STATUS "Unable to get Opus version without pkg-config.")
set(Opus_VERSION)
Expand Down
5 changes: 3 additions & 2 deletions deps/fluidsynth/lib/cmake/fluidsynth/FindSndFile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ find_path(

find_library(
_sndfile_library
NAMES "sndfile"
NAMES "sndfile" "sndfile-1"
HINTS "${PC_SNDFILE_LIBDIR}")

# Get version from pkg-config or read the config header
Expand All @@ -69,7 +69,8 @@ elseif(SndFile_INCLUDE_DIR)
endif()

# Check the features SndFile was built with
if(PC_SNDFILE_FOUND)
# 2024-01-02: Recent versions of libsndfile don't seem to provide a pkgconfig file and older version who did are lacking private libraries like OGG.
if(TRUE) #PC_SNDFILE_FOUND
if("vorbis" IN_LIST PC_SNDFILE_STATIC_LIBRARIES)
set(SndFile_WITH_EXTERNAL_LIBS TRUE)
endif()
Expand Down
2 changes: 1 addition & 1 deletion deps/fluidsynth/lib/cmake/fluidsynth/Findmpg123.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ find_package_handle_standard_args(
# Create the targets
foreach(_component libmpg123 libout123 libsyn123)
if(mpg123_${_component}_FOUND AND NOT TARGET MPG123::${_component})
add_library(MPG123::${_component})
add_library(MPG123::${_component} UNKNOWN IMPORTED)
set_target_properties(
MPG123::${_component}
PROPERTIES IMPORTED_LOCATION "${mpg123_${_component}_LIBRARY}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# The variable CVF_VERSION must be set before calling configure_file().


set(PACKAGE_VERSION "2.3.4")
set(PACKAGE_VERSION "2.3.5")

if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()

if("2.3.4" MATCHES "^([0-9]+)\\.([0-9]+)")
if("2.3.5" MATCHES "^([0-9]+)\\.([0-9]+)")
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
set(CVF_VERSION_MINOR "${CMAKE_MATCH_2}")

Expand All @@ -27,7 +27,7 @@ else()
string(REGEX REPLACE "^0+" "" CVF_VERSION_MINOR "${CVF_VERSION_MINOR}")
endif()
else()
set(CVF_VERSION_MAJOR "2.3.4")
set(CVF_VERSION_MAJOR "2.3.5")
set(CVF_VERSION_MINOR "")
endif()

Expand Down
Binary file modified deps/fluidsynth/lib/libfluidsynth.a
Binary file not shown.
2 changes: 1 addition & 1 deletion deps/fluidsynth/lib/pkgconfig/fluidsynth.pc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ includedir=${prefix}/include

Name: FluidSynth
Description: Software SoundFont synth
Version: 2.3.4
Version: 2.3.5
Requires.private: glib-2.0 gthread-2.0 sndfile libinstpatch-1.0
Libs: -L${libdir} -lfluidsynth
Libs.private: -lm -Wl,-framework,CoreAudio,-framework,AudioUnit -Wl,-framework,CoreMIDI,-framework,CoreServices
Expand Down

0 comments on commit a189459

Please sign in to comment.