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