Browse Source

Fix fluidsynth libs

Signed-off-by: falkTX <falktx@falktx.com>
main
falkTX 7 months ago
parent
commit
f9b573a83a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 36 additions and 11 deletions
  1. +0
    -11
      bootstrap-plugins.sh
  2. +11
    -0
      patches/fluidsynth/linux/05_force-libs.patch
  3. +1
    -0
      patches/fluidsynth/macos-10.15
  4. +1
    -0
      patches/fluidsynth/macos-universal
  5. +11
    -0
      patches/fluidsynth/macos/05_force-libs.patch
  6. +11
    -0
      patches/fluidsynth/win32/05_force-libs.patch
  7. +1
    -0
      patches/fluidsynth/win64

+ 0
- 11
bootstrap-plugins.sh View File

@@ -585,17 +585,6 @@ FLUIDSYNTH_EXTRAFLAGS+=" -Denable-trap-on-fpe=OFF"
git_clone fluidsynth "${FLUIDSYNTH_VERSION}" "${FLUIDSYNTH_URL}"
build_cmake fluidsynth "${FLUIDSYNTH_VERSION}" "${FLUIDSYNTH_EXTRAFLAGS}"

if [ ! -e "${PAWPAW_PREFIX}/lib/pkgconfig/fluidsynth.pc-e" ]; then
FLUIDSYNTH_EXTRALIBS="-lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -lopus -logg -lpthread -lm"
if [ "${MACOS}" -eq 1 ]; then
FLUIDSYNTH_EXTRALIBS+=" -liconv"
elif [ "${WIN32}" -eq 1 ]; then
FLUIDSYNTH_EXTRALIBS+=" -lole32 -lws2_32 -lwinmm"
fi
sed -i -e "s/-L\${libdir} -lfluidsynth/-L\${libdir} -lfluidsynth ${FLUIDSYNTH_EXTRALIBS}/" "${PAWPAW_PREFIX}/lib/pkgconfig/fluidsynth.pc"
touch "${PAWPAW_PREFIX}/lib/pkgconfig/fluidsynth.pc-e"
fi

fi # PAWPAW_SKIP_FLUIDSYNTH

# ---------------------------------------------------------------------------------------------------------------------


+ 11
- 0
patches/fluidsynth/linux/05_force-libs.patch View File

@@ -0,0 +1,11 @@
diff --git a/fluidsynth.pc.in b/fluidsynth.pc.in
index 3aca407..834d95b 100644
--- a/fluidsynth.pc.in
+++ b/fluidsynth.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: FluidSynth
Description: Software SoundFont synth
Version: @VERSION@
-Libs: -L${libdir} -lfluidsynth
+Libs: -L${libdir} -lfluidsynth -lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -lopus -logg -lpthread -lm
Cflags: -I${includedir}

+ 1
- 0
patches/fluidsynth/macos-10.15 View File

@@ -0,0 +1 @@
macos

+ 1
- 0
patches/fluidsynth/macos-universal View File

@@ -0,0 +1 @@
macos

+ 11
- 0
patches/fluidsynth/macos/05_force-libs.patch View File

@@ -0,0 +1,11 @@
diff --git a/fluidsynth.pc.in b/fluidsynth.pc.in
index 3aca407..733420d 100644
--- a/fluidsynth.pc.in
+++ b/fluidsynth.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: FluidSynth
Description: Software SoundFont synth
Version: @VERSION@
-Libs: -L${libdir} -lfluidsynth
+Libs: -L${libdir} -lfluidsynth -lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -lopus -logg -lpthread -lm -liconv
Cflags: -I${includedir}

+ 11
- 0
patches/fluidsynth/win32/05_force-libs.patch View File

@@ -0,0 +1,11 @@
diff --git a/fluidsynth.pc.in b/fluidsynth.pc.in
index 3aca407..593e39c 100644
--- a/fluidsynth.pc.in
+++ b/fluidsynth.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: FluidSynth
Description: Software SoundFont synth
Version: @VERSION@
-Libs: -L${libdir} -lfluidsynth
+Libs: -L${libdir} -lfluidsynth -lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -lopus -logg -lpthread -lm -lole32 -lws2_32 -lwinmm
Cflags: -I${includedir}

+ 1
- 0
patches/fluidsynth/win64 View File

@@ -0,0 +1 @@
win32

Loading…
Cancel
Save