Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "Fluidsynth is a software synthesizer" |
| 2 | HOMEPAGE = "http://www.fluidsynth.org/" |
| 3 | SECTION = "libs/multimedia" |
| 4 | LICENSE = "LGPL-2.1-only" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc178bcd425090939a8b634d1d6a9594" |
| 6 | |
| 7 | DEPENDS = "glib-2.0" |
| 8 | |
| 9 | SRC_URI = " \ |
| 10 | git://github.com/FluidSynth/fluidsynth.git;branch=master;protocol=https \ |
| 11 | file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \ |
| 12 | file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \ |
| 13 | " |
| 14 | SRCREV = "5ecdc4568e45123216c6888892caad07918ef127" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | inherit cmake pkgconfig lib_package |
| 19 | |
| 20 | EXTRA_OECMAKE = "-Denable-floats=ON -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}" |
| 21 | |
| 22 | do_install:append() { |
| 23 | sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/pkgconfig/fluidsynth.pc |
| 24 | sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/cmake/fluidsynth/FluidSynthTargets.cmake |
| 25 | } |
| 26 | |
| 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio pipewire systemd alsa dbus', d)}" |
| 28 | PACKAGECONFIG[alsa] = "-Denable-alsa=ON,-Denable-alsa=OFF,alsa-lib" |
| 29 | PACKAGECONFIG[dbus] = "-Denable-dbus=ON,-Denable-dbus=OFF,dbus" |
| 30 | PACKAGECONFIG[jack] = "-Denable-jack=ON,-Denable-jack=OFF,jack" |
| 31 | PACKAGECONFIG[oss] = "-Denable-oss=ON,-Denable-oss=OFF" |
| 32 | PACKAGECONFIG[pipewire] = "-Denable-pipewire=ON,-Denable-pipewire=OFF,pipewire" |
| 33 | PACKAGECONFIG[portaudio] = "-Denable-portaudio=ON,-Denable-portaudio=OFF,portaudio-v19" |
| 34 | PACKAGECONFIG[profiling] = "-Denable-profiling=ON,-Denable-profiling=OFF" |
| 35 | PACKAGECONFIG[pulseaudio] = "-Denable-pulseaudio=ON,-Denable-pulseaudio=OFF,pulseaudio" |
| 36 | PACKAGECONFIG[readline] = "-Denable-readline=ON,-Denable-readline=OFF,readline" |
| 37 | PACKAGECONFIG[sdl] = "-Denable-sdl2=ON,-Denable-sdl2=OFF,libsdl2" |
| 38 | PACKAGECONFIG[sndfile] = "-Denable-libsndfile=ON,-Denable-libsndfile=OFF,libsndfile1" |
| 39 | PACKAGECONFIG[systemd] = "-Denable-systemd=ON,-Denable-systemd=OFF,systemd" |