mpg123_1.22.4.bb 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. DEPENDS = "audiofile"
  12. SRC_URI = "${SOURCEFORGE_MIRROR}/mpg123/mpg123/${PV}/${BP}.tar.bz2"
  13. SRC_URI[md5sum] = "2dfafae3bbc532b4c8b04a77c6a6de89"
  14. SRC_URI[sha256sum] = "5069e02e50138600f10cc5f7674e44e9bf6f1930af81d0e1d2f869b3c0ee40d2"
  15. inherit autotools pkgconfig
  16. # The options should be mutually exclusive for configuration script.
  17. # If both alsa and pulseaudio are specified (as in the default distro features)
  18. # pulseaudio takes precedence.
  19. PACKAGECONFIG_ALSA = "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}"
  20. PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}"
  21. PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib"
  22. PACKAGECONFIG[esd] = ",,esound"
  23. PACKAGECONFIG[jack] = ",,jack"
  24. PACKAGECONFIG[openal] = ",,openal-soft"
  25. PACKAGECONFIG[portaudio] = ",,portaudio-v19"
  26. PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio"
  27. PACKAGECONFIG[sdl] = ",,libsdl"
  28. # Following are possible sound output modules:
  29. # alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi
  30. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', 'alsa', '', d)}"
  31. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'esd', 'esd', '', d)}"
  32. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'jack', 'jack', '', d)}"
  33. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'openal', 'openal', '', d)}"
  34. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'portaudio', 'portaudio', '', d)}"
  35. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}"
  36. AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'sdl', '', d)}"
  37. EXTRA_OECONF = " \
  38. --enable-shared \
  39. --with-audio='${AUDIOMODS}' \
  40. --with-module-suffix=.so \
  41. ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
  42. ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
  43. "
  44. # The x86 assembler optimisations contains text relocations and there are no
  45. # upstream plans to fix them: http://sourceforge.net/p/mpg123/bugs/168/
  46. INSANE_SKIP_${PN}_append_x86 = " textrel"
  47. # Fails to build with thumb-1 (qemuarm)
  48. #| {standard input}: Assembler messages:
  49. #| {standard input}:47: Error: selected processor does not support Thumb mode `smull r5,r6,r7,r4'
  50. #| {standard input}:48: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r5,r5,lsr#24'
  51. #...
  52. #| make[3]: *** [equalizer.lo] Error 1
  53. ARM_INSTRUCTION_SET_armv4 = "arm"
  54. ARM_INSTRUCTION_SET_armv5 = "arm"