From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=bjornoya.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WtLtd-0001lt-QI for ptxdist@pengutronix.de; Sat, 07 Jun 2014 21:03:17 +0200 Received: from [192.168.0.143] (static-087-245-032-157-teleos.ewe-ip-backbone.de [87.245.32.157]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: frogger) by bjornoya.do.blackshift.org (Postfix) with ESMTPSA id 3F5FD5EB0B for ; Sat, 7 Jun 2014 21:03:17 +0200 (CEST) Message-ID: <539361E4.8030507@pengutronix.de> Date: Sat, 07 Jun 2014 21:03:00 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <20140602083901.GM26228@pengutronix.de> <1402127864-6411-1-git-send-email-m.grzeschik@pengutronix.de> In-Reply-To: <1402127864-6411-1-git-send-email-m.grzeschik@pengutronix.de> Subject: Re: [ptxdist] [PATCH v3] Add Music Player Daemon (MPD) support Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1553766822==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1553766822== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s3ukD0X2RuPqsdMvL84hGqSNBvKuCl24C" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --s3ukD0X2RuPqsdMvL84hGqSNBvKuCl24C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/07/2014 09:57 AM, Michael Grzeschik wrote: > From: Sascha Hauer >=20 > Signed-off-by: Sascha Hauer > Signed-off-by: Michael Grzeschik > --- > v1..v2 > -aligned ifs > -remove MPD in every config section > -removed commented build stages > -used MPD_ENABLE-* where needed > -used simpler addprefix macro > v2..v3 > -removed MPD_ENABLE-* > -removed MPD_CONF_ENV > -used ptx/endis instead > -simplified install_copy for mpd > -added EXAMPLECONF option >=20 > rules/mpd.in | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ > rules/mpd.make | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++ > 2 files changed, 132 insertions(+) > create mode 100644 rules/mpd.in > create mode 100644 rules/mpd.make >=20 > diff --git a/rules/mpd.in b/rules/mpd.in > new file mode 100644 > index 0000000..399bde6 > --- /dev/null > +++ b/rules/mpd.in > @@ -0,0 +1,61 @@ > +## SECTION=3Dmultimedia_sound > + > +menuconfig MPD > + tristate > + prompt "Music Player Daemon (MPD) " > + select GLIB > + select ALSA_LIB if MPD_ALSA > + select LIBID3TAG if MPD_ID3 > + select LIBMAD if MPD_MAD > + select MPG123 if MPD_MPG123 > + select LIBOGG if MPD_VORBIS > + select LIBVORBIS if MPD_VORBIS > + select FLAC if MPD_FLAC > + select LIBCURL if MPD_CURL > + select SQLITE if MPD_SQLITE > + help > + Music Player Daemon (MPD) is a flexible, powerful, server-side > + application for playing music. Through plugins and libraries it > + can play a variety of sound files while being controlled by its > + network protocol. > + > +if MPD > + > +config MPD_EXAMPLECONF > + bool > + prompt "install /etc/mpd.conf" > + default y > + > +config MPD_ALSA > + prompt "Alsa support" > + bool > + > +config MPD_ID3 > + prompt "ID3 support" > + bool > + > +config MPD_MAD > + prompt "MAD support" > + bool > + > +config MPD_MPG123 > + prompt "MPG123 support" > + bool > + > +config MPD_VORBIS > + prompt "Vorbis support" > + bool > + > +config MPD_FLAC > + prompt "FLAC support" > + bool > + > +config MPD_CURL > + prompt "curl support" > + bool > + > +config MPD_SQLITE > + prompt "SQLite support" > + bool > + > +endif > diff --git a/rules/mpd.make b/rules/mpd.make > new file mode 100644 > index 0000000..c280630 > --- /dev/null > +++ b/rules/mpd.make > @@ -0,0 +1,71 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2013 by Sascha Hauer > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license condit= ions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_MPD) +=3D mpd > + > +# > +# Paths and names > +# > +MPD_VERSION :=3D 0.18.11 > +MPD_MD5 :=3D 6dd86793ad78d8b502f6721734f87ff7 > +MPD :=3D mpd-$(MPD_VERSION) > +MPD_SUFFIX :=3D tar.gz > +MPD_URL :=3D http://www.musicpd.org/download/mpd/0.18/$(MPD).$(MPD_SU= FFIX) > +MPD_SOURCE :=3D $(SRCDIR)/$(MPD).$(MPD_SUFFIX) > +MPD_DIR :=3D $(BUILDDIR)/$(MPD) > +MPD_LICENSE :=3D unknown > + > +# --------------------------------------------------------------------= -------- > +# Prepare > +# --------------------------------------------------------------------= -------- > + > +# > +# autoconf > +# > +MPD_CONF_TOOL :=3D autoconf > +MPD_CONF_OPT :=3D \ > + $(CROSS_AUTOCONF_USR) \ > + --$(call ptx/endis, PTXCONF_MPD_ALSA)-alsa \ > + --$(call ptx/endis, PTXCONF_MPD_FFMPEG)-ffmpeg \ > + --$(call ptx/endis, PTXCONF_MPD_ID3)-id3 \ > + --$(call ptx/endis, PTXCONF_MPD_MAD)-mad \ > + --$(call ptx/endis, PTXCONF_MPD_MPG123)-mpg123 \ > + --$(call ptx/endis, PTXCONF_MPD_VORBIS)-vorbis \ > + --$(call ptx/endis, PTXCONF_MPD_FLAC)-flac \ > + --$(call ptx/endis, PTXCONF_MPD_CURL)-curl \ > + --$(call ptx/endis, PTXCONF_MPD_SQLITE)-sqlite \ > + > +# --------------------------------------------------------------------= -------- > +# Target-Install > +# --------------------------------------------------------------------= -------- > + > +$(STATEDIR)/mpd.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, mpd) > + @$(call install_fixup, mpd,PRIORITY,optional) > + @$(call install_fixup, mpd,SECTION,base) > + @$(call install_fixup, mpd,AUTHOR,"Sascha Hauer ") > + @$(call install_fixup, mpd,DESCRIPTION,missing) > + > + @$(call install_copy, mpd, 0, 0, 0755, -, /usr/bin/mpd) > + > +ifdef PTXCONF_MPD_EXAMPLECONF > + @$(call install_copy, mpd, 0, 0, 0755, $(MPD_PKGDIR)/usr/share/doc/mp= d/mpdconf.example, /etc/mpd.conf) 0644 Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --s3ukD0X2RuPqsdMvL84hGqSNBvKuCl24C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlOTYesACgkQjTAFq1RaXHPEYgCeLlZKd2U814PZIENBCrlSo1NL UwMAoIhN8R2Vr26H8XRIh+fITd8J5Zys =uxtL -----END PGP SIGNATURE----- --s3ukD0X2RuPqsdMvL84hGqSNBvKuCl24C-- --===============1553766822== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1553766822==--