mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Wolfram Sang <w.sang@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Kjell Ove Røte" <Kjell.Ove.Rote@zenitel.com>
Subject: [ptxdist] [PATCH] rules: add sox
Date: Wed, 21 Mar 2012 09:34:19 +0100	[thread overview]
Message-ID: <1332318859-22409-1-git-send-email-w.sang@pengutronix.de> (raw)

Signed-off-by: Kjell Ove Røte <Kjell.Ove.Rote@zenitel.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
 rules/sox.in   |   22 ++++++++++++++++++
 rules/sox.make |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 rules/sox.in
 create mode 100644 rules/sox.make

diff --git a/rules/sox.in b/rules/sox.in
new file mode 100644
index 0000000..2d38da0
--- /dev/null
+++ b/rules/sox.in
@@ -0,0 +1,22 @@
+## SECTION=multimedia_sound
+
+config SOX
+	tristate
+	prompt "sox                              "
+	select LIBMAD if SOX_MP3
+	help
+	  SoX is the Swiss Army Knife of sound processing utilities. It can
+	  convert audio files to other popular audio file types and also apply
+	  sound effects and filters during the conversion.
+
+if SOX
+
+config SOX_GOMP
+	bool
+	prompt "GOMP support"
+
+config SOX_MP3
+	bool
+	prompt "MP3 support"
+
+endif
diff --git a/rules/sox.make b/rules/sox.make
new file mode 100644
index 0000000..ef4290f
--- /dev/null
+++ b/rules/sox.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Kjell Ove Rote <kjellove.rote@zenitel.com>
+# Copyright (C) 2012 by Wolfram Sang <w.sang@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_SOX) += sox
+
+#
+# Paths and names
+#
+SOX_VERSION	:= 14.3.2
+SOX_MD5		:= f6e1999b05d9b0cc9bb47ce8d3208dee
+SOX		:= sox-$(SOX_VERSION)
+SOX_SUFFIX	:= tar.bz2
+SOX_URL		:= http://sourceforge.net/projects/sox/files/sox/$(SOX_VERSION)/$(SOX).$(SOX_SUFFIX)
+SOX_SOURCE	:= $(SRCDIR)/$(SOX).$(SOX_SUFFIX)
+SOX_DIR		:= $(BUILDDIR)/$(SOX)
+SOX_LICENSE	:= GPLv2+, LGPLv2.1+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SOX_CONF_TOOL	:= autoconf
+SOX_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
+
+ifdef PTXCONF_SOX_GOMP
+SOX_CONF_OPT += --enable-gomp
+else
+SOX_CONF_OPT += --disable-gomp
+endif
+
+ifdef PTXCONF_SOX_MP3
+SOX_CONF_OPT += --with-mad
+else
+SOX_CONF_OPT += --without-mad
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sox.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sox)
+	@$(call install_fixup, sox ,PRIORITY, optional)
+	@$(call install_fixup, sox ,SECTION, base)
+	@$(call install_fixup, sox, AUTHOR, "Kjell Ove Rote <kjellove.rote@zenitel.com>")
+	@$(call install_fixup, sox, DESCRIPTION, "SoX, the Swiss Army knife of sound processing programs")
+
+	@$(call install_copy, sox, 0, 0, 0755, -, /usr/bin/sox)
+	@$(call install_lib, sox, 0, 0, 0644, libsox)
+
+	@$(call install_finish, sox)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.7.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2012-03-21  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21  8:34 Wolfram Sang [this message]
2012-03-24  9:06 ` Michael Olbrich

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=1332318859-22409-1-git-send-email-w.sang@pengutronix.de \
    --to=w.sang@pengutronix.de \
    --cc=Kjell.Ove.Rote@zenitel.com \
    --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