initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# openal can:
|
||||
# - use __atomic_*() intrinsics when available
|
||||
# - otherwise use __sync_*() intrinsics when available. It needs the
|
||||
# 4-byte ones on 32 bits architectures, and the 4-byte and 8-byte
|
||||
# one on 64 bits architecture
|
||||
# - it also provides its one implementation of atomic operations on
|
||||
# x86 and x86_64, but we dont take those into account since in most
|
||||
# situations __atomic_*() or __sync_*() will be available, and not
|
||||
# all x86 CPUs provide the necessary assembly instructions.
|
||||
config BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
default y if BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_ARCH_IS_64
|
||||
default y if BR2_TOOLCHAIN_HAS_SYNC_4 && BR2_TOOLCHAIN_HAS_SYNC_8 && BR2_ARCH_IS_64
|
||||
|
||||
config BR2_PACKAGE_OPENAL
|
||||
bool "openal"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
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/ NPTL, C++, gcc >= 4.9"
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
|
||||
|| !BR2_INSTALL_LIBSTDCPP \
|
||||
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 8ac17e4e3b32c1af3d5508acfffb838640669b4274606b7892aa796ca9d7467f openal-1.21.1.tar.gz
|
||||
sha256 d808ce217e5b611854da622b57ec29fe545584c48bc5352fae72a4b6e5074a15 COPYING
|
||||
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# openal
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPENAL_VERSION = 1.21.1
|
||||
OPENAL_SITE = $(call github,kcat,openal-soft,$(OPENAL_VERSION))
|
||||
OPENAL_LICENSE = LGPL-2.0+
|
||||
OPENAL_LICENSE_FILES = COPYING
|
||||
OPENAL_INSTALL_STAGING = YES
|
||||
|
||||
# We don't need examples, tests and utilities, Distros don't ship them either
|
||||
OPENAL_CONF_OPTS += -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_TESTS=OFF
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),y)
|
||||
OPENAL_CONF_OPTS += -DEXTRA_LIBS=atomic
|
||||
endif
|
||||
|
||||
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_JACK2),y)
|
||||
OPENAL_DEPENDENCIES += jack2
|
||||
OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_JACK=ON
|
||||
else
|
||||
OPENAL_CONF_OPTS += -DALSOFT_REQUIRE_JACK=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))
|
||||
Reference in New Issue
Block a user