From ba69ed31ca5f8ebc7130e86f913333ca02400cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Wed, 3 Aug 2011 10:48:46 +0300 Subject: [PATCH] contrib: add missing fluidsynth libs for static linking Putting these in pkg-config is a bit of ugly, but it makes sense since we only build a static library. As a reference, upstream libav does the exact same thing already. --- contrib/src/fluid/fluid-pkg-static.patch | 10 ++++++++++ contrib/src/fluid/rules.mak | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 contrib/src/fluid/fluid-pkg-static.patch diff --git a/contrib/src/fluid/fluid-pkg-static.patch b/contrib/src/fluid/fluid-pkg-static.patch new file mode 100644 index 000000000000..4a8cdb92a298 --- /dev/null +++ b/contrib/src/fluid/fluid-pkg-static.patch @@ -0,0 +1,10 @@ +diff -ru fluidsynth.orig/fluidsynth.pc.in fluidsynth/fluidsynth.pc.in +--- fluidsynth.orig/fluidsynth.pc.in 2011-08-03 10:45:08.000000000 +0300 ++++ fluidsynth/fluidsynth.pc.in 2011-08-03 10:45:51.000000000 +0300 +@@ -6,5 +6,5 @@ + Name: FluidSynth + Description: Software SoundFont synth + Version: @VERSION@ +-Libs: -L${libdir} -lfluidsynth ++Libs: -L${libdir} -lfluidsynth -lgthread-2.0 -lglib-2.0 -lm + Cflags: -I${includedir} diff --git a/contrib/src/fluid/rules.mak b/contrib/src/fluid/rules.mak index a7f45aecec2a..73dce757a855 100644 --- a/contrib/src/fluid/rules.mak +++ b/contrib/src/fluid/rules.mak @@ -21,6 +21,7 @@ ifeq ($(call need_pkg,"glib-2.0"),) FLUID_TARBALL := fluidsynth-$(FLUID_VERSION).tar.bz2 else FLUID_TARBALL := fluidsynth-1.0.9.tar.gz +FLUID_VERSION := 1.0.9 endif fluidsynth: $(FLUID_TARBALL) .sum-fluid @@ -28,6 +29,9 @@ fluidsynth: $(FLUID_TARBALL) .sum-fluid $(APPLY) $(SRC)/fluid/fluid-no-bin.patch ifdef HAVE_WIN32 $(APPLY) $(SRC)/fluid/fluid-static-win32.patch +endif +ifneq ($(FLUID_VERSION),1.0.9) + $(APPLY) $(SRC)/fluid/fluid-pkg-static.patch endif $(MOVE) -- GitLab