Skip to contentSkip to conversation

openal: New package

PATCH New André Hentschel 2 participants 3 messages Oct 3, 2015 – Oct 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openal: New package

---
 package/Config.in          |  1 +
 package/openal/Config.in   | 16 ++++++++++++++++
 package/openal/openal.hash |  2 ++
 package/openal/openal.mk   | 26 ++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)
 create mode 100644 package/openal/Config.in
 create mode 100644 package/openal/openal.hash
 create mode 100644 package/openal/openal.mk
package/Config.in +1 -0
index 79cbbe6..6d15dd1 100644
@@ -722,6 +722,7 @@ menu "Audio/Sound"
 	source "package/opencore-amr/Config.in"
 	source "package/opus/Config.in"
 	source "package/opusfile/Config.in"
+	source "package/openal/Config.in"
 	source "package/portaudio/Config.in"
 	source "package/speex/Config.in"
 	source "package/taglib/Config.in"
package/openal/Config.in new file +16 -0
new file mode 100644
index 0000000..8eb177b
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_OPENAL
+	bool "openal"
+	# OpenAL needs a backend
+	depends on BR2_PACKAGE_ALSA_LIB || \
+	           BR2_PACKAGE_PORTAUDIO || \
+	           BR2_PACKAGE_PULSEAUDIO
+	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.
+
+comment "openal needs a backend"
+	depends on !BR2_PACKAGE_ALSA_LIB && \
+	           !BR2_PACKAGE_PORTAUDIO && \
+	           !BR2_PACKAGE_PULSEAUDIO
package/openal/openal.hash new file +2 -0
new file mode 100644
index 0000000..b28b2e2
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	2f3dcd313fe26391284fbf8596863723f99c65d6c6846dccb48e79cadaf40d5f  openal-soft-1.16.0.tar.bz2
package/openal/openal.mk new file +26 -0
new file mode 100644
index 0000000..a67d675
@@ -0,0 +1,26 @@
+################################################################################
+#
+# openal
+#
+################################################################################
+
+OPENAL_VERSION = 1.16.0
+OPENAL_SOURCE = openal-soft-$(OPENAL_VERSION).tar.bz2
+OPENAL_SITE = http://kcat.strangesoft.net/openal-releases/
+OPENAL_LICENSE = LGPL
+OPENAL_LICENSE_FILES = COPYING
+OPENAL_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+OPENAL_DEPENDENCIES += alsa-lib
+endif
+
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+OPENAL_DEPENDENCIES += portaudio
+endif
+
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+OPENAL_DEPENDENCIES += pulseaudio
+endif
+
+$(eval $(cmake-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 openal: New package

Hi Andr?,

several months ago I started hacking an openal package myself but never finished it. Here I will compare my package to your version.

Am Sat, 03 Oct 2015 19:21:53 +0200 schrieb Andr? Hentschel:

Quoted 12 lines
package/openal/Config.in new file +6 -0
new file mode 100644
index 0000000..8eb177b
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_OPENAL
+	bool "openal"
+	# OpenAL needs a backend
+	depends on BR2_PACKAGE_ALSA_LIB || \
+	           BR2_PACKAGE_PORTAUDIO || \
+	           BR2_PACKAGE_PULSEAUDIO

package/openal/Config.in line 16

Quoted 10 lines
package/openal/Config.in new file +10 -0
+	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.
+
+comment "openal needs a backend"
+	depends on !BR2_PACKAGE_ALSA_LIB && \
+	           !BR2_PACKAGE_PORTAUDIO && \
+	           !BR2_PACKAGE_PULSEAUDIO

What about having a choice option defaulting to, for example, alsa?

Please add

http://kcat.strangesoft.net/openal.html

to Config.in. Openal also needs this

depends on BR2_TOOLCHAIN_HAS_THREADS

comment "openal needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS

Did you test a static build? I have this in openal.mk:

ifeq ($(BR2_STATIC_LIBS),y)
OPENAL_CONF_OPTS += -DLIBTYPE=STATIC
endif

Regards, Bernd

#2 lore raw

PATCH 1/1 openal: New package

Am 04.10.2015 um 10:12 schrieb Bernd Kuhls:

Quoted 23 lines

Hi Andr?,

several months ago I started hacking an openal package myself but never finished it. Here I will compare my package to your version.

Am Sat, 03 Oct 2015 19:21:53 +0200 schrieb Andr? Hentschel:

Quoted 16 lines
package/openal/Config.in new file +10 -0
new file mode 100644
index 0000000..8eb177b
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_OPENAL
+	bool "openal"
+	# OpenAL needs a backend
+	depends on BR2_PACKAGE_ALSA_LIB || \
+	           BR2_PACKAGE_PORTAUDIO || \
+	           BR2_PACKAGE_PULSEAUDIO
+	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
Quoted 8 lines

package/openal/Config.in line 16

Quoted 6 lines
package/openal/Config.in new file +6 -0
+	  the API.
+
+comment "openal needs a backend"
+	depends on !BR2_PACKAGE_ALSA_LIB && \
+	           !BR2_PACKAGE_PORTAUDIO && \
+	           !BR2_PACKAGE_PULSEAUDIO

What about having a choice option defaulting to, for example, alsa?

I'll think about it

Quoted 3 lines

Please add

http://kcat.strangesoft.net/openal.html

Done locally

Quoted 4 lines

to Config.in. Openal also needs this

depends on BR2_TOOLCHAIN_HAS_THREADS

Quoted 8 lines

comment "openal needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS

Did you test a static build? I have this in openal.mk:

ifeq ($(BR2_STATIC_LIBS),y)
OPENAL_CONF_OPTS += -DLIBTYPE=STATIC
endif

Done that locally, thanks.
I'll reiterate in a week hopefully.
Thank you very much for the comments!