mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rules: add sox
@ 2012-03-21  8:34 Wolfram Sang
  2012-03-24  9:06 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2012-03-21  8:34 UTC (permalink / raw)
  To: ptxdist; +Cc: Kjell Ove Røte

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-24  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21  8:34 [ptxdist] [PATCH] rules: add sox Wolfram Sang
2012-03-24  9:06 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox