]> git.sesse.net Git - vlc/commitdiff
contrib: add missing fluidsynth libs for static linking
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 3 Aug 2011 07:48:46 +0000 (10:48 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 3 Aug 2011 15:06:11 +0000 (18:06 +0300)
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 [new file with mode: 0644]
contrib/src/fluid/rules.mak

diff --git a/contrib/src/fluid/fluid-pkg-static.patch b/contrib/src/fluid/fluid-pkg-static.patch
new file mode 100644 (file)
index 0000000..4a8cdb9
--- /dev/null
@@ -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}
index a7f45aecec2a5556d2395797558d27e89e8a5c06..73dce757a8552f0dc8e973d6f7c96abb6c1c27b3 100644 (file)
@@ -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)