diff options
Diffstat (limited to 'meta-multimedia')
4 files changed, 25 insertions, 79 deletions
diff --git a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth-native_git.bb b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth-native_git.bb deleted file mode 100644 index a95c4c42a..000000000 --- a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth-native_git.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require ${BPN}.inc | ||
2 | |||
3 | inherit native | ||
4 | |||
5 | OECMAKE_SOURCEPATH = "${S}/src/gentables" | ||
6 | |||
7 | do_install() { | ||
8 | install -d ${D}/${bindir} | ||
9 | install -m 755 ${B}/make_tables.exe ${D}/${bindir}/ | ||
10 | } | ||
diff --git a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth.inc b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth.inc deleted file mode 100644 index a4590d61a..000000000 --- a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth.inc +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
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 | SRC_URI = "git://github.com/FluidSynth/fluidsynth.git;branch=master;protocol=https" | ||
8 | SRCREV = "8b00644751578ba67b709a827cbe5133d849d339" | ||
9 | S = "${WORKDIR}/git" | ||
10 | PV = "2.2.6" | ||
11 | |||
12 | inherit cmake pkgconfig lib_package | ||
diff --git a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch deleted file mode 100644 index cc73bdb1d..000000000 --- a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From 81ea820b155e887b13ea5986c3407cf93b2737f6 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
3 | Date: Wed, 2 Jan 2019 18:42:46 +0100 | ||
4 | Subject: [PATCH] Do not build gentables helper - we have to use native variant | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [embedded specific] | ||
10 | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
12 | --- | ||
13 | src/CMakeLists.txt | 23 +---------------------- | ||
14 | 1 file changed, 1 insertion(+), 22 deletions(-) | ||
15 | |||
16 | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
17 | index 356bb734..58ff7635 100644 | ||
18 | --- a/src/CMakeLists.txt | ||
19 | +++ b/src/CMakeLists.txt | ||
20 | @@ -399,25 +399,4 @@ else ( MACOSX_FRAMEWORK ) | ||
21 | install ( FILES ${public_main_HEADER} DESTINATION ${INCLUDE_INSTALL_DIR} ) | ||
22 | endif ( MACOSX_FRAMEWORK ) | ||
23 | |||
24 | -# ******* Auto Generated Lookup Tables ****** | ||
25 | - | ||
26 | -include(ExternalProject) | ||
27 | - | ||
28 | -set (GENTAB_SDIR ${CMAKE_CURRENT_SOURCE_DIR}/gentables) | ||
29 | -set (GENTAB_BDIR ${CMAKE_CURRENT_BINARY_DIR}/gentables) | ||
30 | - | ||
31 | -# Use external project to ensure that cmake uses the host compiler when building make_tables.exe | ||
32 | -# To fix cross-compiling fluidsynth from Win32 to ARM (using vcpkg), we need to pass the current generator | ||
33 | -# on to the external project, otherwise (for some unknown reason) the target compiler will be used rather | ||
34 | -# than the host compiler. | ||
35 | -ExternalProject_Add(gentables | ||
36 | - DOWNLOAD_COMMAND "" | ||
37 | - SOURCE_DIR ${GENTAB_SDIR} | ||
38 | - BINARY_DIR ${GENTAB_BDIR} | ||
39 | - CONFIGURE_COMMAND | ||
40 | - "${CMAKE_COMMAND}" -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE_MAKEFILE} -G "${CMAKE_GENERATOR}" -B "${GENTAB_BDIR}" "${GENTAB_SDIR}" | ||
41 | - BUILD_COMMAND | ||
42 | - "${CMAKE_COMMAND}" --build "${GENTAB_BDIR}" | ||
43 | - INSTALL_COMMAND ${GENTAB_BDIR}/make_tables.exe "${CMAKE_BINARY_DIR}/" | ||
44 | -) | ||
45 | -add_dependencies(libfluidsynth-OBJ gentables) | ||
46 | + | ||
47 | -- | ||
48 | 2.21.1 | ||
49 | |||
diff --git a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb index 984f37b75..a1083af56 100644 --- a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb +++ b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb | |||
@@ -1,23 +1,40 @@ | |||
1 | require ${BPN}.inc | 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" | ||
2 | 6 | ||
3 | DEPENDS = "${BPN}-native alsa-lib ncurses glib-2.0" | 7 | SRC_URI = "git://github.com/FluidSynth/fluidsynth.git;branch=master;protocol=https" |
8 | SRCREV = "4d8fe638e1a48660a4c843d493f69a86579e12f0" | ||
9 | S = "${WORKDIR}/git" | ||
10 | PV = "2.3.2" | ||
11 | |||
12 | inherit cmake pkgconfig lib_package | ||
13 | |||
14 | DEPENDS = "glib-2.0" | ||
4 | 15 | ||
5 | SRC_URI += " \ | 16 | SRC_URI += " \ |
6 | file://0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch \ | ||
7 | file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \ | 17 | file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \ |
8 | file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \ | 18 | file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \ |
9 | " | 19 | " |
10 | 20 | ||
11 | EXTRA_OECMAKE = "-Denable-floats=ON -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}" | 21 | EXTRA_OECMAKE = "-Denable-floats=ON -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}" |
12 | 22 | ||
13 | do_configure:append() { | 23 | do_install:append() { |
14 | make_tables.exe ${B}/ | 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 | ||
15 | } | 26 | } |
16 | 27 | ||
17 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)}" | 28 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio pipewire systemd alsa dbus', d)}" |
18 | PACKAGECONFIG[sndfile] = "-Denable-libsndfile=ON,-Denable-libsndfile=OFF,libsndfile1" | 29 | PACKAGECONFIG[alsa] = "-Denable-alsa=ON,-Denable-alsa=OFF,alsa-lib" |
30 | PACKAGECONFIG[dbus] = "-Denable-dbus=ON,-Denable-dbus=OFF,dbus" | ||
19 | PACKAGECONFIG[jack] = "-Denable-jack=ON,-Denable-jack=OFF,jack" | 31 | PACKAGECONFIG[jack] = "-Denable-jack=ON,-Denable-jack=OFF,jack" |
20 | PACKAGECONFIG[pulseaudio] = "-Denable-pulseaudio=ON,-Denable-pulseaudio=OFF,pulseaudio" | 32 | PACKAGECONFIG[oss] = "-Denable-oss=ON,-Denable-oss=OFF" |
33 | PACKAGECONFIG[pipewire] = "-Denable-pipewire=ON,-Denable-pipewire=OFF,pipewire" | ||
21 | PACKAGECONFIG[portaudio] = "-Denable-portaudio=ON,-Denable-portaudio=OFF,portaudio-v19" | 34 | PACKAGECONFIG[portaudio] = "-Denable-portaudio=ON,-Denable-portaudio=OFF,portaudio-v19" |
22 | PACKAGECONFIG[profiling] = "-Denable-profiling=ON,-Denable-profiling=OFF" | 35 | PACKAGECONFIG[profiling] = "-Denable-profiling=ON,-Denable-profiling=OFF" |
36 | PACKAGECONFIG[pulseaudio] = "-Denable-pulseaudio=ON,-Denable-pulseaudio=OFF,pulseaudio" | ||
23 | PACKAGECONFIG[readline] = "-Denable-readline=ON,-Denable-readline=OFF,readline" | 37 | PACKAGECONFIG[readline] = "-Denable-readline=ON,-Denable-readline=OFF,readline" |
38 | PACKAGECONFIG[sdl] = "-Denable-sdl2=ON,-Denable-sdl2=OFF,libsdl2" | ||
39 | PACKAGECONFIG[sndfile] = "-Denable-libsndfile=ON,-Denable-libsndfile=OFF,libsndfile1" | ||
40 | PACKAGECONFIG[systemd] = "-Denable-systemd=ON,-Denable-systemd=OFF,systemd" | ||