Skip to contentSkip to conversation

add recipe for mpg123, a decoder for MPEG-1 layer 1, 2, and 3

PATCH Superseded Carlos Rafael Giani 2 participants 4 messages Apr 8, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add recipe for mpg123, a decoder for MPEG-1 layer 1, 2, and 3

mpg123 consists of a decoder library, and a command line application. The application can be used to playback and dump decoded mp1/mp2/mp3 files. The library can be integrated in other applications. CPU usage is minimal.

---
 meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb
meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +30 -0
new file mode 100644
index 0000000..6b9490e
@@ -0,0 +1,30 @@
+SUMMARY = "Audio decoder for MPEG-1 Layer 1/2/3"
+DESCRIPTION = "The core of mpg123 is an MPEG-1 Layer 1/2/3 decoding library, which can be used by other programs. \
+mpg123 also comes with a command-line tool which can playback using ALSA, PulseAudio, OSS, and several other APIs, \
+and also can write the decoded audio to WAV."
+HOMEPAGE = "http://mpg123.de/"
+BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/"
+SECTION = "multimedia"
+
+LICENSE = "LGPLv2.1"
+LICENSE_FLAGS = "commercial"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a7aa23a2b646eca38ad4eeb7a853761c"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/mpg123/mpg123/${PV}/mpg123-${PV}.tar.bz2"
+
+SRC_URI[md5sum] = "f734f9e2982f398a1c919475fc0b3798"
+SRC_URI[sha256sum] = "b6b1aef887835f83ac3d4acb5701ae619041fc60d76548ad779a409080338df7" 
+
+S = "${WORKDIR}/mpg123-${PV}"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--enable-shared \
+	${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
+	${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
+	${@bb.utils.contains('TUNE_FEATURES', 'i586', '--with-cpu=i586', '', d)} \
+	${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '--with-default-audio=alsa', '', d)} \
+	${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', '--with-default-audio=pulse', '', d)} \
+	"
+
Signature · 1 line
1.8.2
#1 lore raw
Quoted 46 lines · On Monday 08 April 2013 23:53:37 Carlos Rafael Giani wrote:

mpg123 consists of a decoder library, and a command line application. The application can be used to playback and dump decoded mp1/mp2/mp3 files. The library can be integrated in other applications. CPU usage is minimal.

---
 meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb | 30
++++++++++++++++++++++ 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb
(quoted diff) +0 -0

b/meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file mode 100644 index 0000000..6b9490e

meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +2 -0
@@ -0,0 +1,30 @@
+SUMMARY = "Audio decoder for MPEG-1 Layer 1/2/3"
+DESCRIPTION = "The core of mpg123 is an MPEG-1 Layer 1/2/3 decoding

library, which can be used by other programs. \ +mpg123 also comes with a command-line tool which can playback using ALSA, PulseAudio, OSS, and several other APIs, \ +and also can write the decoded audio to WAV."

meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +12 -0
+HOMEPAGE = "http://mpg123.de/"
+BUGTRACKER = "http://sourceforge.net/p/mpg123/bugs/"
+SECTION = "multimedia"
+
+LICENSE = "LGPLv2.1"
+LICENSE_FLAGS = "commercial"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a7aa23a2b646eca38ad4eeb7a853761c"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/mpg123/mpg123/${PV}/mpg123-${PV}.tar.bz2"
+
+SRC_URI[md5sum] = "f734f9e2982f398a1c919475fc0b3798"
+SRC_URI[sha256sum] =

"b6b1aef887835f83ac3d4acb5701ae619041fc60d76548ad779a409080338df7" +

meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +8 -0
+S = "${WORKDIR}/mpg123-${PV}"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--enable-shared \
+	${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
+	${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec',

'', d)} \ + ${@bb.utils.contains('TUNE_FEATURES', 'i586',
'--with-cpu=i586', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES',
'alsa', '--with-default-audio=alsa', '', d)} \

meta-oe/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +1 -0
+	${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio',
Quoted 2 lines

'--with-default-audio=pulse', '', d)} \ + "
+

Recipe looks good, however this should probably go into meta-multimedia. We do still have some multimedia recipes in meta-oe but these ought to be moved (when someone gets around to it).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 7 lines · Paul Eggleton

Recipe looks good, however this should probably go into meta-multimedia. We do still have some multimedia recipes in meta-oe but these ought to be moved (when someone gets around to it).

Cheers,
Paul

I was already wondering about this. So the long-term plan is to move multimedia stuff out of meta-oe, okay. Shall I re-send the patch in the meta-multimedia directory?

#3 lore raw
Quoted 8 lines · On Tuesday 09 April 2013 00:58:10 Carlos Rafael Giani wrote:
Quoted 3 lines · Paul Eggleton

Recipe looks good, however this should probably go into meta-multimedia. We do still have some multimedia recipes in meta-oe but these ought to be moved (when someone gets around to it).

I was already wondering about this. So the long-term plan is to move multimedia stuff out of meta-oe, okay.
Shall I re-send the patch in the meta-multimedia directory?

Yes please.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre