<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2178030e70879b1fdcc0ef2374fb876d97b99ac8">https://github.com/macports/macports-ports/commit/2178030e70879b1fdcc0ef2374fb876d97b99ac8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2178030e70879b1fdcc0ef2374fb876d97b99ac8
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Dec 15 03:14:30 2020 +1100
<span style='display:block; white-space:pre;color:#404040;'> mp3cat: fix implicit function declaration errors
</span>---
audio/mp3cat/Portfile | 6 ++++--
audio/mp3cat/files/implicit.patch | 28 ++++++++++++++++++++++++++++
audio/mp3cat/files/patch-Makefile.diff | 6 +++---
3 files changed, 35 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/mp3cat/Portfile b/audio/mp3cat/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f057a508551..86e887fdc70 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/mp3cat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/mp3cat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,13 +18,15 @@ master_sites http://tomclegg.net/software/
</span> checksums rmd160 d6fa7a549ed1b2d81f6217b2fe0ed52e28c18aaa \
sha256 fd2b0d58018f5117bd1e22298c899bef5e6af61a0c540186d16d2bf516d6849a
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-Makefile.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit.patch
</span>
use_configure no
variant universal {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args-append CC="${configure.cc} [get_canonical_archflags cc]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CFLAGS=${configure.cflags} [get_canonical_archflags cc]"
</span>
destroot {
xinstall -m 755 -W ${worksrcpath} mp3cat mp3log mp3log-conf mp3dirclean mp3http mp3stream-conf ${destroot}${prefix}/bin
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/mp3cat/files/implicit.patch b/audio/mp3cat/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a1d6522c4f2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/mp3cat/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- read_buf.c.orig 2003-05-05 08:02:23.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ read_buf.c 2020-12-15 03:06:21.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,6 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <fcntl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int Infile_is_open=0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int Infd=STDIN_FILENO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- write_buf.c.orig 2003-05-05 08:02:23.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ write_buf.c 2020-12-15 03:10:03.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9,6 +9,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef O_NOFOLLOW
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define O_NOFOLLOW 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -82,6 +83,7 @@ int write_buf (const char* buffer, int w
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sleep (1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef COMPILER_CAN_READ_PSEUDOCODE
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/mp3cat/files/patch-Makefile.diff b/audio/mp3cat/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index e3ef07846b2..b3f5b950c54 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/mp3cat/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/mp3cat/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.orig 2014-02-23 10:39:53.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile 2014-02-23 10:40:35.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2003-05-05 08:02:23.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2020-12-15 03:04:44.000000000 +1100
</span> @@ -1,6 +1,6 @@
all: mp3cat
mp3cat: *.c *.h
- cc -o mp3cat *.c
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $(CC) -o mp3cat *.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(CFLAGS) -o mp3cat *.c
</span> install: mp3cat mp3log mp3log-conf mp3stream-conf
install -o root -g wheel mp3cat /usr/local/bin/mp3cat
install -o root -g wheel mp3log /usr/local/bin/mp3log
</pre><pre style='margin:0'>
</pre>