From 2a8ca83b1e8904a9c00307b465d2b8fbb031f190 Mon Sep 17 00:00:00 2001 From: Keto Date: Fri, 29 Nov 2024 23:10:00 -0500 Subject: [PATCH] mp3cat: Update to 0.5 --- audio/mp3cat/Portfile | 40 ++++++++++++++------------ audio/mp3cat/files/implicit.patch | 24 ++-------------- audio/mp3cat/files/patch-Makefile.diff | 13 +++++---- 3 files changed, 32 insertions(+), 45 deletions(-) diff --git a/audio/mp3cat/Portfile b/audio/mp3cat/Portfile index 86e887fdc70..808beedcb61 100644 --- a/audio/mp3cat/Portfile +++ b/audio/mp3cat/Portfile @@ -1,33 +1,37 @@ # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 +PortGroup github 1.0 +PortGroup makefile 1.0 -name mp3cat -version 0.4 +github.setup tomclegg mp3cat 0.5 +github.tarball_from archive +revision 0 categories audio -platforms darwin license GPL-2+ maintainers nomaintainer description Read and write MP3 files -long_description ${description} +long_description {*}${description}. -homepage http://tomclegg.net/mp3cat -master_sites http://tomclegg.net/software/ +homepage https://tomclegg.ca/mp3cat -checksums rmd160 d6fa7a549ed1b2d81f6217b2fe0ed52e28c18aaa \ - sha256 fd2b0d58018f5117bd1e22298c899bef5e6af61a0c540186d16d2bf516d6849a +checksums rmd160 4d2a022b68995ae27f883b51d75322e347ec95da \ + sha256 b1ec915c09c7e1c0ff48f54844db273505bc0157163bed7b2940792dca8ff951 \ + size 15711 -patchfiles patch-Makefile.diff \ - implicit.patch - -use_configure no - -variant universal {} - -build.env CC=${configure.cc} \ - "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" +patchfiles patch-Makefile.diff +patchfiles-append implicit.patch destroot { - xinstall -m 755 -W ${worksrcpath} mp3cat mp3log mp3log-conf mp3dirclean mp3http mp3stream-conf ${destroot}${prefix}/bin + xinstall -m 755 -W ${worksrcpath} \ + ${name} \ + mp3log \ + mp3log-conf \ + mp3dirclean \ + mp3http \ + mp3stream-conf \ + ${destroot}${prefix}/bin/ + xinstall -d ${destroot}${prefix}/share/doc/${name} + xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/ } diff --git a/audio/mp3cat/files/implicit.patch b/audio/mp3cat/files/implicit.patch index a1d6522c4f2..150b5bf2403 100644 --- a/audio/mp3cat/files/implicit.patch +++ b/audio/mp3cat/files/implicit.patch @@ -1,24 +1,6 @@ ---- read_buf.c.orig 2003-05-05 08:02:23.000000000 +1000 -+++ read_buf.c 2020-12-15 03:06:21.000000000 +1100 -@@ -7,6 +7,7 @@ - #include - #include - #include -+#include - - static int Infile_is_open=0; - static int Infd=STDIN_FILENO; ---- write_buf.c.orig 2003-05-05 08:02:23.000000000 +1000 -+++ write_buf.c 2020-12-15 03:10:03.000000000 +1100 -@@ -9,6 +9,7 @@ - #include - #include - #include -+#include - - #ifndef O_NOFOLLOW - #define O_NOFOLLOW 0 -@@ -82,6 +83,7 @@ int write_buf (const char* buffer, int w +--- write_buf.c.orig 2014-02-25 21:03:01.000000000 +0000 ++++ write_buf.c 2024-11-28 22:25:15.966663532 +0000 +@@ -87,6 +87,7 @@ sleep (1); } } diff --git a/audio/mp3cat/files/patch-Makefile.diff b/audio/mp3cat/files/patch-Makefile.diff index b3f5b950c54..990d8c8c283 100644 --- a/audio/mp3cat/files/patch-Makefile.diff +++ b/audio/mp3cat/files/patch-Makefile.diff @@ -1,10 +1,11 @@ ---- Makefile.orig 2003-05-05 08:02:23.000000000 +1000 -+++ Makefile 2020-12-15 03:04:44.000000000 +1100 -@@ -1,6 +1,6 @@ +--- Makefile.orig 2014-02-25 21:03:01.000000000 +0000 ++++ Makefile 2024-11-28 22:21:10.619192061 +0000 +@@ -4,7 +4,7 @@ + INSTALL_COMMAND?=install -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0555 all: mp3cat mp3cat: *.c *.h - cc -o mp3cat *.c + $(CC) $(CFLAGS) -o mp3cat *.c - 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 + install: install_bin install_scripts + install_bin: mp3cat + mkdir -p $(PREFIX)/bin