sdl_mixer.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ################################################################################
  2. #
  3. # sdl_mixer
  4. #
  5. ################################################################################
  6. # The latest officially released version of SDL_mixer is 1.2.12, released in 2012.
  7. # Since then, there have been many bugfixes on master.
  8. #
  9. # This commit points to the SDL-1.2 branch from 15 Mar 2021.
  10. SDL_MIXER_VERSION = d1725fcb7c4e987aeb7ecdc94cb8b6375b702170
  11. SDL_MIXER_SITE = $(call github,libsdl-org,SDL_mixer,$(SDL_MIXER_VERSION))
  12. SDL_MIXER_LICENSE = Zlib
  13. SDL_MIXER_LICENSE_FILES = COPYING
  14. # Package does not build in parallel due to improper make rules
  15. SDL_MIXER_MAKE = $(MAKE1)
  16. SDL_MIXER_INSTALL_STAGING = YES
  17. SDL_MIXER_DEPENDENCIES = sdl
  18. # We're patching configure.in, so we need to autoreconf
  19. SDL_MIXER_AUTORECONF = YES
  20. SDL_MIXER_CONF_OPTS = \
  21. --with-sdl-prefix=$(STAGING_DIR)/usr \
  22. --disable-music-mod \
  23. --disable-music-mp3 \
  24. --disable-music-flac # configure script fails when cross compiling
  25. ifeq ($(BR2_PACKAGE_FLUIDSYNTH),y)
  26. SDL_MIXER_DEPENDENCIES += fluidsynth
  27. SDL_MIXER_CONF_OPTS += \
  28. --enable-music-midi \
  29. --enable-music-fluidsynth-midi
  30. SDL_MIXER_HAS_MIDI = YES
  31. endif
  32. ifeq ($(BR2_PACKAGE_SDL_MIXER_MIDI_TIMIDITY),y)
  33. SDL_MIXER_CONF_OPTS += \
  34. --enable-music-midi \
  35. --enable-music-timidity-midi
  36. SDL_MIXER_HAS_MIDI = YES
  37. endif
  38. ifneq ($(SDL_MIXER_HAS_MIDI),YES)
  39. SDL_MIXER_CONF_OPTS += --disable-music-midi
  40. endif
  41. ifeq ($(BR2_PACKAGE_LIBMAD),y)
  42. SDL_MIXER_CONF_OPTS += --enable-music-mp3-mad-gpl
  43. SDL_MIXER_DEPENDENCIES += libmad
  44. else
  45. SDL_MIXER_CONF_OPTS += --disable-music-mp3-mad-gpl
  46. endif
  47. ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
  48. SDL_MIXER_CONF_OPTS += --enable-music-mod-modplug
  49. SDL_MIXER_DEPENDENCIES += host-pkgconf libmodplug
  50. else
  51. SDL_MIXER_CONF_OPTS += --disable-music-mod-modplug
  52. endif
  53. ifeq ($(BR2_PACKAGE_TREMOR),y)
  54. SDL_MIXER_CONF_OPTS += --enable-music-ogg-tremor
  55. SDL_MIXER_DEPENDENCIES += tremor
  56. else ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
  57. SDL_MIXER_CONF_OPTS += --enable-music-ogg
  58. SDL_MIXER_DEPENDENCIES += libvorbis
  59. else
  60. SDL_MIXER_CONF_OPTS += --disable-music-ogg
  61. endif
  62. $(eval $(autotools-package))