aboutsummaryrefslogtreecommitdiff
path: root/community/mpd
diff options
context:
space:
mode:
Diffstat (limited to 'community/mpd')
-rwxr-xr-xcommunity/mpd/build9
-rw-r--r--community/mpd/checksums5
-rw-r--r--community/mpd/files/meson.build31
-rw-r--r--community/mpd/meta3
-rw-r--r--community/mpd/sources4
-rw-r--r--community/mpd/version2
6 files changed, 47 insertions, 7 deletions
diff --git a/community/mpd/build b/community/mpd/build
index d6db78ae..47b60e3b 100755
--- a/community/mpd/build
+++ b/community/mpd/build
@@ -1,11 +1,12 @@
#!/bin/sh -e
+clsed '/^directory =/s/=.*/= fmt/' subprojects/fmt.wrap
+
export DESTDIR="$1"
-meson \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
+cl-meson \
+ --auto-features=auto \
+ -Dicu=disabled \
-Dlibmpdclient=disabled \
. output
diff --git a/community/mpd/checksums b/community/mpd/checksums
index 36a56dd4..65217595 100644
--- a/community/mpd/checksums
+++ b/community/mpd/checksums
@@ -1 +1,4 @@
-9617ed08c9ffafcf5f925819251f6b90df3f4f73cf2838c41033e1962104286d mpd-0.22.8.tar.xz
+%BLAKE3
+e6c42b1be58438c47272085746a792ade30860bf591ddb69ae2c6cee155c57a2 mpd-0.23.13.tar.xz
+cf180e86ce5ea35914b2ac320cfc2f3b6337ef1aebd3934a7e75a809918b5812 9.1.0.tar.gz
+a91e8415db32b59bb98205065a81a762cd047faf7b52441b697c35925287de80 meson.build
diff --git a/community/mpd/files/meson.build b/community/mpd/files/meson.build
new file mode 100644
index 00000000..21e1f2e2
--- /dev/null
+++ b/community/mpd/files/meson.build
@@ -0,0 +1,31 @@
+project('fmt', 'cpp', version: '9.1.0', license: 'BSD', default_options: ['cpp_std=c++14'])
+
+fmt_private_cpp_args = []
+fmt_interface_cpp_args = []
+if get_option('default_library') == 'shared'
+ fmt_private_cpp_args += ['-DFMT_EXPORT']
+ fmt_interface_cpp_args += ['-DFMT_SHARED']
+endif
+
+fmt_lib = library(
+ 'fmt',
+ 'src/format.cc',
+ 'src/os.cc',
+ cpp_args: fmt_private_cpp_args,
+ include_directories: 'include',
+)
+
+fmt_dep = declare_dependency(
+ include_directories: 'include',
+ compile_args: fmt_interface_cpp_args,
+ link_with: fmt_lib,
+)
+
+if meson.version().version_compare('>=0.54.0')
+ meson.override_dependency('fmt', fmt_dep)
+endif
+
+fmt_header_only_dep = declare_dependency(
+ include_directories: 'include',
+ compile_args: '-DFMT_HEADER_ONLY',
+)
diff --git a/community/mpd/meta b/community/mpd/meta
new file mode 100644
index 00000000..6b0eaf46
--- /dev/null
+++ b/community/mpd/meta
@@ -0,0 +1,3 @@
+description: Music Player Daemon
+license: GPL-2.0-or-later
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/community/mpd/sources b/community/mpd/sources
index 44c0c8b5..49d3e2f6 100644
--- a/community/mpd/sources
+++ b/community/mpd/sources
@@ -1 +1,3 @@
-https://www.musicpd.org/download/mpd/0.22/mpd-0.22.8.tar.xz
+https://www.musicpd.org/download/mpd/0.23/mpd-0.23.13.tar.xz
+https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz subprojects/fmt
+files/meson.build subprojects/fmt
diff --git a/community/mpd/version b/community/mpd/version
index 5c56e8f0..cdd9e76a 100644
--- a/community/mpd/version
+++ b/community/mpd/version
@@ -1 +1 @@
-0.22.8 1
+0.23.13 1