scmpc: Fix implicit declaration of functions

This commit is contained in:
Ryan Carsten Schmidt
2024-07-15 06:03:07 -05:00
parent c3a5a2f1a8
commit 223e11406d
2 changed files with 22 additions and 4 deletions
+8 -4
View File
@@ -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\
+14
View File
@@ -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@