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 v2] libsamplerate: new package for libsamplerate 0.1.8
Date: Sat, 18 Apr 2015 00:48:57 +0200	[thread overview]
Message-ID: <1429310937-8604-1-git-send-email-apr@cn-eng.de> (raw)
In-Reply-To: <1377273888-4204-2-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   |  8 +++++++
 rules/libsamplerate.make | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 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..82030e4
--- /dev/null
+++ b/rules/libsamplerate.in
@@ -0,0 +1,8 @@
+## SECTION=multimedia_libs
+
+config LIBSAMPLERATE
+	bool
+	prompt "libsamplerate"
+	help
+	  Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio.
+	  More information, source and docs: http://www.mega-nerd.com/SRC/
diff --git a/rules/libsamplerate.make b/rules/libsamplerate.make
new file mode 100644
index 0000000..ff23cfd
--- /dev/null
+++ b/rules/libsamplerate.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 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.
+#
+
+PACKAGES-$(PTXCONF_LIBSAMPLERATE) += libsamplerate
+
+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+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+# --disable-cpu-clip      disable tricky cpu specific clipper
+# CPU clipping would allow src_float_to_short_array() to omit overflow
+# and underflow checks. But the configure check for this CPU feature runs
+# on the build host, not on the target. So it might be false-positive.
+# Not the case on my build host here (x86_64, Intel Core2), as detected
+# as no (=> disabled), but to be safe, forcefully disable it.
+# Note: There is no "force enable" counterpart.
+
+LIBSAMPLERATE_CONF_TOOL	:= autoconf
+LIBSAMPLERATE_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-cpu-clip
+
+# ----------------------------------------------------------------------------
+# 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
-- 
2.1.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2015-04-17 22:49 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 ` [ptxdist] [PATCH 1/2] libsamplerate: add package Andreas Pretzsch
2013-09-09  8:44   ` Michael Olbrich
2015-04-17 22:22     ` Andreas Pretzsch
2015-04-17 22:48   ` Andreas Pretzsch [this message]
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=1429310937-8604-1-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