summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-20 15:56:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-23 14:26:15 +0100
commit6085ce0b1d3b076e5499a2867191cb3574b0aa50 (patch)
treef698757f53b345d32fb536373891b900f9e054eb /meta
parentec96025bc352305fd557cc8f1e61056f4f1990f8 (diff)
downloadpoky-6085ce0b1d3b076e5499a2867191cb3574b0aa50.tar.gz
mpg123: add a recipe from meta-oe
The recipe is updated to latest upstream release. Also audiofile dependency is dropped as it's not actually used anywhere. [YOCTO #6020] (From OE-Core rev: e136525f3443f365ecbfdb8bb618f89c3f38da5b) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb b/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb
new file mode 100644
index 0000000000..3101023101
--- /dev/null
+++ b/meta/recipes-multimedia/mpg123/mpg123_1.23.4.bb
@@ -0,0 +1,63 @@
1SUMMARY = "Audio decoder for MPEG-1 Layer 1/2/3"
2DESCRIPTION = "The core of mpg123 is an MPEG-1 Layer 1/2/3 decoding library, which can be used by other programs. \
3mpg123 also comes with a command-line tool which can playback using ALSA, PulseAudio, OSS, and several other APIs, \
4and also can write the decoded audio to WAV."
5HOMEPAGE = "http://mpg123.de/"
6BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/"
7SECTION = "multimedia"
8
9LICENSE = "LGPLv2.1"
10LICENSE_FLAGS = "commercial"
11LIC_FILES_CHKSUM = "file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3"
12
13SRC_URI = "https://www.mpg123.de/download/${BP}.tar.bz2"
14
15SRC_URI[md5sum] = "dea9e3a815d127d04ebe9f6b80f229ce"
16SRC_URI[sha256sum] = "3495e678dec9a60f29cbcd4fc698abc4c811ec60d1276e744f7a10ac35023b48"
17
18inherit autotools pkgconfig
19
20# The options should be mutually exclusive for configuration script.
21# If both alsa and pulseaudio are specified (as in the default distro features)
22# pulseaudio takes precedence.
23PACKAGECONFIG_ALSA = "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}"
24PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '${PACKAGECONFIG_ALSA}', d)}"
25
26PACKAGECONFIG[alsa] = "--with-default-audio=alsa,,alsa-lib"
27PACKAGECONFIG[esd] = ",,esound"
28PACKAGECONFIG[jack] = ",,jack"
29PACKAGECONFIG[openal] = ",,openal-soft"
30PACKAGECONFIG[portaudio] = ",,portaudio-v19"
31PACKAGECONFIG[pulseaudio] = "--with-default-audio=pulse,,pulseaudio"
32PACKAGECONFIG[sdl] = ",,libsdl"
33
34# Following are possible sound output modules:
35# alsa arts coreaudio dummy esd jack nas openal os2 oss portaudio pulse sdl sndio sun tinyalsa win32 win32_wasapi
36AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', 'alsa', '', d)}"
37AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'esd', 'esd', '', d)}"
38AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'jack', 'jack', '', d)}"
39AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'openal', 'openal', '', d)}"
40AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'portaudio', 'portaudio', '', d)}"
41AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'pulse', '', d)}"
42AUDIOMODS += "${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'sdl', '', d)}"
43
44EXTRA_OECONF = " \
45 --enable-shared \
46 --with-audio='${AUDIOMODS}' \
47 --with-module-suffix=.so \
48 ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
49 ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
50"
51
52# The x86 assembler optimisations contains text relocations and there are no
53# upstream plans to fix them: http://sourceforge.net/p/mpg123/bugs/168/
54INSANE_SKIP_${PN}_append_x86 = " textrel"
55
56# Fails to build with thumb-1 (qemuarm)
57#| {standard input}: Assembler messages:
58#| {standard input}:47: Error: selected processor does not support Thumb mode `smull r5,r6,r7,r4'
59#| {standard input}:48: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r5,r5,lsr#24'
60#...
61#| make[3]: *** [equalizer.lo] Error 1
62ARM_INSTRUCTION_SET_armv4 = "arm"
63ARM_INSTRUCTION_SET_armv5 = "arm"