mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Pretzsch <apr@cn-eng.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] libsamplerate: add package
Date: Fri, 23 Aug 2013 18:04:47 +0200	[thread overview]
Message-ID: <1377273888-4204-2-git-send-email-apr@cn-eng.de> (raw)
In-Reply-To: <1377273888-4204-1-git-send-email-apr@cn-eng.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 <apr@cn-eng.de>
---
 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 <apr@cn-eng.de>
+#
+# 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 <apr@cn-eng.de>")
+	@$(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

  reply	other threads:[~2013-08-23 16:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-23 16:04 [ptxdist] [PATCH 0/2] new package libsamplerate, used by alsaloop from alsa-utils Andreas Pretzsch
2013-08-23 16:04 ` Andreas Pretzsch [this message]
2013-09-09  8:44   ` [ptxdist] [PATCH 1/2] libsamplerate: add package Michael Olbrich
2015-04-17 22:22     ` Andreas Pretzsch
2015-04-17 22:48   ` [ptxdist] [PATCH v2] libsamplerate: new package for libsamplerate 0.1.8 Andreas Pretzsch
2013-08-23 16:04 ` [ptxdist] [PATCH 2/2] package alsa-utils: alsaloop requires libsamplerate, so autoselect it Andreas Pretzsch
2013-09-09  8:45   ` Michael Olbrich
2015-04-17 22:20     ` Andreas Pretzsch
2015-04-17 22:49   ` [ptxdist] [PATCH v2] alsa-utils: autoselect libsamplerate for alsaloop Andreas Pretzsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377273888-4204-2-git-send-email-apr@cn-eng.de \
    --to=apr@cn-eng.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox