rules.mak 1.25 KB
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
2
# fluid

3
FLUID_VERSION := 1.1.6
4
FLUID_URL := $(SF)/fluidsynth/fluidsynth-$(FLUID_VERSION)/fluidsynth-$(FLUID_VERSION).tar.bz2
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
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
11
12
13
PKGS_FOUND += fluid
endif

$(TARBALLS)/fluidsynth-$(FLUID_VERSION).tar.bz2:
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
14
15
	$(call download,$(FLUID_URL))

16
.sum-fluid: fluidsynth-$(FLUID_VERSION).tar.bz2
17

18
fluidsynth: fluidsynth-$(FLUID_VERSION).tar.bz2 .sum-fluid
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
19
20
21
22
	$(UNPACK)
	$(APPLY) $(SRC)/fluid/fluid-no-bin.patch
ifdef HAVE_WIN32
	$(APPLY) $(SRC)/fluid/fluid-static-win32.patch
23
24
endif
	$(APPLY) $(SRC)/fluid/fluid-pkg-static.patch
25
26
	# Remove symbolic links to /usr/share/aclocal
	cd $(UNPACK_DIR)/m4/ && rm -f libtool.m4 lt*m4
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
27
28
29
30
	$(MOVE)

FLUIDCONF := $(HOSTCONF) \
	--disable-alsa-support \
31
	--disable-aufile-support \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
32
33
34
	--disable-coreaudio \
	--disable-coremidi \
	--disable-dart \
35
	--disable-dbus-support \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
36
37
38
	--disable-jack-support \
	--disable-ladcca \
	--disable-lash \
39
	--disable-libsndfile-support \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
40
41
42
43
44
45
46
47
	--disable-midishare \
	--disable-oss-support \
  	--disable-portaudio-support \
	--disable-pulse-support \
	--without-readline

.fluid: fluidsynth
	$(RECONF)
48
	cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DFLUIDSYNTH_NOT_A_DLL" ./configure $(FLUIDCONF)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
49
50
	cd $< && $(MAKE) install
	touch $@