summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/sox/Makefile9
-rw-r--r--audio/sox/files/patch-sox.126
2 files changed, 35 insertions, 0 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index bdf11551d501..5d236fafd4c6 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sox
DISTVERSION= 14.4.2.20210509
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= https://dev.gentoo.org/~fordfrog/distfiles/
DISTNAME= sox-code-42b3557e13e0fe01a83465b672d89faddbe65f49
@@ -96,4 +97,12 @@ OPUS_LIB_DEPENDS= libopusfile.so:audio/opusfile
INSTALL_TARGET= install-strip
+post-patch:
+ # rename sox's custom EX/EE macros so they don't get overridden by
+ # the default ones
+ ${REINPLACE_CMD} \
+ -e 's/EX$$/soxEX/' \
+ -e 's/EE$$/soxEE/' \
+ ${WRKSRC}/*.[0-9]
+
.include <bsd.port.mk>
diff --git a/audio/sox/files/patch-sox.1 b/audio/sox/files/patch-sox.1
new file mode 100644
index 000000000000..3628e76db25b
--- /dev/null
+++ b/audio/sox/files/patch-sox.1
@@ -0,0 +1,26 @@
+--- sox.1.orig 2021-05-09 20:19:07 UTC
++++ sox.1
+@@ -3531,8 +3531,7 @@ The average of the absolute value of each sample in th
+ T}
+ Mean amplitude \(S1/\s-2n\s+2\^\(*S\^\fIx\s-2\dk\u\s0\fR T{
+ The average of each sample in the audio. If this figure is non-zero, then it indicates the
+-presence of a D.C. offset (which could be removed using the
+-.B dcshift
++presence of a D.C. offset (which could be removed using the \fBdcshift\fR
+ effect).
+ T}
+ RMS amplitude \(sr(\(S1/\s-2n\s+2\^\(*S\^\fIx\s-2\dk\u\s0\fR\(S2) T{
+@@ -3545,11 +3544,9 @@ Mean delta \(S1/\s-2n\-1\s+2\^\(*S\^\^\(br\^\fIx\s-2\d
+ RMS delta \(sr(\(S1/\s-2n\-1\s+2\^\(*S\^(\fIx\s-2\dk\u\s0\fR\^\-\^\fIx\s-2\dk\-1\u\s0\fR)\(S2)
+ Rough frequency \ In Hz.
+ Volume Adjustment \ T{
+-The parameter to the
+-.B vol
++The parameter to the \fBvol\fR
+ effect which would make the audio as loud as possible without clipping.
+-Note: See the discussion on
+-.B Clipping
++Note: See the discussion on \fBClipping\fR
+ above for reasons why it is rarely a good idea actually to do this.
+ T}
+ .TE