mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-05 16:41:49 +00:00
Changes: - rename SUMMARY with length > 80 to DESCRIPTION - rename DESCRIPTION with length < 80 to (non present tag) SUMMARY - drop final point character at the end of SUMMARY string - remove trailing whitespace of SUMMARY line Note: don't bump PR Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
62 lines
2.2 KiB
BlitzBasic
62 lines
2.2 KiB
BlitzBasic
SUMMARY = "Music Player Daemon"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
HOMEPAGE ="http://sourceforge.net/projects/musicpd"
|
|
|
|
DEPENDS = "alsa-lib libsamplerate0 libsndfile1 libvorbis libogg faad2 ffmpeg curl sqlite bzip2 pulseaudio"
|
|
|
|
SRC_URI = " \
|
|
http://www.musicpd.org/download/${PN}/stable/${PN}-0.18.tar.xz \
|
|
file://mpd.conf.in \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "0d881fb32f9d31afcdb0bb13cb78b9ab"
|
|
SRC_URI[sha256sum] = "6b171985f192603150c879d105dc4d05d701ac60a2db41630a4dce823e068388"
|
|
|
|
S = "${WORKDIR}/${PN}-0.18"
|
|
|
|
inherit autotools useradd systemd
|
|
|
|
EXTRA_OECONF = "enable_bzip2=yes"
|
|
EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
|
|
|
|
PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
|
|
PACKAGECONFIG[id3tag] = "--enable-id3,--disable-id3,libid3tag"
|
|
PACKAGECONFIG[lame] = "--enable-lame-encoder,--disable-lame-encoder,lame"
|
|
|
|
do_install_append() {
|
|
install -d ${D}/${localstatedir}/lib/mpd/music
|
|
chmod 775 ${D}/${localstatedir}/lib/mpd/music
|
|
install -d ${D}/${localstatedir}/lib/mpd/playlists
|
|
chown -R mpd ${D}/${localstatedir}/lib/mpd
|
|
chown mpd:mpd ${D}/${localstatedir}/lib/mpd/music
|
|
|
|
install -d ${D}/${sysconfdir}
|
|
install -m 644 ${WORKDIR}/mpd.conf.in ${D}/${sysconfdir}/mpd.conf
|
|
sed -i \
|
|
-e 's|%music_directory%|${localstatedir}/lib/mpd/music|' \
|
|
-e 's|%playlist_directory%|${localstatedir}/lib/mpd/playlists|' \
|
|
-e 's|%db_file%|${localstatedir}/lib/mpd/mpd.db|' \
|
|
-e 's|%log_file%|${localstatedir}/log/mpd.log|' \
|
|
-e 's|%state_file%|${localstatedir}/lib/mpd/state|' \
|
|
${D}/${sysconfdir}/mpd.conf
|
|
|
|
if [ -e ${D}/${systemd_unitdir}/system/mpd.service ] ; then
|
|
sed -i \
|
|
's|^ExecStart=.*|ExecStart=${bindir}/mpd --no-daemon|' \
|
|
${D}/${systemd_unitdir}/system/mpd.service
|
|
fi
|
|
}
|
|
|
|
RPROVIDES_${PN} += "${PN}-systemd"
|
|
RREPLACES_${PN} += "${PN}-systemd"
|
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
|
SYSTEMD_SERVICE_${PN} = "mpd.service"
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
|
USERADD_PARAM_${PN} = " \
|
|
--system --no-create-home \
|
|
--home ${localstatedir}/lib/mpd \
|
|
--groups audio \
|
|
--user-group mpd"
|