xref: /OK3568_Linux_fs/buildroot/package/openal/openal.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# openal
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOPENAL_VERSION = 1.21.1
8*4882a593SmuzhiyunOPENAL_SITE = $(call github,kcat,openal-soft,$(OPENAL_VERSION))
9*4882a593SmuzhiyunOPENAL_LICENSE = LGPL-2.0+
10*4882a593SmuzhiyunOPENAL_LICENSE_FILES = COPYING
11*4882a593SmuzhiyunOPENAL_INSTALL_STAGING = YES
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# We don't need examples, tests and utilities, Distros don't ship them either
14*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_TESTS=OFF
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),y)
17*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DEXTRA_LIBS=atomic
18*4882a593Smuzhiyunendif
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ALSA_LIB),y)
21*4882a593SmuzhiyunOPENAL_DEPENDENCIES += alsa-lib
22*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_ALSA=ON
23*4882a593Smuzhiyunelse
24*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_ALSA=OFF
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_JACK2),y)
28*4882a593SmuzhiyunOPENAL_DEPENDENCIES += jack2
29*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_JACK=ON
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_JACK=OFF
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PORTAUDIO),y)
35*4882a593SmuzhiyunOPENAL_DEPENDENCIES += portaudio
36*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PORTAUDIO=ON
37*4882a593Smuzhiyunelse
38*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PORTAUDIO=OFF
39*4882a593Smuzhiyunendif
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
42*4882a593SmuzhiyunOPENAL_DEPENDENCIES += pulseaudio
43*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PULSEAUDIO=ON
44*4882a593Smuzhiyunelse
45*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DALSOFT_REQUIRE_PULSEAUDIO=OFF
46*4882a593Smuzhiyunendif
47*4882a593Smuzhiyun
48*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
49*4882a593SmuzhiyunOPENAL_CONF_OPTS += -DLIBTYPE=STATIC
50*4882a593Smuzhiyunendif
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun$(eval $(cmake-package))
53