From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.mars-solutions.de ([213.239.212.107]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VCtrB-0007lm-6i for ptxdist@pengutronix.de; Fri, 23 Aug 2013 18:05:02 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.mars-solutions.de (Postfix) with ESMTP id ECFF22A409D for ; Fri, 23 Aug 2013 18:04:52 +0200 (CEST) Received: from mail.mars-solutions.de ([127.0.0.1]) by localhost (mars-solutions.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XhQ3OCJ+KDqM for ; Fri, 23 Aug 2013 18:04:52 +0200 (CEST) Received: from ws-apr.office.loc (HSI-KBW-109-193-024-214.hsi7.kabel-badenwuerttemberg.de [109.193.24.214]) by mail.mars-solutions.de (Postfix) with ESMTP id C7D0C2A40A1 for ; Fri, 23 Aug 2013 18:04:50 +0200 (CEST) From: Andreas Pretzsch Date: Fri, 23 Aug 2013 18:04:47 +0200 Message-Id: <1377273888-4204-2-git-send-email-apr@cn-eng.de> In-Reply-To: <1377273888-4204-1-git-send-email-apr@cn-eng.de> References: <1377273888-4204-1-git-send-email-apr@cn-eng.de> Subject: [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: , MIME-Version: 1.0 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 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) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +#LIBSAMPLERATE_CONF_ENV := $(CROSS_ENV) + +# +# autoconf +# +LIBSAMPLERATE_CONF_TOOL := autoconf +#LIBSAMPLERATE_CONF_OPT := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# 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