summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2013-11-25 16:02:18 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-12-03 10:08:17 +0100
commit54ed711a7d5d22208711ea7d961ac86b0d239960 (patch)
treedb74992eb059517c695235228cb3ac497d7d7b17
parent668c3e0634ab68c7fdccff1fe9ca1bf546a4ce87 (diff)
downloadptxdist-54ed711a7d5d22208711ea7d961ac86b0d239960.tar.gz
ptxdist-54ed711a7d5d22208711ea7d961ac86b0d239960.tar.xz
libtremor: add new package
libtremor is a software library that decodes the Vorbis audio format in fixed-point only for those platforms without floating point operations. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/libtremor-1.0.3/0001-HACK-configure.in-remove-extended-OGG-check.patch31
l---------patches/libtremor-1.0.3/autogen.sh1
-rw-r--r--patches/libtremor-1.0.3/series4
-rw-r--r--rules/libtremor.in9
-rw-r--r--rules/libtremor.make52
5 files changed, 97 insertions, 0 deletions
diff --git a/patches/libtremor-1.0.3/0001-HACK-configure.in-remove-extended-OGG-check.patch b/patches/libtremor-1.0.3/0001-HACK-configure.in-remove-extended-OGG-check.patch
new file mode 100644
index 000000000..d0a40ef2a
--- /dev/null
+++ b/patches/libtremor-1.0.3/0001-HACK-configure.in-remove-extended-OGG-check.patch
@@ -0,0 +1,31 @@
+From: Markus Pargmann <mpa@pengutronix.de>
+Date: Mon, 25 Nov 2013 15:40:48 +0100
+Subject: [PATCH] HACK: configure.in: remove extended OGG check
+
+The tar-ball contains no configure script and it doesn't define
+XIPH_PATH_OGG anywhere.
+It's not needed here so just remove it.
+
+Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
+Tested-by: Juergen Beisert <jbe@pengutronix.de>
+---
+ configure.in | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index e7f5690..6eaf6e4 100644
+--- a/configure.in
++++ b/configure.in
+@@ -119,11 +119,7 @@ fi
+ if test "x$HAVE_OGG" = "xno"
+ then
+ dnl fall back to the old school test
+- XIPH_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))
+- libs_save=$LIBS
+- LIBS="$OGG_LIBS"
+- AC_CHECK_FUNC(oggpack_writealign, , AC_MSG_ERROR(Ogg >= 1.0 required !))
+- LIBS=$libs_save
++ AC_MSG_ERROR(must have Ogg installed!)
+ fi
+
+ dnl --------------------------------------------------
diff --git a/patches/libtremor-1.0.3/autogen.sh b/patches/libtremor-1.0.3/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/libtremor-1.0.3/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh \ No newline at end of file
diff --git a/patches/libtremor-1.0.3/series b/patches/libtremor-1.0.3/series
new file mode 100644
index 000000000..75ee87212
--- /dev/null
+++ b/patches/libtremor-1.0.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-HACK-configure.in-remove-extended-OGG-check.patch
+# 8b861fdf14ed5f27dce4c67d75786cf3 - git-ptx-patches magic
diff --git a/rules/libtremor.in b/rules/libtremor.in
new file mode 100644
index 000000000..35f48c994
--- /dev/null
+++ b/rules/libtremor.in
@@ -0,0 +1,9 @@
+## SECTION=multimedia_sound
+config LIBTREMOR
+ tristate
+ prompt "libtremor"
+ select LIBOGG
+ help
+ libtremor is a software library that decodes the Vorbis audio format
+ in fixed-point only for those platforms without floating point
+ operations.
diff --git a/rules/libtremor.make b/rules/libtremor.make
new file mode 100644
index 000000000..7889d5664
--- /dev/null
+++ b/rules/libtremor.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Markus Pargmann <mpa@pengutronix.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_LIBTREMOR) += libtremor
+
+LIBTREMOR_VERSION := 1.0.3
+LIBTREMOR_MD5 := 31074f67ca36a3f8e6c8225c9126cde0
+LIBTREMOR := libtremor-$(LIBTREMOR_VERSION)
+LIBTREMOR_SUFFIX := tar.gz
+LIBTREMOR_URL := http://www.pengutronix.de/software/ptxdist/temporary-src/$(LIBTREMOR).$(LIBTREMOR_SUFFIX)
+LIBTREMOR_SOURCE := $(SRCDIR)/$(LIBTREMOR).$(LIBTREMOR_SUFFIX)
+LIBTREMOR_DIR := $(BUILDDIR)/$(LIBTREMOR)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBTREMOR_CONF_TOOL := autoconf
+LIBTREMOR_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-static
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtremor.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libtremor)
+ @$(call install_fixup, libtremor,PRIORITY,optional)
+ @$(call install_fixup, libtremor,SECTION,base)
+ @$(call install_fixup, libtremor,AUTHOR,"Markus Pargmann <mpa@pengutronix.de>")
+ @$(call install_fixup, libtremor,DESCRIPTION,missing)
+
+ @$(call install_lib, libtremor, 0, 0, 0644, libvorbisidec)
+
+ @$(call install_finish, libtremor)
+
+ @$(call touch)
+
+# vim: syntax=make