From 223e11406d6533a1d1257521fce6b7bda4231db5 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Mon, 15 Jul 2024 06:03:07 -0500 Subject: [PATCH] scmpc: Fix implicit declaration of functions --- audio/scmpc/Portfile | 12 ++++++++---- audio/scmpc/files/implicit.patch | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 audio/scmpc/files/implicit.patch diff --git a/audio/scmpc/Portfile b/audio/scmpc/Portfile index 09d368023dc..8a9e7ec409d 100644 --- a/audio/scmpc/Portfile +++ b/audio/scmpc/Portfile @@ -4,8 +4,12 @@ PortSystem 1.0 PortGroup bitbucket 1.0 bitbucket.setup cmende scmpc 0.4.1 +revision 0 +checksums rmd160 f30c5ea2dbcff560961ba7ae8daa83b267f6901a \ + sha256 f89958dc0449f1dfbcbe81b453986812196dc86200153ac700cf606297c3fde3 \ + size 88288 + categories audio -platforms darwin license GPL-2+ maintainers nomaintainer description a client for MPD that submits your tracks to last.fm @@ -14,16 +18,16 @@ long_description \ bitbucket.tarball_from downloads use_bzip2 yes -checksums rmd160 f30c5ea2dbcff560961ba7ae8daa83b267f6901a \ - sha256 f89958dc0449f1dfbcbe81b453986812196dc86200153ac700cf606297c3fde3 -depends_build port:pkgconfig +depends_build path:bin/pkg-config:pkgconfig depends_lib port:curl \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:libconfuse \ port:libmpdclient +patchfiles implicit.patch + notes " Please note that scmpc may have some strange behavior on macOS, possibly\ relating to the cache file and SIGKILL. Please read the manpage before\ diff --git a/audio/scmpc/files/implicit.patch b/audio/scmpc/files/implicit.patch new file mode 100644 index 00000000000..d7c7e6dd82e --- /dev/null +++ b/audio/scmpc/files/implicit.patch @@ -0,0 +1,14 @@ +Fix: + +error: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Werror,-Wimplicit-function-declaration] +--- Makefile.in.orig 2013-03-04 07:34:37.000000000 -0600 ++++ Makefile.in 2024-07-15 06:01:03.000000000 -0500 +@@ -149,7 +149,7 @@ + CFLAGS = @CFLAGS@ + CPPFLAGS = @CPPFLAGS@ + CYGPATH_W = @CYGPATH_W@ +-DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\" -D_XOPEN_SOURCE=500 ++DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\" -D_XOPEN_SOURCE=600 + DEPDIR = @DEPDIR@ + ECHO_C = @ECHO_C@ + ECHO_N = @ECHO_N@