[weasel-commit] Source: sox=14.3.0-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Mon, 14 Jun 2010 12:00:06 -0400

================================
sox:source=14.3.0-1
cvc rdiff sox -1 /weasel.rpath.org@wgl:3-devel/14.3.0-1
================================
14.3.0-1 Filip Brcic (brcha@xxxxxxxxxxxx) Mon Jun 14 11:59:04 2010
    sox 14.3.0

sox-14.3.0.tar.gz: new
sox.recipe: new
--- /dev/null
+++ sox.recipe
@@ -0,0 +67 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Sox(AutoPackageRecipe):
+    name = 'sox'
+    version = '14.3.0'
+
+    buildRequires = [
+        'alsa-lib:devel', 'lame:devel', 'flac:devel', 'libmad:devel',
+        'libsndfile:devel', 'libvorbis:devel', 'libogg:devel',
+        'libao:devel', 'ffmpeg:devel', 'ladspa-sdk:devel',
+        'gsm:devel', 'libid3tag:devel', 'libpng:devel',
+        'pulseaudio:devel', 'wavpack:devel', 'pkg-config:devel',
+        'file:devel', 'libtool:devel', 'libtool:runtime',
+        ]
+    runtimeRequires = [
+        'lame:runtime', 'flac:runtime', 'libsndfile:runtime',
+        'ffmpeg:runtime', 'ladspa-sdk:runtime', 'gsm:runtime',
+        'pulseaudio:runtime', 'wavpack:runtime',
+        ]
+    buildRequires.extend(runtimeRequires)
+
+    shortDesc  = 'The swiss army knife of sound processing programs'
+    longDesc   = """
+SoX is a cross-platform (Windows, Linux, MacOS X, etc.) command line
+utility that can convert various formats of computer audio files in to
+other formats. It can also apply various effects to these sound files,
+and, as an added bonus, SoX can play and record audio files on most
+platforms.
+"""
+    url        = 'http://sox.sourceforge.net'
+    licenses   = [ 'LGPL-2.1' ]
+    categories = [ 'Media/Sound' ]
+
+    def unpack(r):
+        r.addArchive('mirror://sourceforge/sox/')
+
+    def configure(r):
+        # Fixes wav segfaults
+        r.macros.cflags += ' -fsigned-char'
+
+        r.Configure(
+            ' --with-alsa'
+            ' --disable-debug'
+            ' --with-ao'
+            ' --with-oss'
+            ' --with-lame'
+            ' --with-mad'
+            ' --with-sndfile'
+            ' --with-flac'
+            ' --with-oggvorbis'
+            ' --with-ffmpeg'
+            ' --with-ladspa'
+            ' --with-id3tag'
+            ' --without-amrwb'
+            ' --without-amrnb'
+            ' --with-png'
+            ' --with-pulseaudio'
+            ' --with-wavpack'
+            ' --with-distro="Weasel"'
+            )
+
+    def policy(r):
+        for req in r.runtimeRequires:
+            r.Requires(req, '%(bindir)s/')


Committed by: brcha

Other related posts: