1 |
commit: 7b6f0cd8a0e7df4d3f8a12edd703f279e9184da2 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Wed Aug 18 21:24:42 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 20 05:56:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b6f0cd8 |
7 |
|
8 |
media-sound/sox: Add support for sndio |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/22021 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
media-sound/sox/metadata.xml | 1 + |
15 |
media-sound/sox/sox-14.4.2_p20200803-r3.ebuild | 109 +++++++++++++++++++++++++ |
16 |
2 files changed, 110 insertions(+) |
17 |
|
18 |
diff --git a/media-sound/sox/metadata.xml b/media-sound/sox/metadata.xml |
19 |
index c891b42123b..5121be40825 100644 |
20 |
--- a/media-sound/sox/metadata.xml |
21 |
+++ b/media-sound/sox/metadata.xml |
22 |
@@ -8,6 +8,7 @@ |
23 |
<use> |
24 |
<flag name="amr">Enables Adaptive Multi-Rate Audio support</flag> |
25 |
<flag name="id3tag">Enables ID3 tagging with id3tag library</flag> |
26 |
+ <flag name="sndio">Enable support for sndio</flag> |
27 |
<flag name="twolame">Enables twolame support (MPEG Audio Layer 2 encoder)</flag> |
28 |
</use> |
29 |
<upstream> |
30 |
|
31 |
diff --git a/media-sound/sox/sox-14.4.2_p20200803-r3.ebuild b/media-sound/sox/sox-14.4.2_p20200803-r3.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..4425958e83b |
34 |
--- /dev/null |
35 |
+++ b/media-sound/sox/sox-14.4.2_p20200803-r3.ebuild |
36 |
@@ -0,0 +1,109 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+inherit autotools |
43 |
+ |
44 |
+# We take a snapshot because of the huge number of security |
45 |
+# and other fixes since the release of 14.4.2. |
46 |
+# Recommend mirroring the snapshot; unclear if they are stable URIs. |
47 |
+COMMIT="50857c46c03a85c72826e819f5e815aad4a4633d" |
48 |
+MY_P="sox-code-${COMMIT}" |
49 |
+ |
50 |
+DESCRIPTION="The swiss army knife of sound processing programs" |
51 |
+HOMEPAGE="http://sox.sourceforge.net" |
52 |
+# Source: https://sourceforge.net/code-snapshots/git/s/so/sox/code.git/${MY_P}.zip |
53 |
+SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_P}.zip -> ${P}.zip" |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+LICENSE="LGPL-2.1" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
59 |
+IUSE="alsa amr ao debug encode flac id3tag ladspa mad ogg openmp oss opus png pulseaudio sndfile sndio static-libs twolame wavpack" |
60 |
+ |
61 |
+BDEPEND=" |
62 |
+ app-arch/unzip |
63 |
+ virtual/pkgconfig |
64 |
+" |
65 |
+RDEPEND=" |
66 |
+ dev-libs/libltdl:0= |
67 |
+ >=media-sound/gsm-1.0.12-r1 |
68 |
+ sys-apps/file |
69 |
+ alsa? ( media-libs/alsa-lib ) |
70 |
+ amr? ( media-libs/opencore-amr ) |
71 |
+ ao? ( media-libs/libao:= ) |
72 |
+ encode? ( >=media-sound/lame-3.98.4 ) |
73 |
+ flac? ( >=media-libs/flac-1.1.3 ) |
74 |
+ id3tag? ( media-libs/libid3tag:= ) |
75 |
+ ladspa? ( media-libs/ladspa-sdk ) |
76 |
+ mad? ( media-libs/libmad ) |
77 |
+ ogg? ( |
78 |
+ media-libs/libogg |
79 |
+ media-libs/libvorbis |
80 |
+ ) |
81 |
+ opus? ( |
82 |
+ media-libs/opus |
83 |
+ media-libs/opusfile |
84 |
+ ) |
85 |
+ png? ( |
86 |
+ media-libs/libpng:0= |
87 |
+ sys-libs/zlib |
88 |
+ ) |
89 |
+ pulseaudio? ( media-sound/pulseaudio ) |
90 |
+ sndfile? ( >=media-libs/libsndfile-1.0.11 ) |
91 |
+ sndio? ( media-sound/sndio:= ) |
92 |
+ twolame? ( media-sound/twolame ) |
93 |
+ wavpack? ( media-sound/wavpack )" |
94 |
+DEPEND="${RDEPEND}" |
95 |
+ |
96 |
+DOCS=( AUTHORS ChangeLog NEWS ) |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ default |
100 |
+ |
101 |
+ # bug #386027 |
102 |
+ sed -i -e 's:CFLAGS="-g":CFLAGS="$CFLAGS -g":' configure.ac || die |
103 |
+ |
104 |
+ # bug #712630 |
105 |
+ if use elibc_musl ; then |
106 |
+ ewarn "Applying musl workaround for bug #712630." |
107 |
+ ewarn "File-type detection with pipes may be missing." |
108 |
+ sed -i '/error FIX NEEDED HERE/d' src/formats.c || die |
109 |
+ fi |
110 |
+ |
111 |
+ eautoreconf |
112 |
+} |
113 |
+ |
114 |
+src_configure() { |
115 |
+ econf \ |
116 |
+ $(use_with alsa) \ |
117 |
+ $(use_with amr amrnb) \ |
118 |
+ $(use_with amr amrwb) \ |
119 |
+ $(use_with ao) \ |
120 |
+ $(use_enable debug) \ |
121 |
+ $(use_with encode lame) \ |
122 |
+ $(use_with flac) \ |
123 |
+ $(use_with id3tag) \ |
124 |
+ $(use_with ladspa) \ |
125 |
+ $(use_with mad) \ |
126 |
+ $(use_enable openmp) \ |
127 |
+ $(use_with ogg oggvorbis) \ |
128 |
+ $(use_with oss) \ |
129 |
+ $(use_with opus) \ |
130 |
+ $(use_with png) \ |
131 |
+ $(use_with pulseaudio) \ |
132 |
+ $(use_with sndfile) \ |
133 |
+ $(use_with sndio) \ |
134 |
+ $(use_enable static-libs static) \ |
135 |
+ $(use_with twolame) \ |
136 |
+ $(use_with wavpack) \ |
137 |
+ --with-distro="Gentoo" |
138 |
+} |
139 |
+ |
140 |
+src_install() { |
141 |
+ default |
142 |
+ # libltdl is used for loading plugins, keeping libtool files with empty |
143 |
+ # dependency_libs what otherwise would be -exec rm -f {} + |
144 |
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
145 |
+} |