mpg123_1.23.8.bb 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. SUMMARY = "Audio decoder for MPEG-1 Layer 1/2/3"
  2. DESCRIPTION = "The core of mpg123 is an MPEG-1 Layer 1/2/3 decoding library, which can be used by other programs. \
  3. mpg123 also comes with a command-line tool which can playback using ALSA, PulseAudio, OSS, and several other APIs, \
  4. and also can write the decoded audio to WAV."
  5. HOMEPAGE = "http://mpg123.de/"
  6. BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/"
  7. SECTION = "multimedia"
  8. LICENSE = "LGPLv2.1"
  9. LICENSE_FLAGS = "commercial"
  10. LIC_FILES_CHKSUM = "file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3"
  11. SRC_URI = "https://www.mpg123.de/download/${BP}.tar.bz2"
  12. SRC_URI[md5sum] = "4dde045123a2ad1e385a0a82c0ef9268"
  13. SRC_URI[sha256sum] = "de2303c8ecb65593e39815c0a2f2f2d91f708c43b85a55fdd1934c82e677cf8e"
  14. inherit autotools pkgconfig
  15. # The options should be mutually exclusive for configuration script.
  16. # If both alsa and pulseaudio are specified (as in the default distro features)
  17. # pulseaudio takes precedence.
  18. PACKAGECONFIG_ALSA = "${@bb.utils.filter('DISTRO_FEATURES', 'alsa', d)}"
  19. PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}"
  20. PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib"
  21. PACKAGECONFIG[esd] = ",,esound"
  22. PACKAGECONFIG[jack] = ",,jack"
  23. PACKAGECONFIG[openal] = ",,openal-soft"
  24. PACKAGECONFIG[portaudio] = ",,portaudio-v19"
  25. PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio"
  26. PACKAGECONFIG[sdl] = ",,libsdl"
  27. # Following are possible sound output modules:
  28. # alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi
  29. AUDIOMODS += "${@bb.utils.filter('PACKAGECONFIG', 'alsa esd jack openal portaudio sdl', d)}"
  30. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}"
  31. EXTRA_OECONF = " \
  32. --enable-shared \
  33. --with-audio='${AUDIOMODS}' \
  34. --with-module-suffix=.so \
  35. ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
  36. ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
  37. "
  38. # The x86 assembler optimisations contains text relocations and there are no
  39. # upstream plans to fix them: http://sourceforge.net/p/mpg123/bugs/168/
  40. INSANE_SKIP_${PN}_append_x86 = " textrel"
  41. # Fails to build with thumb-1 (qemuarm)
  42. #| {standard input}: Assembler messages:
  43. #| {standard input}:47: Error: selected processor does not support Thumb mode `smull r5,r6,r7,r4'
  44. #| {standard input}:48: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r5,r5,lsr#24'
  45. #...
  46. #| make[3]: *** [equalizer.lo] Error 1
  47. ARM_INSTRUCTION_SET_armv4 = "arm"
  48. ARM_INSTRUCTION_SET_armv5 = "arm"