mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] rules: add sox
Date: Sat, 24 Mar 2012 10:06:31 +0100	[thread overview]
Message-ID: <20120324090631.GA24724@pengutronix.de> (raw)
In-Reply-To: <1332318859-22409-1-git-send-email-w.sang@pengutronix.de>



On Wed, Mar 21, 2012 at 09:34:19AM +0100, Wolfram Sang wrote:
> 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

use ptx/endis

> +
> +ifdef PTXCONF_SOX_MP3
> +SOX_CONF_OPT += --with-mad
> +else
> +SOX_CONF_OPT += --without-mad
> +endif

use ptx/wwo

Also, you need to either add the correct dependencies for everything else,
or explicitly disable things.

Michael

> +
> +# ----------------------------------------------------------------------------
> +# 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

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2012-03-24  9:06 UTC|newest]

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

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=20120324090631.GA24724@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --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