1 |
commit: 23f36aa57bcc5cb1918ebeb260db5a24bad23cf7 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 04:03:52 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 04:03:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23f36aa5 |
7 |
|
8 |
media-sound/fluidsynth: bump to 2.2.9 |
9 |
|
10 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
11 |
|
12 |
media-sound/fluidsynth/Manifest | 1 + |
13 |
media-sound/fluidsynth/fluidsynth-2.2.9.ebuild | 119 +++++++++++++++++++++++++ |
14 |
2 files changed, 120 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/fluidsynth/Manifest b/media-sound/fluidsynth/Manifest |
17 |
index b9e264166bb4..d3c473c2a8fb 100644 |
18 |
--- a/media-sound/fluidsynth/Manifest |
19 |
+++ b/media-sound/fluidsynth/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST fluidsynth-2.2.8.tar.gz 1751615 BLAKE2B 7eaee4cc1c2f49e464cda2852890ec8e96bd86c258a39246ec5c84ea3e57c9869d1e88963daecc3fa8957df1d55ff6c6633a4900de3d6fc0a1adf830865adda0 SHA512 8173f2d368a214cf1eb7faae2f6326db43fb094ec9c83e652f953290c3f29c34ebd0b92cbb439bea8d814d3a7e4f9dc0c18c648df1d414989d5d8b4700c79535 |
22 |
+DIST fluidsynth-2.2.9.tar.gz 1750977 BLAKE2B a6b4a19737d01e86a80084cdf88897da9af7d2c50be80fb0227a1d70effb8551667ae27f43ce63591830acfdef31ff0d99d51e3160b9b09c274637b259a82833 SHA512 90f44f6d7a4ed504eea5e2d39d8da2e0072bef746f3d969e367f0bab36a4cff479a98e795dc8b6b58b565fb266c44a137a14e98c7e4c77d1be3b300b8c066600 |
23 |
|
24 |
diff --git a/media-sound/fluidsynth/fluidsynth-2.2.9.ebuild b/media-sound/fluidsynth/fluidsynth-2.2.9.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..659632e018cb |
27 |
--- /dev/null |
28 |
+++ b/media-sound/fluidsynth/fluidsynth-2.2.9.ebuild |
29 |
@@ -0,0 +1,119 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit cmake-multilib systemd toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Software real-time synthesizer based on the Soundfont 2 specifications" |
38 |
+HOMEPAGE="https://www.fluidsynth.org" |
39 |
+SRC_URI="https://github.com/FluidSynth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="LGPL-2.1+" |
42 |
+SLOT="0/3" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
44 |
+IUSE="alsa dbus debug examples ipv6 jack ladspa lash network oss portaudio pulseaudio +readline sdl +sndfile systemd threads" |
45 |
+ |
46 |
+BDEPEND=" |
47 |
+ virtual/pkgconfig |
48 |
+" |
49 |
+DEPEND=" |
50 |
+ dev-libs/glib:2[${MULTILIB_USEDEP}] |
51 |
+ alsa? ( |
52 |
+ media-libs/alsa-lib[${MULTILIB_USEDEP}] |
53 |
+ lash? ( media-sound/lash[${MULTILIB_USEDEP}] ) |
54 |
+ ) |
55 |
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
56 |
+ jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
57 |
+ ladspa? ( |
58 |
+ media-libs/ladspa-sdk[${MULTILIB_USEDEP}] |
59 |
+ media-plugins/cmt-plugins[${MULTILIB_USEDEP}] |
60 |
+ ) |
61 |
+ portaudio? ( media-libs/portaudio[${MULTILIB_USEDEP}] ) |
62 |
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
63 |
+ readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
64 |
+ sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] ) |
65 |
+ sndfile? ( media-libs/libsndfile[${MULTILIB_USEDEP}] ) |
66 |
+" |
67 |
+RDEPEND="${DEPEND}" |
68 |
+ |
69 |
+DOCS=( AUTHORS ChangeLog README.md THANKS TODO doc/fluidsynth-v20-devdoc.txt ) |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local mycmakeargs=( |
73 |
+ -DCMAKE_C_COMPILER="$(tc-getCC)" |
74 |
+ -Denable-alsa=$(usex alsa) |
75 |
+ -Denable-aufile=ON |
76 |
+ -Denable-dbus=$(usex dbus) |
77 |
+ -Denable-debug=$(usex debug) |
78 |
+ -Denable-dsound=OFF # Windows |
79 |
+ -Denable-floats=OFF # loat instead of double for DSP samples |
80 |
+ -Denable-fpe-check=$(usex debug) |
81 |
+ -Denable-ipv6=$(usex ipv6) |
82 |
+ -Denable-jack=$(usex jack) |
83 |
+ -Denable-ladspa=$(usex ladspa) |
84 |
+ -Denable-libinstpatch=ON # https://github.com/swami/libinstpatch |
85 |
+ -Denable-midishare=OFF # http://midishare.sourceforge.net/ |
86 |
+ -Denable-network=$(usex network) |
87 |
+ -Denable-opensles=OFF |
88 |
+ -Denable-oboe=OFF # requires OpenSLES and/or AAudio |
89 |
+ -Denable-oss=$(usex oss) |
90 |
+ -Denable-libsndfile=$(usex sndfile) |
91 |
+ -Denable-pkgconfig=ON |
92 |
+ -Denable-portaudio=$(usex portaudio) |
93 |
+ -Denable-profiling=$(usex debug) |
94 |
+ -Denable-pulseaudio=$(usex pulseaudio) |
95 |
+ -Denable-readline=$(usex readline) |
96 |
+ -Denable-sdl2=$(usex sdl) |
97 |
+ -Denable-systemd=$(usex systemd) |
98 |
+ -Denable-threads=$(usex threads) |
99 |
+ -Denable-trap-on-fpe=$(usex debug) |
100 |
+ -Denable-ubsan=OFF # compile and link against UBSan (for debugging fluidsynth internals) |
101 |
+ -Denable-waveout=OFF # Windows |
102 |
+ -Denable-winmidi=OFF # Windows |
103 |
+ ) |
104 |
+ |
105 |
+ if use alsa; then |
106 |
+ mycmakeargs+=( -Denable-lash=$(usex lash) ) |
107 |
+ else |
108 |
+ mycmakeargs+=( -Denable-lash=OFF ) |
109 |
+ fi |
110 |
+ |
111 |
+ if use systemd; then |
112 |
+ mycmakeargs+=( -DFLUID_DAEMON_ENV_FILE="/etc/fluidsynth.conf" ) |
113 |
+ fi |
114 |
+ |
115 |
+ cmake-multilib_src_configure |
116 |
+} |
117 |
+ |
118 |
+install_systemd_files() { |
119 |
+ if multilib_is_native_abi; then |
120 |
+ systemd_dounit "${BUILD_DIR}/fluidsynth.service" |
121 |
+ insinto /etc |
122 |
+ doins "${BUILD_DIR}/fluidsynth.conf" |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+multilib_src_test() { |
127 |
+ eninja check |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ cmake-multilib_src_install |
132 |
+ |
133 |
+ docinto pdf |
134 |
+ dodoc doc/*.pdf |
135 |
+ |
136 |
+ if use examples; then |
137 |
+ docinto examples |
138 |
+ dodoc doc/examples/*.c |
139 |
+ fi |
140 |
+ |
141 |
+ if use systemd; then |
142 |
+ multilib_foreach_abi install_systemd_files |
143 |
+ |
144 |
+ elog "When using fluidsynth as a systemd service, make sure" |
145 |
+ elog "to configure your fluidsynth settings globally in " |
146 |
+ elog "/etc/fluidsynth.conf or per-user in ~/.config/fluidsynth" |
147 |
+ fi |
148 |
+} |