[vlc-devel] [RFC 1/2] Contrib: add fluidlite to replace fluidsynth
Jean-Baptiste Kempf
jb at videolan.org
Mon Jun 13 15:14:24 CEST 2016
---
contrib/src/fluidlite/SHA512SUMS | 1 +
contrib/src/fluidlite/fluidlite.pc | 10 ++++++++
contrib/src/fluidlite/no-oggvorbis.patch | 43 ++++++++++++++++++++++++++++++++
contrib/src/fluidlite/rules.mak | 26 +++++++++++++++++++
4 files changed, 80 insertions(+)
create mode 100644 contrib/src/fluidlite/SHA512SUMS
create mode 100644 contrib/src/fluidlite/fluidlite.pc
create mode 100644 contrib/src/fluidlite/no-oggvorbis.patch
create mode 100644 contrib/src/fluidlite/rules.mak
diff --git a/contrib/src/fluidlite/SHA512SUMS b/contrib/src/fluidlite/SHA512SUMS
new file mode 100644
index 0000000..c581707
--- /dev/null
+++ b/contrib/src/fluidlite/SHA512SUMS
@@ -0,0 +1 @@
+0ead8bf86c0edf6d98044eb16b52b85fac8bc3bdeb9c1478d0bceb4f5b38ca28218fcf2cd18cdd5608190dc70b7c39bde681765d01787bc84bc97c6ab3bbf946 fluidsynth-1.1.6.tar.bz2
diff --git a/contrib/src/fluidlite/fluidlite.pc b/contrib/src/fluidlite/fluidlite.pc
new file mode 100644
index 0000000..6925eb1
--- /dev/null
+++ b/contrib/src/fluidlite/fluidlite.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: fluidlite
+Description: Software SoundFont synth
+Version: 0.0.1
+Libs: -L${libdir} -lfluidlite
+Cflags: -I${includedir}
diff --git a/contrib/src/fluidlite/no-oggvorbis.patch b/contrib/src/fluidlite/no-oggvorbis.patch
new file mode 100644
index 0000000..56bd407
--- /dev/null
+++ b/contrib/src/fluidlite/no-oggvorbis.patch
@@ -0,0 +1,43 @@
+--- fluidlite/fluidlite.pro 2016-06-13 12:32:44.000000000 +0200
++++ fluidlite.new/fluidlite.pro 2016-06-13 12:38:57.701592864 +0200
+@@ -3,9 +3,6 @@
+
+ INCLUDEPATH += src
+ INCLUDEPATH += include
+-INCLUDEPATH += libogg-1.3.2/include
+-INCLUDEPATH += libvorbis-1.3.5/include
+-INCLUDEPATH += libvorbis-1.3.5/lib
+
+ HEADERS += \
+ src/fluid_chan.h \
+@@ -46,30 +43,6 @@
+ src/fluid_sys.c \
+ src/fluid_tuning.c \
+ src/fluid_voice.c \
+- libogg-1.3.2/src/bitwise.c \
+- libogg-1.3.2/src/framing.c \
+- libvorbis-1.3.5/lib/vorbisenc.c \
+- libvorbis-1.3.5/lib/info.c \
+- libvorbis-1.3.5/lib/analysis.c \
+- libvorbis-1.3.5/lib/bitrate.c \
+- libvorbis-1.3.5/lib/block.c \
+- libvorbis-1.3.5/lib/codebook.c \
+- libvorbis-1.3.5/lib/envelope.c \
+- libvorbis-1.3.5/lib/floor0.c \
+- libvorbis-1.3.5/lib/floor1.c \
+- libvorbis-1.3.5/lib/lookup.c \
+- libvorbis-1.3.5/lib/lpc.c \
+- libvorbis-1.3.5/lib/lsp.c \
+- libvorbis-1.3.5/lib/mapping0.c \
+- libvorbis-1.3.5/lib/mdct.c \
+- libvorbis-1.3.5/lib/psy.c \
+- libvorbis-1.3.5/lib/registry.c \
+- libvorbis-1.3.5/lib/res0.c \
+- libvorbis-1.3.5/lib/sharedbook.c \
+- libvorbis-1.3.5/lib/smallft.c \
+- libvorbis-1.3.5/lib/vorbisfile.c \
+- libvorbis-1.3.5/lib/window.c \
+- libvorbis-1.3.5/lib/synthesis.c
+
+ win32:QMAKE_CFLAGS_WARN_ON += -wd4244
+ win32:QMAKE_CFLAGS_WARN_ON += -wd4267
diff --git a/contrib/src/fluidlite/rules.mak b/contrib/src/fluidlite/rules.mak
new file mode 100644
index 0000000..df7dbce
--- /dev/null
+++ b/contrib/src/fluidlite/rules.mak
@@ -0,0 +1,26 @@
+# fluidlite
+
+FLUID_GITURL := https://github.com/divideconcept/FluidLite.git
+
+$(TARBALLS)/fluidlite-git.tar.xz:
+ $(call download_git,$(FLUID_GITURL))
+
+.sum-fluidlite: fluidlite-git.tar.xz
+ $(warning $@ not implemented)
+ touch $@
+
+fluidlite: fluidlite-git.tar.xz .sum-fluidlite
+ rm -Rf $@-git
+ mkdir -p $@-git
+ $(XZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
+ $(APPLY) $(SRC)/fluidlite/no-oggvorbis.patch
+ $(MOVE)
+
+.fluidlite: fluidlite
+ cd $< && qmake QMAKE_CC=${CC} QMAKE_CFLAGS="${CFLAGS}"
+ cd $< && $(HOSTVARS) $(MAKE)
+ mkdir -p "$(PREFIX)/include/fluidlite" "$(PREFIX)/lib"
+ cp -rv $</include/* "$(PREFIX)/include/"
+ cp $</libfluidlite.a "$(PREFIX)/lib/"
+ cp $(SRC)/fluidlite/fluidlite.pc "$(PREFIX)/lib/pkgconfig"
+ touch $@
--
2.8.1.369.geae769a
More information about the vlc-devel
mailing list