libao: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 11 Jan 2011 13:45:30 +0000 (10:45 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 Jan 2011 14:16:21 +0000 (15:16 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/libao/Config.in [new file with mode: 0644]
package/multimedia/libao/libao.mk [new file with mode: 0644]

index da50dbb12a09c4fb4ec3c5e0f486643879183ad3..5c1111da1d61ee947780e8ec26ccf1f6ebf280b5 100644 (file)
@@ -10,6 +10,7 @@ source "package/multimedia/gst-plugins-base/Config.in"
 source "package/multimedia/gst-plugins-good/Config.in"
 source "package/multimedia/gst-plugins-bad/Config.in"
 source "package/multimedia/gst-plugins-ugly/Config.in"
+source "package/multimedia/libao/Config.in"
 source "package/multimedia/libcdaudio/Config.in"
 source "package/multimedia/libdvdread/Config.in"
 source "package/multimedia/libdvdnav/Config.in"
diff --git a/package/multimedia/libao/Config.in b/package/multimedia/libao/Config.in
new file mode 100644 (file)
index 0000000..3c99ab9
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBAO
+       bool "libao"
+       help
+         Libao is a cross-platform audio library that allows programs
+         to output audio using a simple API on a wide variety of platforms.
+
+         http://www.xiph.org/ao/
diff --git a/package/multimedia/libao/libao.mk b/package/multimedia/libao/libao.mk
new file mode 100644 (file)
index 0000000..ee02d18
--- /dev/null
@@ -0,0 +1,21 @@
+#############################################################
+#
+# libao
+#
+#############################################################
+
+LIBAO_VERSION = 1.0.0
+LIBAO_SITE = http://downloads.xiph.org/releases/ao
+LIBAO_DEPENDENCIES = host-pkg-config
+LIBAO_INSTALL_STAGING = YES
+LIBAO_CONF_OPT = --disable-esd --disable-wmm --disable-arts \
+                       --disable-nas --disable-pulse
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+LIBAO_DEPENDENCIES += alsa-lib
+LIBAO_CONF_OPT += --enable-alsa --enable-alsa-mmap
+else
+LIBAO_CONF_OPT += --disable-alsa
+endif
+
+$(eval $(call AUTOTARGETS,package/multimedia,libao))