summaryrefslogtreecommitdiffstats
path: root/package/portaudio
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-04-30 03:48:16 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-05-05 23:41:11 +0200
commit5d6f32878f707f4c28fe09d02e960d851c76e3c3 (patch)
treefd1da7d454eb2c305e4e84ab55e2a1451f0857c4 /package/portaudio
parent84d589a963d902849b7022091e97ec71c38ed82e (diff)
package/multimedia: move audio libraries out
Move audio libraries out of the Audio and Video category into the Libraries/Audio one. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/portaudio')
-rw-r--r--package/portaudio/Config.in29
-rw-r--r--package/portaudio/portaudio.mk21
2 files changed, 50 insertions, 0 deletions
diff --git a/package/portaudio/Config.in b/package/portaudio/Config.in
new file mode 100644
index 000000000..f91acc0a2
--- /dev/null
+++ b/package/portaudio/Config.in
@@ -0,0 +1,29 @@
+config BR2_PACKAGE_PORTAUDIO
+ bool "portaudio"
+ help
+ PortAudio is a free, cross-platform, open-source,
+ audio I/O library.
+
+ http://www.portaudio.com/
+
+if BR2_PACKAGE_PORTAUDIO
+
+config BR2_PACKAGE_PORTAUDIO_ALSA
+ bool "alsa support"
+ select BR2_PACKAGE_ALSA_LIB
+ default y
+ help
+ Compile with ALSA support.
+
+config BR2_PACKAGE_PORTAUDIO_OSS
+ bool "oss support"
+ help
+ Compile with OSS support.
+
+config BR2_PACKAGE_PORTAUDIO_CXX
+ bool "C++ bindings"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Enables C++ bindings.
+
+endif # BR2_PACKAGE_PORTAUDIO
diff --git a/package/portaudio/portaudio.mk b/package/portaudio/portaudio.mk
new file mode 100644
index 000000000..a82473593
--- /dev/null
+++ b/package/portaudio/portaudio.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# portaudio
+#
+################################################################################
+
+PORTAUDIO_VERSION = V19
+PORTAUDIO_SITE = http://www.portaudio.com/archives
+PORTAUDIO_SOURCE = pa_stable_v19_20110326.tgz
+PORTAUDIO_INSTALL_STAGING = YES
+PORTAUDIO_MAKE = $(MAKE1)
+
+PORTAUDIO_DEPENDENCIES = \
+ $(if $(BR2_PACKAGE_PORTAUDIO_WITH_ALSA),alsa-lib)
+
+PORTAUDIO_CONF_OPT = \
+ $(if $(BR2_PACKAGE_PORTAUDIO_ALSA),--with-alsa,--without-alsa) \
+ $(if $(BR2_PACKAGE_PORTAUDIO_OSS),--with-oss,--without-oss) \
+ $(if $(BR2_PACKAGE_PORTAUDIO_CXX),--enable-cxx,--disable-cxx)
+
+$(eval $(call AUTOTARGETS))