[weasel-commit] Source: libao=0.8.8-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sun, 13 Jun 2010 20:05:56 -0400

================================
libao:source=0.8.8-1
cvc rdiff libao -1 /weasel.rpath.org@wgl:3-devel/0.8.8-1
================================
0.8.8-1 Filip Brcic (brcha@xxxxxxxxxxxx) Sun Jun 13 20:05:33 2010
    libao 0.8.8

libao.recipe: new
--- /dev/null
+++ libao.recipe
@@ -0,0 +48 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Libao(AutoPackageRecipe):
+    name = 'libao'
+    version = '0.8.8'
+
+    buildRequires = [
+        'alsa-lib:devel', 'pulseaudio:devel', 'pkg-config:devel',
+        ]
+    runtimeRequires = [
+        'alsa-lib:runtime', 'pulseaudio:runtime',
+        ]
+    buildRequires.extend(runtimeRequires)
+
+    shortDesc  = 'the audio output library'
+    longDesc   = """
+Libao is a cross-platform audio library that allows programs to output
+audio using a simple API on a wide variety of platforms.
+"""
+    url        = 'http://www.xiph.org/ao'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Media/Libraries' ]
+
+    def unpack(r):
+        r.addArchive('http://downloads.xiph.org/releases/ao/')
+
+        r.addPatch('libao-0.8.8-alsa09-buffertime-milliseconds.patch')
+
+    def configure(r):
+        r.Configure(
+            ' --enable-shared'
+            ' --disable-static'
+            ' --enable-alsa09'
+            ' --enable-alsa09-mmap'
+            ' --disable-arts'
+            ' --disable-esd'
+            ' --disable-nas' # reenable if nas is ever built
+            ' --enable-pulse'
+            )
+
+    def policy(r):
+        r.Remove('%(docdir)s/libao*', recursive=True)
+        r.Doc('AUTHORS', 'CHANGES', 'README', 'TODO')
+
+        r.Doc('doc/*.{html,css,c}', dir='html')

libao-0.8.8-alsa09-buffertime-milliseconds.patch: new
--- /dev/null
+++ libao-0.8.8-alsa09-buffertime-milliseconds.patch
@@ -0,0 +12 @@
+diff -ur libao-0.8.8.orig/src/plugins/alsa09/ao_alsa09.c 
libao-0.8.8/src/plugins/alsa09/ao_alsa09.c
+--- libao-0.8.8.orig/src/plugins/alsa09/ao_alsa09.c    2007-05-24 
12:19:07.000000000 +0300
++++ libao-0.8.8/src/plugins/alsa09/ao_alsa09.c 2007-11-27 20:12:27.000000000 
+0200
+@@ -165,7 +165,7 @@
+                       return 0;
+       }
+       else if (!strcmp(key, "buffer_time"))
+-              internal->buffer_time = atoi(value);
++              internal->buffer_time = atoi(value) * 1000;
+       else if (!strcmp(key, "period_time"))
+               internal->period_time = atoi(value);
+       else if (!strcmp(key,"use_mmap")) {

libao-0.8.8.tar.gz: new

Committed by: brcha

Other related posts: