mpd: update to 0.21.26
authorRosen Penev <rosenp@gmail.com>
Tue, 22 Sep 2020 22:06:50 +0000 (15:06 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 22 Sep 2020 22:09:17 +0000 (15:09 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
sound/mpd/Makefile
sound/mpd/patches/010-iconv.patch

index be62a1dc209c4cbd257828c9c0ec4f56c4378fa4..b0700875e046c8f87156f13937cf143a1c3b723b 100644 (file)
@@ -6,12 +6,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mpd
-PKG_VERSION:=0.21.25
-PKG_RELEASE:=5
+PKG_VERSION:=0.21.26
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.musicpd.org/download/mpd/0.21/
-PKG_HASH:=20a0ad01bf327b2dbeb6ae8e1af952cb0de83d2d63fab0fa4b7183a74765c201
+PKG_HASH:=f9e68221c7a6829ec02f281eb313b2f24182020f5eb65ab22b337e6169ea4eea
 
 PKG_MAINTAINER:=
 PKG_LICENSE:=GPL-2.0-or-later
index 81adf1ba74acdd0ca4ca5a5392a0615fae94eb6c..d589db30e1564c31c73e68e58bab66d7b27d80c1 100644 (file)
@@ -1,4 +1,4 @@
-From 90fcdb5b02e08b3faf2e321b081798cc18d35b15 Mon Sep 17 00:00:00 2001
+From 8ece1141e455d6643df0be885a5df200bdb3bc78 Mon Sep 17 00:00:00 2001
 From: Rosen Penev <rosenp@gmail.com>
 Date: Thu, 30 Jul 2020 14:34:07 -0700
 Subject: [PATCH] icu/meson: link against iconv when used externally
@@ -17,18 +17,18 @@ Signed-off-by: Rosen Penev <rosenp@gmail.com>
  1 file changed, 12 insertions(+), 2 deletions(-)
 
 diff --git a/src/lib/icu/meson.build b/src/lib/icu/meson.build
-index bd6e30944..132e15b89 100644
+index bd6e30944..e63d614a0 100644
 --- a/src/lib/icu/meson.build
 +++ b/src/lib/icu/meson.build
 @@ -18,8 +18,18 @@ if icu_dep.found()
      'Init.cxx',
    ]
  elif not get_option('iconv').disabled()
--  have_iconv = compiler.has_function('iconv')
+-  have_iconv = compiler.has_function('iconv', prefix : '#include <iconv.h>')
 -  conf.set('HAVE_ICONV', have_iconv)
 +  have_iconv = c_compiler.has_header_symbol('iconv.h', 'iconv')
 +  if have_iconv
-+    libiconv = c_compiler.find_library('iconv')
++    libiconv = c_compiler.find_library('iconv', required : false)
 +    conf.set('HAVE_ICONV', have_iconv)
 +    libiconv_dep = static_library('iconv', icu_sources, include_directories: inc, dependencies: libiconv)
 +    icu_dep = declare_dependency(link_with: libiconv_dep, dependencies: util_dep)