sox is the GNU audio army knife

Signed-off-by: Michael Grzeschik <[email protected]>
---
 rules/sox.in   |    6 ++++
 rules/sox.make |   75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 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..38fe56d
--- /dev/null
+++ b/rules/sox.in
@@ -0,0 +1,6 @@
+## SECTION=multimedia_sound
+config SOX
+       tristate
+       prompt "sox                        "
+       help
+         The GNU audio army knife
diff --git a/rules/sox.make b/rules/sox.make
new file mode 100644
index 0000000..658271c
--- /dev/null
+++ b/rules/sox.make
@@ -0,0 +1,75 @@
+#
+# Copyright (C) 2010 by Michael Grzeschik <[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.0
+SOX            := sox-$(SOX_VERSION)
+SOX_SUFFIX     := tar.gz
+SOX_URL                := $(PTXCONF_SETUP_SFMIRROR)/sox/$(SOX).$(SOX_SUFFIX)
+SOX_SOURCE     := $(SRCDIR)/$(SOX).$(SOX_SUFFIX)
+SOX_DIR                := $(BUILDDIR)/$(SOX)
+
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SOX_SOURCE):
+       @$(call targetinfo)
+       @$(call get, SOX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+SOX_AUTOCONF := \
+       $(CROSS_AUTOCONF_USR) \
+       --disable-gomp
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+sox_targetinstall: $(STATEDIR)/sox.targetinstall
+
+$(STATEDIR)/sox.targetinstall: $(sox_targetinstall_deps_default)
+       @$(call targetinfo)
+
+       @$(call install_init, sox)
+       @$(call install_fixup, sox,PACKAGE,sox)
+       @$(call install_fixup, sox,PRIORITY,optional)
+       @$(call install_fixup, sox,VERSION,$(SOX_VERSION))
+       @$(call install_fixup, sox,SECTION,base)
+       @$(call install_fixup, sox,AUTHOR,"Michael Grzeschik 
<[email protected]>")
+       @$(call install_fixup, sox,DEPENDS,)
+       @$(call install_fixup, sox,DESCRIPTION,missing)
+
+       @$(call install_copy, sox, 0, 0, 0755, -, /usr/bin/sox)
+       @$(call install_link, sox, sox, /usr/bin/soxi)
+       @$(call install_link, sox, sox, /usr/bin/play)
+       @$(call install_link, sox, sox, /usr/bin/rec)
+
+       @$(call install_copy, sox, 0, 0, 0644, -, /usr/lib/libsox.so.1.0.0)
+       @$(call install_link, sox, libsox.so.1.0.0, /usr/lib/libsox.so.1)
+       @$(call install_link, sox, libsox.so.1.0.0, /usr/lib/libsox.so)
+
+       @$(call install_finish, sox)
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.7.0


-- 
ptxdist mailing list
[email protected]

Reply via email to