From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SBMvg-00079a-2N for ptxdist@pengutronix.de; Sat, 24 Mar 2012 10:06:32 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1SBMvg-0006fe-0Z for ptxdist@pengutronix.de; Sat, 24 Mar 2012 10:06:32 +0100 Date: Sat, 24 Mar 2012 10:06:31 +0100 From: Michael Olbrich Message-ID: <20120324090631.GA24724@pengutronix.de> References: <1332318859-22409-1-git-send-email-w.sang@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1332318859-22409-1-git-send-email-w.sang@pengutronix.de> Subject: Re: [ptxdist] [PATCH] rules: add sox Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Mar 21, 2012 at 09:34:19AM +0100, Wolfram Sang wrote: > Signed-off-by: Kjell Ove R=F8te > Signed-off-by: Wolfram Sang > --- > rules/sox.in | 22 ++++++++++++++++++ > rules/sox.make | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++ > 2 files changed, 90 insertions(+), 0 deletions(-) > create mode 100644 rules/sox.in > create mode 100644 rules/sox.make > = > diff --git a/rules/sox.in b/rules/sox.in > new file mode 100644 > index 0000000..2d38da0 > --- /dev/null > +++ b/rules/sox.in > @@ -0,0 +1,22 @@ > +## SECTION=3Dmultimedia_sound > + > +config SOX > + tristate > + prompt "sox " > + select LIBMAD if SOX_MP3 > + help > + SoX is the Swiss Army Knife of sound processing utilities. It can > + convert audio files to other popular audio file types and also apply > + sound effects and filters during the conversion. > + > +if SOX > + > +config SOX_GOMP > + bool > + prompt "GOMP support" > + > +config SOX_MP3 > + bool > + prompt "MP3 support" > + > +endif > diff --git a/rules/sox.make b/rules/sox.make > new file mode 100644 > index 0000000..ef4290f > --- /dev/null > +++ b/rules/sox.make > @@ -0,0 +1,68 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2012 by Kjell Ove Rote > +# Copyright (C) 2012 by Wolfram Sang > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_SOX) +=3D sox > + > +# > +# Paths and names > +# > +SOX_VERSION :=3D 14.3.2 > +SOX_MD5 :=3D f6e1999b05d9b0cc9bb47ce8d3208dee > +SOX :=3D sox-$(SOX_VERSION) > +SOX_SUFFIX :=3D tar.bz2 > +SOX_URL :=3D http://sourceforge.net/projects/sox/files/sox/$(SOX_VERSIO= N)/$(SOX).$(SOX_SUFFIX) > +SOX_SOURCE :=3D $(SRCDIR)/$(SOX).$(SOX_SUFFIX) > +SOX_DIR :=3D $(BUILDDIR)/$(SOX) > +SOX_LICENSE :=3D GPLv2+, LGPLv2.1+ > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +SOX_CONF_TOOL :=3D autoconf > +SOX_CONF_OPT :=3D $(CROSS_AUTOCONF_USR) > + > +ifdef PTXCONF_SOX_GOMP > +SOX_CONF_OPT +=3D --enable-gomp > +else > +SOX_CONF_OPT +=3D --disable-gomp > +endif use ptx/endis > + > +ifdef PTXCONF_SOX_MP3 > +SOX_CONF_OPT +=3D --with-mad > +else > +SOX_CONF_OPT +=3D --without-mad > +endif use ptx/wwo Also, you need to either add the correct dependencies for everything else, or explicitly disable things. Michael > + > +# ----------------------------------------------------------------------= ------ > +# Target-Install > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/sox.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, sox) > + @$(call install_fixup, sox ,PRIORITY, optional) > + @$(call install_fixup, sox ,SECTION, base) > + @$(call install_fixup, sox, AUTHOR, "Kjell Ove Rote ") > + @$(call install_fixup, sox, DESCRIPTION, "SoX, the Swiss Army knife of = sound processing programs") > + > + @$(call install_copy, sox, 0, 0, 0755, -, /usr/bin/sox) > + @$(call install_lib, sox, 0, 0, 0644, libsox) > + > + @$(call install_finish, sox) > + > + @$(call touch) > + > +# vim: syntax=3Dmake > -- = > 1.7.9.1 > = > = > -- = > ptxdist mailing list > ptxdist@pengutronix.de -- = Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- = ptxdist mailing list ptxdist@pengutronix.de