diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-08-29 14:24:12 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-08-29 20:59:16 -0700 |
| commit | 65bac5505f306c693244186c769cef18aa436f60 (patch) | |
| tree | 762c1e2597e47d8458c12ba1e0c85539c8f0e458 /meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb | |
| parent | cdbdb57bb36cb855f49f165b36ea331f27df404c (diff) | |
| download | meta-openembedded-65bac5505f306c693244186c769cef18aa436f60.tar.gz | |
mpd: Upgrade to 0.23.15+git
Drop uneeded patch
ver 0.23.15 (2023/12/20)
* decoder
- ffmpeg: fix build failure with FFmpeg 6.1
* output
- alsa: limit buffer time to 2 seconds
Use latest master for fmt 11.x fixes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb new file mode 100644 index 0000000000..f066c405f1 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.23.15.bb | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | SUMMARY = "Music Player Daemon" | ||
| 2 | LICENSE = "GPL-2.0-only" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 4 | |||
| 5 | HOMEPAGE ="http://www.musicpd.org" | ||
| 6 | |||
| 7 | inherit meson useradd systemd pkgconfig | ||
| 8 | |||
| 9 | DEPENDS += " \ | ||
| 10 | curl \ | ||
| 11 | sqlite3 \ | ||
| 12 | ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)} \ | ||
| 13 | yajl \ | ||
| 14 | boost \ | ||
| 15 | icu \ | ||
| 16 | dbus \ | ||
| 17 | expat \ | ||
| 18 | fmt \ | ||
| 19 | " | ||
| 20 | |||
| 21 | PV .= "+git" | ||
| 22 | SRC_URI = "git://github.com/MusicPlayerDaemon/MPD;branch=master;protocol=https \ | ||
| 23 | file://mpd.conf.in \ | ||
| 24 | " | ||
| 25 | SRCREV = "965c466e9bda262790e76edd5272e9e74b407ff3" | ||
| 26 | S = "${WORKDIR}/git" | ||
| 27 | |||
| 28 | EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-Dsystemd=enabled -Dsystemd_system_unit_dir=${systemd_system_unitdir} -Dsystemd_user_unit_dir=${systemd_system_unitdir}', '-Dsystemd=disabled', d)} \ | ||
| 29 | -Dadplug=disabled \ | ||
| 30 | -Dsndio=disabled \ | ||
| 31 | -Dshine=disabled \ | ||
| 32 | -Dtremor=disabled \ | ||
| 33 | " | ||
| 34 | |||
| 35 | PACKAGECONFIG ??= "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "aac", "", d)} \ | ||
| 36 | alsa ao bzip2 daemon \ | ||
| 37 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "ffmpeg aac", "", d)} \ | ||
| 38 | fifo flac fluidsynth iso9660 \ | ||
| 39 | jack libsamplerate httpd \ | ||
| 40 | mms mpg123 modplug sndfile \ | ||
| 41 | upnp openal opus oss recorder \ | ||
| 42 | vorbis wavpack zlib" | ||
| 43 | |||
| 44 | PACKAGECONFIG[aac] = "-Dfaad=enabled,-Dfaad=disabled,faad2" | ||
| 45 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | ||
| 46 | PACKAGECONFIG[ao] = "-Dao=enabled,-Dao=disabled,libao" | ||
| 47 | PACKAGECONFIG[audiofile] = "-Daudiofile=enabled,-Daudiofile=disabled,audiofile" | ||
| 48 | PACKAGECONFIG[bzip2] = "-Dbzip2=enabled,-Dbzip2=disabled,bzip2" | ||
| 49 | PACKAGECONFIG[cdioparanoia] = "-Dcdio_paranoia=enabled,-Dcdio_paranoia=disabled,libcdio-paranoia" | ||
| 50 | PACKAGECONFIG[daemon] = "-Ddaemon=true,-Ddaemon=false" | ||
| 51 | PACKAGECONFIG[ffmpeg] = "-Dffmpeg=enabled,-Dffmpeg=disabled,ffmpeg" | ||
| 52 | PACKAGECONFIG[fifo] = "-Dfifo=true,-Dfifo=false" | ||
| 53 | PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac" | ||
| 54 | PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth" | ||
| 55 | PACKAGECONFIG[httpd] = "-Dhttpd=true,-Dhttpd=false" | ||
| 56 | PACKAGECONFIG[id3tag] = "-Did3tag=enabled,-Did3tag=disabled,libid3tag" | ||
| 57 | PACKAGECONFIG[iso9660] = "-Diso9660=enabled,-Diso9660=disabled,libcdio" | ||
| 58 | PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack" | ||
| 59 | PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame" | ||
| 60 | PACKAGECONFIG[libsamplerate] = "-Dlibsamplerate=enabled,-Dlibsamplerate=disabled,libsamplerate0" | ||
| 61 | PACKAGECONFIG[mad] = "-Dmad=enabled,-Dmad=disabled,libmad" | ||
| 62 | PACKAGECONFIG[mms] = "-Dmms=enabled,-Dmms=disabled,libmms" | ||
| 63 | PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug" | ||
| 64 | PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123" | ||
| 65 | PACKAGECONFIG[openal] = "-Dopenal=enabled,-Dopenal=disabled,openal-soft" | ||
| 66 | PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus libogg" | ||
| 67 | PACKAGECONFIG[oss] = "-Doss=enabled,-Doss=disabled," | ||
| 68 | PACKAGECONFIG[recorder] = "-Drecorder=true,-Drecorder=false" | ||
| 69 | PACKAGECONFIG[smb] = "-Dsmbclient=enabled,-Dsmbclient=disabled,samba" | ||
| 70 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" | ||
| 71 | PACKAGECONFIG[upnp] = "-Dupnp=pupnp,-Dupnp=disabled,libupnp" | ||
| 72 | PACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis libogg" | ||
| 73 | PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack" | ||
| 74 | PACKAGECONFIG[zlib] = "-Dzlib=enabled,-Dzlib=disabled,zlib" | ||
| 75 | |||
| 76 | do_install:append() { | ||
| 77 | install -o mpd -d \ | ||
| 78 | ${D}/${localstatedir}/lib/mpd \ | ||
| 79 | ${D}/${localstatedir}/lib/mpd/playlists | ||
| 80 | install -m775 -o mpd -g mpd -d \ | ||
| 81 | ${D}/${localstatedir}/lib/mpd/music | ||
| 82 | |||
| 83 | install -d ${D}/${sysconfdir} | ||
| 84 | install -m 644 ${UNPACKDIR}/mpd.conf.in ${D}/${sysconfdir}/mpd.conf | ||
| 85 | sed -i \ | ||
| 86 | -e 's|%music_directory%|${localstatedir}/lib/mpd/music|' \ | ||
| 87 | -e 's|%playlist_directory%|${localstatedir}/lib/mpd/playlists|' \ | ||
| 88 | -e 's|%db_file%|${localstatedir}/lib/mpd/mpd.db|' \ | ||
| 89 | -e 's|%log_file%|${localstatedir}/log/mpd.log|' \ | ||
| 90 | -e 's|%state_file%|${localstatedir}/lib/mpd/state|' \ | ||
| 91 | ${D}/${sysconfdir}/mpd.conf | ||
| 92 | |||
| 93 | # we don't need the icon | ||
| 94 | rm -rf ${D}${datadir}/icons | ||
| 95 | } | ||
| 96 | |||
| 97 | RPROVIDES:${PN} += "${PN}-systemd" | ||
| 98 | RREPLACES:${PN} += "${PN}-systemd" | ||
| 99 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
| 100 | SYSTEMD_SERVICE:${PN} = "mpd.socket" | ||
| 101 | |||
| 102 | USERADD_PACKAGES = "${PN}" | ||
| 103 | USERADD_PARAM:${PN} = " \ | ||
| 104 | --system --no-create-home \ | ||
| 105 | --home ${localstatedir}/lib/mpd \ | ||
| 106 | --groups audio \ | ||
| 107 | --user-group mpd" | ||
| 108 | |||
| 109 | CVE_STATUS[CVE-2020-7465] = "cpe-incorrect: The recipe used in the meta-openembedded is a different mpd package compared to the one which has the CVE issue." | ||
| 110 | CVE_STATUS[CVE-2020-7466] = "cpe-incorrect: The recipe used in the meta-openembedded is a different mpd package compared to the one which has the CVE issue." | ||
