Signed-off-by: Kjell Ove Røte <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
---
 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 <[email protected]>
+# Copyright (C) 2012 by Wolfram Sang <[email protected]>
+#
+# 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 
<[email protected]>")
+       @$(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
[email protected]

Reply via email to