1 ################################################################################
5 ################################################################################
7 OPENAL_VERSION
= 1.17.2
8 OPENAL_SOURCE
= openal-soft-
$(OPENAL_VERSION
).
tar.bz2
9 OPENAL_SITE
= http
://kcat.strangesoft.net
/openal-releases
11 https
://github.com
/kcat
/openal-soft
/commit
/27916ce3db023454a0295ee63ea196fbc246674c.patch \
12 https
://github.com
/kcat
/openal-soft
/commit
/a52cfc804813aef8e4b304e20cf843fa6907af6c.patch \
13 https
://github.com
/kcat
/openal-soft
/commit
/c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1.patch \
14 https
://github.com
/kcat
/openal-soft
/commit
/46b3e1d08ca10e809eb2e20b6371812958b97e1f.patch
15 OPENAL_LICENSE
= LGPLv2
+
16 OPENAL_LICENSE_FILES
= COPYING
17 OPENAL_INSTALL_STAGING
= YES
19 # We don't need examples, tests and utilities, Distros don't ship them either
20 OPENAL_CONF_OPTS
+= -DALSOFT_UTILS
=OFF
-DALSOFT_EXAMPLES
=OFF
-DALSOFT_TESTS
=OFF
22 ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
),y
)
23 OPENAL_CONF_OPTS
+= -DEXTRA_LIBS
=atomic
26 ifeq ($(BR2_PACKAGE_ALSA_LIB
),y
)
27 OPENAL_DEPENDENCIES
+= alsa-lib
28 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_ALSA
=ON
30 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_ALSA
=OFF
33 ifeq ($(BR2_PACKAGE_JACK2
),y
)
34 OPENAL_DEPENDENCIES
+= jack2
35 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_JACK
=ON
37 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_JACK
=OFF
40 ifeq ($(BR2_PACKAGE_PORTAUDIO
),y
)
41 OPENAL_DEPENDENCIES
+= portaudio
42 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_PORTAUDIO
=ON
44 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_PORTAUDIO
=OFF
47 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
48 OPENAL_DEPENDENCIES
+= pulseaudio
49 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_PULSEAUDIO
=ON
51 OPENAL_CONF_OPTS
+= -DALSOFT_REQUIRE_PULSEAUDIO
=OFF
54 ifeq ($(BR2_STATIC_LIBS
),y
)
55 OPENAL_CONF_OPTS
+= -DLIBTYPE
=STATIC
58 $(eval
$(cmake-package
))