1 |
commit: c0f76fcf2a1063d6cfa3c075bad842f45439e6de |
2 |
Author: Maxime Lombard <berillions <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 8 22:50:41 2020 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 10 01:56:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0f76fcf |
7 |
|
8 |
app-emulation/faudio: Bump to 20.02 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/708748 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/14599 |
12 |
Signed-off-by: Maxime Lombard <berillions <AT> gmail.com> |
13 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
14 |
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> |
15 |
|
16 |
app-emulation/faudio/Manifest | 1 + |
17 |
app-emulation/faudio/faudio-20.02.ebuild | 97 ++++++++++++++++++++++++++++++++ |
18 |
app-emulation/faudio/metadata.xml | 1 + |
19 |
3 files changed, 99 insertions(+) |
20 |
|
21 |
diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest |
22 |
index 443bc87e55e..e25f8cfe60a 100644 |
23 |
--- a/app-emulation/faudio/Manifest |
24 |
+++ b/app-emulation/faudio/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST FAudio-19.06.tar.gz 899089 BLAKE2B a59ad9613bcfa71e1fc8be1f2d389f56b8f96430c354b7c7148d1e1e084102b6d8559cd258f3ab6969a4ac93e55ea2397b18dc417857e9ee0f022ea0dae65c0e SHA512 ba3ee18b47d8d85dc39e777c420522349f9873cf1528dd6c266f7254fe27cdb5bb6ab5bcbeab870938b509bfd006590d2380908b7d1e3fd679d2a434ce82eca6 |
27 |
DIST FAudio-19.09.tar.gz 901659 BLAKE2B 8bb99c67b6da2660e71c7a8a70f83130738a07e7f4ddd2001fb857c81a593935506a8c1fe6d24bfd064537ea4a5a603973c32d839228d7b3f45c9c300ba15147 SHA512 127f975c68e2b449fa7cadae0723925f35ca7a2841ea3fd85037febe964331de4b2e3031ab09c292ee5f40d90902dcf78c75cc3fe7fbe4d6f37a822b4d9eb966 |
28 |
+DIST FAudio-20.02.tar.gz 908051 BLAKE2B 7f9323e7528949680b39469b3549adbef9acafe6f293c643676117648fd6871639fa8c7a47fdc0e1232c0533c0af9e89953415a0935fa4ad7b831aa8a8243f30 SHA512 69995fa1fb9ea41182e47f8143252db517adf4e9dc4a0556c9032af5c867259cc7edc81196b10ef043e6118a2e3687b34368f3ac8ffe9294398c5143b9928476 |
29 |
|
30 |
diff --git a/app-emulation/faudio/faudio-20.02.ebuild b/app-emulation/faudio/faudio-20.02.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..3b8290fd880 |
33 |
--- /dev/null |
34 |
+++ b/app-emulation/faudio/faudio-20.02.ebuild |
35 |
@@ -0,0 +1,97 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+# shellcheck disable=SC2034 |
40 |
+EAPI=7 |
41 |
+ |
42 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
43 |
+ |
44 |
+inherit cmake-multilib virtualx |
45 |
+ |
46 |
+FAUDIO_PN="FAudio" |
47 |
+FAUDIO_PV="${PV}" |
48 |
+FAUDIO_P="${FAUDIO_PN}-${FAUDIO_PV}" |
49 |
+ |
50 |
+if [[ "${PV}" == "9999" ]]; then |
51 |
+ inherit git-r3 |
52 |
+ EGIT_REPO_URI="https://github.com/FNA-XNA/${FAUDIO_PN}.git" |
53 |
+else |
54 |
+ SRC_URI="https://github.com/FNA-XNA/${FAUDIO_PN}/archive/${FAUDIO_PV}.tar.gz -> ${FAUDIO_P}.tar.gz" |
55 |
+ KEYWORDS="-* ~amd64 ~x86" |
56 |
+ S="${WORKDIR}/${FAUDIO_P}" |
57 |
+fi |
58 |
+ |
59 |
+DESCRIPTION="FAudio - Accuracy-focused XAudio reimplementation for open platforms" |
60 |
+HOMEPAGE="https://fna-xna.github.io/" |
61 |
+LICENSE="ZLIB" |
62 |
+SLOT="0" |
63 |
+ |
64 |
+IUSE="+abi_x86_32 +abi_x86_64 debug dumpvoices ffmpeg xnasong test utils" |
65 |
+RESTRICT="!test? ( test )" |
66 |
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )" |
67 |
+ |
68 |
+COMMON_DEPEND=" |
69 |
+ >=media-libs/libsdl2-2.0.9[sound,${MULTILIB_USEDEP}] |
70 |
+ ffmpeg? ( media-video/ffmpeg:=[${MULTILIB_USEDEP}] ) |
71 |
+" |
72 |
+RDEPEND="${COMMON_DEPEND} |
73 |
+" |
74 |
+DEPEND="${COMMON_DEPEND} |
75 |
+" |
76 |
+ |
77 |
+multilib_src_configure() { |
78 |
+ local mycmakeargs=( |
79 |
+ "-DCMAKE_INSTALL_BINDIR=bin" |
80 |
+ "-DCMAKE_INSTALL_INCLUDEDIR=include/${FAUDIO_PN}" |
81 |
+ "-DCMAKE_INSTALL_LIBDIR=$(get_libdir)" |
82 |
+ "-DCMAKE_INSTALL_PREFIX=${EPREFIX}/usr" |
83 |
+ "-DCMAKE_BUILD_TYPE=$(usex debug Debug Release)" |
84 |
+ "-DFORCE_ENABLE_DEBUGCONFIGURATION=$(usex debug ON OFF)" |
85 |
+ "-DBUILD_TESTS=$(usex test ON OFF)" |
86 |
+ "-DBUILD_UTILS=$(usex utils ON OFF)" |
87 |
+ "-DDUMP_VOICES=$(usex dumpvoices ON OFF)" |
88 |
+ "-DFFMPEG=$(usex ffmpeg ON OFF)" |
89 |
+ "-DXNASONG=$(usex xnasong ON OFF)" |
90 |
+ ) |
91 |
+ if use ffmpeg; then |
92 |
+ mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${EPREFIX}/usr/$(get_libdir)" ) |
93 |
+ fi |
94 |
+ cmake-utils_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ cmake-multilib_src_configure |
99 |
+} |
100 |
+ |
101 |
+multilib_src_compile() { |
102 |
+ cmake-utils_src_make |
103 |
+ emake -C "${BUILD_DIR}" all |
104 |
+} |
105 |
+ |
106 |
+multilib_src_install() { |
107 |
+ # FIXME: do we want to install the FAudio tools? |
108 |
+ cmake-utils_src_install |
109 |
+ |
110 |
+ sed -e "s@%LIB%@$(get_libdir)@g" -e "s@%PREFIX%@${EPREFIX}/usr@g" \ |
111 |
+ "${FILESDIR}/faudio.pc" > "${T}/faudio.pc" \ |
112 |
+ || die "sed failed" |
113 |
+ insinto "/usr/$(get_libdir)/pkgconfig" |
114 |
+ doins "${T}/faudio.pc" |
115 |
+ |
116 |
+ if use test; then |
117 |
+ mkdir -p "${T}/$(get_libdir)" || die |
118 |
+ cp "${BUILD_DIR}/faudio_tests" "${T}/$(get_libdir)/" || die "cp failed" |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+faudio_test() { |
123 |
+ XDG_RUNTIME_DIR="/run/user/0" virtx "${T}/$(get_libdir)/faudio_tests" |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ use test || return |
128 |
+ |
129 |
+ # FIXME: FAudio tests are broken and also don't appear to work |
130 |
+ # in the Portage sandbox. |
131 |
+ multilib_foreach_abi faudio_test |
132 |
+} |
133 |
|
134 |
diff --git a/app-emulation/faudio/metadata.xml b/app-emulation/faudio/metadata.xml |
135 |
index 5b153131eaa..02b4abecea6 100644 |
136 |
--- a/app-emulation/faudio/metadata.xml |
137 |
+++ b/app-emulation/faudio/metadata.xml |
138 |
@@ -16,6 +16,7 @@ for the FNA project, including XAudio2, X3DAudio, XAPO, and XACT3. |
139 |
Project Website: http://fna-xna.github.io/ |
140 |
</longdescription> |
141 |
<use> |
142 |
+ <flag name="dumpvoices">FAudio dumps buffer data to individual files with RIFF/XWMA headers, usable with players like ffplay/testxwma.</flag> |
143 |
<flag name="ffmpeg">FAudio has optional support for decoding xWMA resources using FFmpeg, requiring: |
144 |
<pkg>media-video/ffmpeg</pkg> (note: this feature is not supported by <pkg>media-video/libav</pkg>).</flag> |
145 |
<flag name="xnasong">Build support for optional XNG_SONG component (note: this not required by |