openal: New package
authorAndré Hentschel <nerv@dawncrow.de>
Mon, 7 Dec 2015 21:01:08 +0000 (22:01 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 13 Dec 2015 14:00:30 +0000 (15:00 +0100)
[Thomas: remove bogus comment about thread dependency.]

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/openal/Config.in [new file with mode: 0644]
package/openal/openal.hash [new file with mode: 0644]
package/openal/openal.mk [new file with mode: 0644]

index 00aedad8439530adade4dda887d4a9c2f719664d..f0e0cddf87f84fed76135a30b913df2aa1b6b194 100644 (file)
@@ -728,6 +728,7 @@ menu "Audio/Sound"
        source "package/libsoxr/Config.in"
        source "package/libvorbis/Config.in"
        source "package/mp4v2/Config.in"
+       source "package/openal/Config.in"
        source "package/opencore-amr/Config.in"
        source "package/opus/Config.in"
        source "package/opusfile/Config.in"
diff --git a/package/openal/Config.in b/package/openal/Config.in
new file mode 100644 (file)
index 0000000..0f9d03d
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_OPENAL
+       bool "openal"
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       help
+         OpenAL provides capabilities for playing audio in a virtual
+         3D environment. Distance attenuation, doppler shift, and
+         directional sound emitters are among the features handled by
+         the API.
+
+         http://kcat.strangesoft.net/openal.html
+
+comment "openal needs a toolchain w/ threads, C++"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
diff --git a/package/openal/openal.hash b/package/openal/openal.hash
new file mode 100644 (file)
index 0000000..26a9919
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 5e93336de2e7c50f3a01beba51861d6f61c3e4045a896191dc806591e46264d1 openal-soft-1.17.0.tar.bz2
diff --git a/package/openal/openal.mk b/package/openal/openal.mk
new file mode 100644 (file)
index 0000000..ff1cc3d
--- /dev/null
@@ -0,0 +1,39 @@
+################################################################################
+#
+# openal
+#
+################################################################################
+
+OPENAL_VERSION = 1.17.0
+OPENAL_SOURCE = openal-soft-$(OPENAL_VERSION).tar.bz2
+OPENAL_SITE = http://kcat.strangesoft.net/openal-releases
+OPENAL_LICENSE = LGPLv2+
+OPENAL_LICENSE_FILES = COPYING
+OPENAL_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+OPENAL_DEPENDENCIES += alsa-lib
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_ALSA=ON
+else
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_ALSA=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+OPENAL_DEPENDENCIES += portaudio
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PORTAUDIO=ON
+else
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PORTAUDIO=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+OPENAL_DEPENDENCIES += pulseaudio
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PULSEAUDIO=ON
+else
+OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PULSEAUDIO=OFF
+endif
+
+ifeq ($(BR2_STATIC_LIBS),y)
+OPENAL_CONF_OPTS += -DLIBTYPE=STATIC
+endif
+
+$(eval $(cmake-package))