From: Michael Grzeschik <[email protected]> Signed-off-by: Michael Grzeschik <[email protected]> --- rules/sox.in | 6 ++ rules/sox.make | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 148 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..ae43a55 --- /dev/null +++ b/rules/sox.make @@ -0,0 +1,142 @@ +# -*-makefile-*- +# $Id: template 2606 2005-05-10 21:49:41Z rsc $ +# +# Copyright (C) 2005 by Bjoern Buerger <[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_get: $(STATEDIR)/sox.get + +$(STATEDIR)/sox.get: $(sox_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(SOX_SOURCE): + @$(call targetinfo, $@) + @$(call get, SOX) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +sox_extract: $(STATEDIR)/sox.extract + +$(STATEDIR)/sox.extract: $(sox_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(SOX_DIR)) + @$(call extract, SOX) + @$(call patchin, SOX) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +sox_prepare: $(STATEDIR)/sox.prepare + +SOX_PATH := PATH=$(CROSS_PATH) +SOX_ENV := $(CROSS_ENV) + +# +# autoconf +# +SOX_AUTOCONF := $(CROSS_AUTOCONF_USR) \ + --disable-gomp + + + +$(STATEDIR)/sox.prepare: $(sox_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(SOX_DIR)/config.cache) + cd $(SOX_DIR) && \ + $(SOX_PATH) $(SOX_ENV) \ + ./configure $(SOX_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +sox_compile: $(STATEDIR)/sox.compile + +$(STATEDIR)/sox.compile: $(sox_compile_deps_default) + @$(call targetinfo, $@) + cd $(SOX_DIR) && $(SOX_ENV) $(SOX_PATH) make + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +sox_install: $(STATEDIR)/sox.install + +$(STATEDIR)/sox.install: $(sox_install_deps_default) + @$(call targetinfo, $@) + @$(call install, SOX) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# 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, 0755, -, /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, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +sox_clean: + rm -rf $(STATEDIR)/sox.* + rm -rf $(PKGDIR)/sox_* + rm -rf $(SOX_DIR) + +# vim: syntax=make -- 1.7.0 -- ptxdist mailing list [email protected]
