mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Markus Pargmann <mpa@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] Gstreamer: add fixed-point Vorbis decoding
Date: Mon, 25 Nov 2013 16:02:18 +0100	[thread overview]
Message-ID: <1385391739-23075-2-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1385391739-23075-1-git-send-email-jbe@pengutronix.de>

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>
---
 ...001-Buildsystem-remove-extended-OGG-check.patch | 27 ++++++++++++
 patches/libtremor-1.0.3/autogen.sh                 | 18 ++++++++
 patches/libtremor-1.0.3/series                     |  4 ++
 rules/libtremor.in                                 |  9 ++++
 rules/libtremor.make                               | 51 ++++++++++++++++++++++
 5 files changed, 109 insertions(+)
 create mode 100644 patches/libtremor-1.0.3/0001-Buildsystem-remove-extended-OGG-check.patch
 create mode 100755 patches/libtremor-1.0.3/autogen.sh
 create mode 100644 patches/libtremor-1.0.3/series
 create mode 100644 rules/libtremor.in
 create mode 100644 rules/libtremor.make

diff --git a/patches/libtremor-1.0.3/0001-Buildsystem-remove-extended-OGG-check.patch b/patches/libtremor-1.0.3/0001-Buildsystem-remove-extended-OGG-check.patch
new file mode 100644
index 0000000..ab5d3ec
--- /dev/null
+++ b/patches/libtremor-1.0.3/0001-Buildsystem-remove-extended-OGG-check.patch
@@ -0,0 +1,27 @@
+From: Markus Pargmann <mpa@pengutronix.de>
+Date: Mon, 25 Nov 2013 15:40:48 +0100
+Subject: [PATCH] Buildsystem: remove extended OGG check
+
+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 100755
index 0000000..df78c38
--- /dev/null
+++ b/patches/libtremor-1.0.3/autogen.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -e
+
+aclocal $ACLOCAL_FLAGS
+
+libtoolize \
+	--force \
+	--copy
+
+autoreconf \
+	--force \
+	--install \
+	--warnings=cross \
+	--warnings=syntax \
+	--warnings=obsolete \
+	--warnings=unsupported
+
diff --git a/patches/libtremor-1.0.3/series b/patches/libtremor-1.0.3/series
new file mode 100644
index 0000000..cada79a
--- /dev/null
+++ b/patches/libtremor-1.0.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Buildsystem-remove-extended-OGG-check.patch
+# fbfe1361540b4eee364d16d62a9c65fe  - git-ptx-patches magic
diff --git a/rules/libtremor.in b/rules/libtremor.in
new file mode 100644
index 0000000..35f48c9
--- /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 0000000..878407d
--- /dev/null
+++ b/rules/libtremor.make
@@ -0,0 +1,51 @@
+# -*-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		:= $(call ptx/mirror, GNU, libtool/$(LIBTREMOR).$(LIBTREMOR_SUFFIX))
+LIBTREMOR_SOURCE	:= $(SRCDIR)/$(LIBTREMOR).$(LIBTREMOR_SUFFIX)
+LIBTREMOR_DIR		:= $(BUILDDIR)/$(LIBTREMOR)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBTREMOR_PATH	:= PATH=$(CROSS_PATH)
+LIBTREMOR_ENV 	:= $(CROSS_ENV)
+LIBTREMOR_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# 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
-- 
1.8.4.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-11-25 15:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 15:02 [ptxdist] [PATCH] add Vorbis fixed-point decoder Juergen Beisert
2013-11-25 15:02 ` Juergen Beisert [this message]
2013-11-25 15:02 ` [ptxdist] [PATCH 2/2] Gstreamer: add support for fixed-point Vorbis decoding Juergen Beisert

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=1385391739-23075-2-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=mpa@pengutronix.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