aboutsummaryrefslogtreecommitdiff
path: root/audio/cmus/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmus/files')
-rw-r--r--audio/cmus/files/patch-scripts-checks.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/cmus/files/patch-scripts-checks.sh b/audio/cmus/files/patch-scripts-checks.sh
new file mode 100644
index 000000000000..15b27cba2112
--- /dev/null
+++ b/audio/cmus/files/patch-scripts-checks.sh
@@ -0,0 +1,20 @@
+--- scripts/checks.sh.orig 2014-08-11 07:48:28 UTC
++++ scripts/checks.sh
+@@ -677,11 +677,15 @@ check_dl()
+ check_iconv()
+ {
+ HAVE_ICONV=n
+- if check_library ICONV "" "-liconv"
++ if check_function iconv
++ then
++ echo "libc contains iconv"
++ makefile_var ICONV_CFLAGS ""
++ makefile_var ICONV_LIBS ""
++ elif check_library ICONV "" "-liconv"
+ then
+ echo "taking iconv from libiconv"
+ else
+- echo "assuming libc contains iconv"
+ makefile_var ICONV_CFLAGS ""
+ makefile_var ICONV_LIBS ""
+ fi