add recipe for mpg123, a decoder for MPEG-1 layer 1, 2, and 3
PATCH v2 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.
--- .../recipes-multimedia/mpg123/mpg123_1.15.3.bb | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb
meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +30 -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." +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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 09-04-13 01:24, Carlos Rafael Giani schreef:
Quoted 24 lines
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.
Signed-off-by Carlos Rafael Giani <[email protected]> ---.../recipes-multimedia/mpg123/mpg123_1.15.3.bb | 30
++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb(quoted diff) +0
-0b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file mode 100644 index 0000000..6b9490e ---
/dev/null+++ b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb @@ -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" +
Quoted 8 lines
+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)} \
A note of warning, OE-core defines a ton of modern CPUs to be i586, the Atom E6xx is one of them, it supports up to SSSE4.0, but I don't think mpg123 will include that.
This isn't a problem with your patch, but with OE-core, so no need to change. Just adding more google juice for when people are wondering why mpg123 sucks on their intel boards :)
Quoted 5 lines
(quoted diff) +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'alsa','--with-default-audio=alsa', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio',
'--with-default-audio=pulse', '', d)} \ + " +
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD4DBQFRY7h2MkyGM64RGpERAi+bAJjMMmIPOANk37QFxxsh/nsRs9N8AKC7dzI+ 4PsmLFH/3KicA3kdYQ0lSg==
=b13E
-----END PGP SIGNATURE-----
Quoted 59 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Op 09-04-13 01:24, Carlos Rafael Giani schreef:
Quoted 24 lines
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.
Signed-off-by Carlos Rafael Giani <[email protected]> ---.../recipes-multimedia/mpg123/mpg123_1.15.3.bb | 30
++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb(quoted diff) +0
-0b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file mode 100644 index 0000000..6b9490e ---
/dev/null+++ b/meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb @@ -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" +Quoted 8 lines
+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)} \A note of warning, OE-core defines a ton of modern CPUs to be i586, the Atom E6xx is one of them, it supports up to SSSE4.0, but I don't think mpg123 will include that.
This isn't a problem with your patch, but with OE-core, so no need to change. Just adding more google juice for when people are wondering why mpg123 sucks on their intel boards :)
Quoted 5 lines
(quoted diff) +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'alsa','--with-default-audio=alsa', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio',
'--with-default-audio=pulse', '', d)} \ + " +-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.orgiD4DBQFRY7h2MkyGM64RGpERAi+bAJjMMmIPOANk37QFxxsh/nsRs9N8AKC7dzI+ 4PsmLFH/3KicA3kdYQ0lSg==
=b13E
-----END PGP SIGNATURE-----
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hmm, perhaps I should change it. mpg123 tries to autodetect the machine then anyway. I just added these options to ensure it picks the right ones without having to autodetect anything.
PATCH v3 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.
--- .../recipes-multimedia/mpg123/mpg123_1.15.3.bb | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb
meta-multimedia/recipes-multimedia/mpg123/mpg123_1.15.3.bb new file +29 -0
@@ -0,0 +1,29 @@ +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('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
Quoted 3 lines · Carlos Rafael Giani
Hmm, perhaps I should change it. mpg123 tries to autodetect the machine then anyway. I just added these options to ensure it picks the right ones without having to autodetect anything.
How does it detect? Traditional "what am I running on?" tests won't work as it's being cross-compiled...
Ross
Quoted 7 lines · Ross
Quoted 3 lines · Carlos Rafael Giani
Hmm, perhaps I should change it. mpg123 tries to autodetect the machine then anyway. I just added these options to ensure it picks the right ones without having to autodetect anything.
How does it detect? Traditional "what am I running on?" tests won't work as it's being cross-compiled...
Quoted 6 lines
Ross
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
In configure.ac it looks at the $host variable and matches it against patterns , for example x86_64-*-linux* . Manual cross compilation showed that it correctly detects the host this way.
Carlos