summaryrefslogtreecommitdiffstats
path: root/sound/fluidsynth/Makefile
blob: f83afe33924e3e5de01b9c2005d6d3c0d1e34b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include $(TOPDIR)/rules.mk

PKG_NAME:=fluidsynth
PKG_VERSION:=2.4.7
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/FluidSynth/fluidsynth/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=7fb0e328c66a24161049e2b9e27c3b6e51a6904b31b1a647f73cc1f322523e88

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=LICENSE

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
include $(INCLUDE_DIR)/nls.mk

CMAKE_INSTALL:=1

CMAKE_OPTIONS += \
	-Denable-coverage=off \
	-Denable-floats=off \
	-Denable-fpe-check=off \
	-Denable-portaudio=off \
	-Denable-profiling=off \
	-Denable-trap-on-fpe=off \
	-Denable-ubsan=off \
	-Denable-alsa=on \
	-Denable-aufile=off \
	-DBUILD_SHARED_LIBS=on \
	-Denable-dbus=off \
	-Denable-ipv6=off \
	-Denable-jack=off \
	-Denable-ladspa=off \
	-Denable-libinstpatch=off \
	-Denable-libsndfile=on \
	-Denable-midishare=off \
	-Denable-opensles=off \
	-Denable-oboe=off \
	-Denable-network=off \
	-Denable-oss=off \
	-Denable-dsound=off \
	-Denable-wasapi=off \
	-Denable-waveout=off \
	-Denable-winmidi=off \
	-Denable-sdl2=off \
	-Denable-sdl3=off \
	-Denable-pulseaudio=off \
	-Denable-pipewire=off \
	-Denable-readline=off \
	-Denable-threads=off \
	-Denable-openmp=off \
	-Denable-systemd=off \
	-Denable-coreaudio=off \
	-Denable-coremidi=off \
	-Denable-framework=off \
	-Denable-dart=off \
	-Denable-kai=off

define Package/libfluidsynth
  SECTION:=sound
  CATEGORY:=Sound
  TITLE:=A SoundFont Synthesizer
  URL:=https://www.fluidsynth.org
  DEPENDS:=+alsa-lib +glib2 +libsndfile +libstdcpp
endef

define Package/libfluidsynth/description
FluidSynth is a cross-platform, real-time software synthesizer based on the Soundfont 2 specification.
endef

define Package/libfluidsynth/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libfluidsynth))