[vlc-commits] contrib: add fluidsynth

Rémi Denis-Courmont git at videolan.org
Mon Jul 4 21:33:17 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul  4 22:32:10 2011 +0300| [07d0df423a1b6e68ce9ef1855e894bb80312384d] | committer: Rémi Denis-Courmont

contrib: add fluidsynth

In practice, this probably will not link properly even if the
pkg-config --static parameter is forced, except on Windows.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07d0df423a1b6e68ce9ef1855e894bb80312384d
---

 contrib/src/fluid/SHA512SUMS               |    1 +
 contrib/src/fluid/fluid-no-bin.patch       |   11 ++++++++
 contrib/src/fluid/fluid-static-win32.patch |    9 ++++++
 contrib/src/fluid/rules.mak                |   39 ++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/contrib/src/fluid/SHA512SUMS b/contrib/src/fluid/SHA512SUMS
new file mode 100644
index 0000000..1a81196
--- /dev/null
+++ b/contrib/src/fluid/SHA512SUMS
@@ -0,0 +1 @@
+9e8ca850d4dbf8404208ef6bb76d9d3775f574f10b2d0045aba23c989b893bcf6386d72dda593e0e4cdcb744f78b03859a2146edf8cce77c027416680ceb0ce1  fluidsynth-1.0.9.tar.gz
diff --git a/contrib/src/fluid/fluid-no-bin.patch b/contrib/src/fluid/fluid-no-bin.patch
new file mode 100644
index 0000000..eb270ae
--- /dev/null
+++ b/contrib/src/fluid/fluid-no-bin.patch
@@ -0,0 +1,11 @@
+--- fluidsynth/src/Makefile.am	2007-11-11 21:06:28.000000000 +0100
++++ fluidsynth.old/src/Makefile.am	2009-07-08 17:48:53.000000000 +0200
+@@ -39,7 +39,7 @@
+ 	config_win32.h fluid_jack.c
+ 
+ lib_LTLIBRARIES = libfluidsynth.la
+-bin_PROGRAMS = fluidsynth 
++bin_PROGRAMS = 
+ 
+ libfluidsynth_la_SOURCES = \
+ 	$(fluid_alsa) \
diff --git a/contrib/src/fluid/fluid-static-win32.patch b/contrib/src/fluid/fluid-static-win32.patch
new file mode 100644
index 0000000..5ebbd5c
--- /dev/null
+++ b/contrib/src/fluid/fluid-static-win32.patch
@@ -0,0 +1,9 @@
+--- fluidsynth/fluidsynth.pc.in	2007-08-18 23:55:32.000000000 +0200
++++ fluidsynth.new/fluidsynth.pc.in	2009-07-28 23:41:05.000000000 +0200
+@@ -6,5 +6,5 @@
+ Name: FluidSynth
+ Description: Software SoundFont synth
+ Version: @VERSION@
+-Libs: -L${libdir} -lfluidsynth
++Libs: -L${libdir} -lfluidsynth -ldsound -lwinmm
+ Cflags: -I${includedir}
diff --git a/contrib/src/fluid/rules.mak b/contrib/src/fluid/rules.mak
new file mode 100644
index 0000000..5647b51
--- /dev/null
+++ b/contrib/src/fluid/rules.mak
@@ -0,0 +1,39 @@
+# fluid
+
+ # DO NOT update, this will require glib
+FLUID_VERSION := 1.0.9
+#FLUID_URL := http://download.savannah.gnu.org/releases/fluid/fluidsynth-$(FLUID_VERSION).tar.gz
+FLUID_URL := $(SF)/fluidsynth/older%20releases/fluidsynth-$(FLUID_VERSION).tar.gz
+
+$(TARBALLS)/fluidsynth-$(FLUID_VERSION).tar.gz:
+	$(call download,$(FLUID_URL))
+
+.sum-fluid: fluidsynth-$(FLUID_VERSION).tar.gz
+
+fluidsynth: fluidsynth-$(FLUID_VERSION).tar.gz .sum-fluid
+	$(UNPACK)
+	$(APPLY) $(SRC)/fluid/fluid-no-bin.patch
+ifdef HAVE_WIN32
+	$(APPLY) $(SRC)/fluid/fluid-static-win32.patch
+endif
+	$(MOVE)
+
+FLUIDCONF := $(HOSTCONF) \
+	--disable-alsa-support \
+	--disable-coreaudio \
+	--disable-coremidi \
+	--disable-dart \
+	--disable-jack-support \
+	--disable-ladcca \
+	--disable-lash \
+	--disable-midishare \
+	--disable-oss-support \
+  	--disable-portaudio-support \
+	--disable-pulse-support \
+	--without-readline
+
+.fluid: fluidsynth
+	$(RECONF)
+	cd $< && $(HOSTVARS) ./configure $(FLUIDCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list