From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VIx4n-0005Hf-Fc for ptxdist@pengutronix.de; Mon, 09 Sep 2013 10:44:05 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1VIx4n-000640-Dz for ptxdist@pengutronix.de; Mon, 09 Sep 2013 10:44:05 +0200 Date: Mon, 9 Sep 2013 10:44:05 +0200 From: Michael Olbrich Message-ID: <20130909084405.GB31967@pengutronix.de> References: <1377273888-4204-1-git-send-email-apr@cn-eng.de> <1377273888-4204-2-git-send-email-apr@cn-eng.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1377273888-4204-2-git-send-email-apr@cn-eng.de> Subject: Re: [ptxdist] [PATCH 1/2] libsamplerate: add package 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Fri, Aug 23, 2013 at 06:04:47PM +0200, Andreas Pretzsch wrote: > Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. > It is used e.g. by alsaloop from alsa-utils. > More information, source and docs: http://www.mega-nerd.com/SRC/ > > Signed-off-by: Andreas Pretzsch > --- > rules/libsamplerate.in | 7 +++++ > rules/libsamplerate.make | 71 ++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 78 insertions(+) > create mode 100644 rules/libsamplerate.in > create mode 100644 rules/libsamplerate.make > > diff --git a/rules/libsamplerate.in b/rules/libsamplerate.in > new file mode 100644 > index 0000000..4bdc265 > --- /dev/null > +++ b/rules/libsamplerate.in > @@ -0,0 +1,7 @@ > +## SECTION=multimedia_libs > + > +config LIBSAMPLERATE > + bool > + prompt "libsamplerate" > + help > + Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. > diff --git a/rules/libsamplerate.make b/rules/libsamplerate.make > new file mode 100644 > index 0000000..a1ccf60 > --- /dev/null > +++ b/rules/libsamplerate.make > @@ -0,0 +1,71 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2013 by Andreas Pretzsch > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_LIBSAMPLERATE) += libsamplerate > + > +# > +# Paths and names > +# > +LIBSAMPLERATE_VERSION := 0.1.8 > +LIBSAMPLERATE_MD5 := 1c7fb25191b4e6e3628d198a66a84f47 > +LIBSAMPLERATE := libsamplerate-$(LIBSAMPLERATE_VERSION) > +LIBSAMPLERATE_SUFFIX := tar.gz > +LIBSAMPLERATE_URL := http://www.mega-nerd.com/SRC/$(LIBSAMPLERATE).$(LIBSAMPLERATE_SUFFIX) > +LIBSAMPLERATE_SOURCE := $(SRCDIR)/$(LIBSAMPLERATE).$(LIBSAMPLERATE_SUFFIX) > +LIBSAMPLERATE_DIR := $(BUILDDIR)/$(LIBSAMPLERATE) > +LIBSAMPLERATE_LICENSE := GPLv2+ > + > +# ---------------------------------------------------------------------------- > +# Extract > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libsamplerate.extract: > + @$(call targetinfo) > + @$(call clean, $(LIBSAMPLERATE_DIR)) > + @$(call extract, LIBSAMPLERATE) > + cd $(LIBSAMPLERATE_DIR) && [ -f configure ] || sh autogen.sh > + @$(call patchin, LIBSAMPLERATE) > + @$(call touch) remove this. > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +#LIBSAMPLERATE_CONF_ENV := $(CROSS_ENV) remove > + > +# > +# autoconf > +# > +LIBSAMPLERATE_CONF_TOOL := autoconf > +#LIBSAMPLERATE_CONF_OPT := $(CROSS_AUTOCONF_USR) Add some defaults, for fftw and sndfile at least. Michael > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libsamplerate.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, libsamplerate) > + @$(call install_fixup, libsamplerate, PRIORITY, optional) > + @$(call install_fixup, libsamplerate, SECTION, base) > + @$(call install_fixup, libsamplerate, AUTHOR, "Andreas Pretzsch ") > + @$(call install_fixup, libsamplerate, DESCRIPTION, "libsamplerate aka Secret Rabbit Code, a Sample Rate Converter for audio") > + > + @$(call install_lib, libsamplerate, 0, 0, 0644, libsamplerate) > + > + @$(call install_finish, libsamplerate) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 1.7.10.4 > > > -- > 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