blob: a1083af56db997c0b13a7b6ac3837f0d72092980 [file] [log] [blame]
Patrick Williamse760df82023-05-26 11:10:49 -05001SUMMARY = "Fluidsynth is a software synthesizer"
2HOMEPAGE = "http://www.fluidsynth.org/"
3SECTION = "libs/multimedia"
4LICENSE = "LGPL-2.1-only"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=fc178bcd425090939a8b634d1d6a9594"
Brad Bishop19323692019-04-05 15:28:33 -04006
Patrick Williamse760df82023-05-26 11:10:49 -05007SRC_URI = "git://github.com/FluidSynth/fluidsynth.git;branch=master;protocol=https"
8SRCREV = "4d8fe638e1a48660a4c843d493f69a86579e12f0"
9S = "${WORKDIR}/git"
10PV = "2.3.2"
11
12inherit cmake pkgconfig lib_package
13
14DEPENDS = "glib-2.0"
Brad Bishop19323692019-04-05 15:28:33 -040015
16SRC_URI += " \
Brad Bishop19323692019-04-05 15:28:33 -040017 file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \
18 file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \
19"
20
21EXTRA_OECMAKE = "-Denable-floats=ON -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
22
Patrick Williamse760df82023-05-26 11:10:49 -050023do_install:append() {
24 sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/pkgconfig/fluidsynth.pc
25 sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/cmake/fluidsynth/FluidSynthTargets.cmake
Brad Bishop19323692019-04-05 15:28:33 -040026}
27
Patrick Williamse760df82023-05-26 11:10:49 -050028PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio pipewire systemd alsa dbus', d)}"
29PACKAGECONFIG[alsa] = "-Denable-alsa=ON,-Denable-alsa=OFF,alsa-lib"
30PACKAGECONFIG[dbus] = "-Denable-dbus=ON,-Denable-dbus=OFF,dbus"
Brad Bishop19323692019-04-05 15:28:33 -040031PACKAGECONFIG[jack] = "-Denable-jack=ON,-Denable-jack=OFF,jack"
Patrick Williamse760df82023-05-26 11:10:49 -050032PACKAGECONFIG[oss] = "-Denable-oss=ON,-Denable-oss=OFF"
33PACKAGECONFIG[pipewire] = "-Denable-pipewire=ON,-Denable-pipewire=OFF,pipewire"
Brad Bishop19323692019-04-05 15:28:33 -040034PACKAGECONFIG[portaudio] = "-Denable-portaudio=ON,-Denable-portaudio=OFF,portaudio-v19"
35PACKAGECONFIG[profiling] = "-Denable-profiling=ON,-Denable-profiling=OFF"
Patrick Williamse760df82023-05-26 11:10:49 -050036PACKAGECONFIG[pulseaudio] = "-Denable-pulseaudio=ON,-Denable-pulseaudio=OFF,pulseaudio"
Brad Bishop26bdd442019-08-16 17:08:17 -040037PACKAGECONFIG[readline] = "-Denable-readline=ON,-Denable-readline=OFF,readline"
Patrick Williamse760df82023-05-26 11:10:49 -050038PACKAGECONFIG[sdl] = "-Denable-sdl2=ON,-Denable-sdl2=OFF,libsdl2"
39PACKAGECONFIG[sndfile] = "-Denable-libsndfile=ON,-Denable-libsndfile=OFF,libsndfile1"
40PACKAGECONFIG[systemd] = "-Denable-systemd=ON,-Denable-systemd=OFF,systemd"