]> git.sesse.net Git - vlc/blob - contrib/src/fluid/rules.mak
contrib: remove old buggy fluidsynth
[vlc] / contrib / src / fluid / rules.mak
1 # fluid
2
3 FLUID_VERSION := 1.1.3
4 FLUID_URL := $(SF)/fluidsynth/fluidsynth-$(FLUID_VERSION)/fluidsynth-$(FLUID_VERSION).tar.bz2
5
6 PKGS += fluid
7 ifeq ($(call need_pkg,"fluidsynth"),)
8 PKGS_FOUND += fluid
9 endif
10
11 $(TARBALLS)/fluidsynth-$(FLUID_VERSION).tar.bz2:
12         $(call download,$(FLUID_URL))
13
14 .sum-fluid: fluidsynth-$(FLUID_VERSION).tar.bz2
15
16 fluidsynth: fluidsynth-$(FLUID_VERSION).tar.bz2 .sum-fluid
17         $(UNPACK)
18         $(APPLY) $(SRC)/fluid/fluid-no-bin.patch
19 ifdef HAVE_WIN32
20         $(APPLY) $(SRC)/fluid/fluid-static-win32.patch
21 endif
22 ifneq ($(FLUID_VERSION),1.0.9)
23         $(APPLY) $(SRC)/fluid/fluid-pkg-static.patch
24 endif
25         cd $(UNPACK_DIR)/m4/ && rm -f libtool.m4 lt*m4 # 1.1.3 ships symlinks to /usr/share/aclocal
26         $(MOVE)
27
28 FLUIDCONF := $(HOSTCONF) \
29         --disable-alsa-support \
30         --disable-aufile-support \
31         --disable-coreaudio \
32         --disable-coremidi \
33         --disable-dart \
34         --disable-dbus-support \
35         --disable-jack-support \
36         --disable-ladcca \
37         --disable-lash \
38         --disable-libsndfile-support \
39         --disable-midishare \
40         --disable-oss-support \
41         --disable-portaudio-support \
42         --disable-pulse-support \
43         --without-readline
44
45 .fluid: fluidsynth
46         $(RECONF)
47         cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DFLUIDSYNTH_NOT_A_DLL" ./configure $(FLUIDCONF)
48         cd $< && $(MAKE) install
49         touch $@