Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 | |
| 9 | LICENSE = "LGPLv2.1" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3" |
| 11 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 12 | SRC_URI = "https://www.mpg123.de/download/${BP}.tar.bz2 \ |
| 13 | file://sdl2.patch" |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 14 | SRC_URI[md5sum] = "294a6c30546504ec3d0deac2b2ea22be" |
| 15 | SRC_URI[sha256sum] = "90306848359c793fd43b9906e52201df18775742dc3c81c06ab67a806509890a" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame^] | 17 | UPSTREAM_CHECK_REGEX = "mpg123-(?P<pver>\d+(\.\d+)+)\.tar" |
| 18 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | inherit autotools pkgconfig |
| 20 | |
| 21 | # The options should be mutually exclusive for configuration script. |
| 22 | # If both alsa and pulseaudio are specified (as in the default distro features) |
| 23 | # pulseaudio takes precedence. |
| 24 | PACKAGECONFIG_ALSA = "${@bb.utils.filter('DISTRO_FEATURES', 'alsa', d)}" |
| 25 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}" |
| 26 | |
| 27 | PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib" |
| 28 | PACKAGECONFIG[esd] = ",,esound" |
| 29 | PACKAGECONFIG[jack] = ",,jack" |
| 30 | PACKAGECONFIG[openal] = ",,openal-soft" |
| 31 | PACKAGECONFIG[portaudio] = ",,portaudio-v19" |
| 32 | PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | PACKAGECONFIG[sdl] = ",,libsdl2" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | |
| 35 | # Following are possible sound output modules: |
| 36 | # alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi |
| 37 | AUDIOMODS += "${@bb.utils.filter('PACKAGECONFIG', 'alsa esd jack openal portaudio sdl', d)}" |
| 38 | AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}" |
| 39 | |
| 40 | EXTRA_OECONF = " \ |
| 41 | --enable-shared \ |
| 42 | --with-audio='${AUDIOMODS}' \ |
| 43 | ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \ |
| 44 | ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \ |
| 45 | " |
| 46 | # Fails to build with thumb-1 (qemuarm) |
| 47 | #| {standard input}: Assembler messages: |
| 48 | #| {standard input}:47: Error: selected processor does not support Thumb mode `smull r5,r6,r7,r4' |
| 49 | #| {standard input}:48: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r5,r5,lsr#24' |
| 50 | #... |
| 51 | #| make[3]: *** [equalizer.lo] Error 1 |
| 52 | ARM_INSTRUCTION_SET_armv4 = "arm" |
| 53 | ARM_INSTRUCTION_SET_armv5 = "arm" |