diff options
Diffstat (limited to 'meta/recipes-multimedia/alsa')
8 files changed, 208 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-fpu.inc b/meta/recipes-multimedia/alsa/alsa-fpu.inc new file mode 100644 index 0000000000..ebd3493e6c --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-fpu.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | def get_alsa_fpu_setting(bb, d): | ||
3 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
4 | return "--with-softfloat" | ||
5 | return "" | ||
6 | |||
diff --git a/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/fix-tstamp-declaration.patch b/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/fix-tstamp-declaration.patch new file mode 100644 index 0000000000..9016b348de --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/fix-tstamp-declaration.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | # Author: Michael Lauer <mickey@vanille-media.de> | ||
2 | # Date: Thu Jan 18 00:27:21 2007 +0000 | ||
3 | # alsa-lib: fix "error: field 'tstamp' has incomplete type" when including alsa headers with strict compilation options | ||
4 | # | ||
5 | # Acquired from OpenEmbedded | ||
6 | |||
7 | Index: alsa-lib-1.0.13/include/global.h | ||
8 | =================================================================== | ||
9 | --- alsa-lib-1.0.13.orig/include/global.h | ||
10 | +++ alsa-lib-1.0.13/include/global.h | ||
11 | @@ -29,6 +29,8 @@ | ||
12 | #define __ALSA_GLOBAL_H_ | ||
13 | |||
14 | /* for timeval and timespec */ | ||
15 | +#define __need_timeval | ||
16 | +#define __need_timespec | ||
17 | #include <time.h> | ||
18 | |||
19 | #ifdef __cplusplus | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/unbreak_plugindir.patch b/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/unbreak_plugindir.patch new file mode 100644 index 0000000000..7d13166809 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib-1.0.23/unbreak_plugindir.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -Nur alsa-lib-1.0.14.orig/configure.in alsa-lib-1.0.14/configure.in | ||
2 | --- alsa-lib-1.0.14.orig/configure.in 2007-05-31 03:05:13.000000000 -0500 | ||
3 | +++ alsa-lib-1.0.14/configure.in 2007-08-18 13:05:49.000000000 -0500 | ||
4 | @@ -93,7 +93,7 @@ | ||
5 | esac | ||
6 | plugindir="$dir/$PACKAGE" | ||
7 | fi | ||
8 | -AC_DEFINE_UNQUOTED(ALSA_PLUGIN_DIR, "plugindir", [directory containing ALSA add-on modules]) | ||
9 | +AC_DEFINE_UNQUOTED(ALSA_PLUGIN_DIR, "${plugindir}", [directory containing ALSA add-on modules]) | ||
10 | ALSA_PLUGIN_DIR="$plugindir" | ||
11 | AC_SUBST(ALSA_PLUGIN_DIR) | ||
12 | |||
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.0.23.bb b/meta/recipes-multimedia/alsa/alsa-lib_1.0.23.bb new file mode 100644 index 0000000000..b0a2a305c0 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib_1.0.23.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "Alsa sound library" | ||
2 | HOMEPAGE = "http://www.alsa-project.org" | ||
3 | BUGTRACKER = "https://bugtrack.alsa-project.org/alsa-bug/login_page.php" | ||
4 | SECTION = "libs/multimedia" | ||
5 | LICENSE = "LGPLv2.1 & GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 \ | ||
7 | file://src/socket.c;beginline=1;endline=26;md5=11ff89a8a7a4a690a5c78effe8159545" | ||
8 | |||
9 | # configure.in sets -D__arm__ on the command line for any arm system | ||
10 | # (not just those with the ARM instruction set), this should be removed, | ||
11 | # (or replaced by a permitted #define). | ||
12 | #FIXME: remove the following | ||
13 | ARM_INSTRUCTION_SET = "arm" | ||
14 | |||
15 | PR = "r0" | ||
16 | |||
17 | SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2 \ | ||
18 | file://fix-tstamp-declaration.patch;patch=1" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | require alsa-fpu.inc | ||
23 | EXTRA_OECONF += "${@get_alsa_fpu_setting(bb, d)} " | ||
24 | |||
25 | EXTRA_OECONF = "--with-cards=pdaudiocf --with-oss=yes --disable-python" | ||
26 | |||
27 | PACKAGES =+ "alsa-server libasound alsa-conf-base alsa-conf alsa-doc alsa-dev" | ||
28 | FILES_${PN}-dbg += "${libdir}/alsa-lib/*/.debu*" | ||
29 | FILES_libasound = "${libdir}/libasound.so.*" | ||
30 | FILES_alsa-server = "${bindir}/*" | ||
31 | FILES_alsa-conf = "${datadir}/alsa/" | ||
32 | FILES_alsa-dev += "${libdir}/pkgconfig/ /usr/include/ ${datadir}/aclocal/*" | ||
33 | FILES_alsa-conf-base = "\ | ||
34 | ${datadir}/alsa/alsa.conf \ | ||
35 | ${datadir}/alsa/cards/aliases.conf \ | ||
36 | ${datadir}/alsa/pcm/default.conf \ | ||
37 | ${datadir}/alsa/pcm/dmix.conf \ | ||
38 | ${datadir}/alsa/pcm/dsnoop.conf" | ||
39 | |||
40 | RDEPENDS_libasound = "alsa-conf-base" | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-oss_1.0.17.bb b/meta/recipes-multimedia/alsa/alsa-oss_1.0.17.bb new file mode 100644 index 0000000000..00e00dc62b --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-oss_1.0.17.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | DESCRIPTION = "Alsa OSS Compatibility Package" | ||
2 | SECTION = "libs/multimedia" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "alsa-lib" | ||
5 | |||
6 | SRC_URI = "ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-${PV}.tar.bz2" | ||
7 | |||
8 | inherit autotools | ||
9 | |||
10 | do_configure_prepend () { | ||
11 | touch NEWS README AUTHORS ChangeLog | ||
12 | } | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb b/meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb new file mode 100644 index 0000000000..789b68e438 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | BROKEN = "1" | ||
2 | |||
3 | DESCRIPTION = "Alsa Tools" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPL" | ||
6 | DEPENDS = "alsa-lib ncurses" | ||
7 | |||
8 | SRC_URI = "ftp://ftp.alsa-project.org/pub/tools/alsa-tools-${PV}.tar.bz2" | ||
9 | |||
10 | inherit autotools | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-utils-1.0.23/ncursesfix.patch b/meta/recipes-multimedia/alsa/alsa-utils-1.0.23/ncursesfix.patch new file mode 100644 index 0000000000..0009c1afe9 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-utils-1.0.23/ncursesfix.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | # alsa-utils: Fix ncurses build failures | ||
2 | # Richard Purdie <rpurdie@linux.intel.com> | ||
3 | # Rebased to 1.0.23, Dongxiao Xu <dongxiao.xu@intel.com> | ||
4 | |||
5 | diff -ruN alsa-utils-1.0.23-orig/configure.in alsa-utils-1.0.23/configure.in | ||
6 | --- alsa-utils-1.0.23-orig/configure.in 2010-04-16 19:19:12.000000000 +0800 | ||
7 | +++ alsa-utils-1.0.23/configure.in 2010-06-22 15:22:06.731202478 +0800 | ||
8 | @@ -109,34 +109,16 @@ | ||
9 | NCURSESLIBSUFFIX="" | ||
10 | CURSES_NLS="no" | ||
11 | if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then | ||
12 | - AC_CHECK_PROG([ncursesw5_config], [ncursesw5-config], [yes]) | ||
13 | - if test "$ncursesw5_config" = "yes"; then | ||
14 | - CURSESINC="<ncurses.h>" | ||
15 | - CURSESLIB=`ncursesw5-config --libs` | ||
16 | - CURSESLIBDIR=`ncursesw5-config --libdir` | ||
17 | - CURSES_CFLAGS=`ncursesw5-config --cflags` | ||
18 | - curseslib="ncursesw" | ||
19 | - else | ||
20 | AC_CHECK_LIB(ncursesw, initscr, | ||
21 | [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"]) | ||
22 | - fi | ||
23 | if test -n "$CURSESINC"; then | ||
24 | NCURSESLIBSUFFIX="w" | ||
25 | CURSES_NLS="yes" | ||
26 | fi | ||
27 | fi | ||
28 | if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then | ||
29 | - AC_CHECK_PROG([ncurses5_config], [ncurses5-config], [yes]) | ||
30 | - if test "$ncurses5_config" = "yes"; then | ||
31 | - CURSESINC="<ncurses.h>" | ||
32 | - CURSESLIB=`ncurses5-config --libs` | ||
33 | - CURSESLIBDIR=`ncurses5-config --libdir` | ||
34 | - CURSES_CFLAGS=`ncurses5-config --cflags` | ||
35 | - curseslib="ncurses" | ||
36 | - else | ||
37 | AC_CHECK_LIB(ncurses, initscr, | ||
38 | [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"]) | ||
39 | - fi | ||
40 | fi | ||
41 | if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then | ||
42 | AC_CHECK_LIB(curses, initscr, | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.0.23.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.0.23.bb new file mode 100644 index 0000000000..7b30c0d4b0 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-utils_1.0.23.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | DESCRIPTION = "ALSA Utilities" | ||
2 | HOMEPAGE = "http://www.alsa-project.org" | ||
3 | BUGTRACKER = "https://bugtrack.alsa-project.org/alsa-bug/login_page.php" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \ | ||
7 | file://alsactl/utils.c;beginline=1;endline=20;md5=fe9526b055e246b5558809a5ae25c0b9" | ||
8 | DEPENDS = "alsa-lib ncurses gettext" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ | ||
12 | file://ncursesfix.patch;patch=1 " | ||
13 | |||
14 | # lazy hack. needs proper fixing in gettext.m4, see | ||
15 | # http://bugs.openembedded.org/show_bug.cgi?id=2348 | ||
16 | # please close bug and remove this comment when properly fixed | ||
17 | # | ||
18 | EXTRA_OECONF = "--disable-xmlto" | ||
19 | EXTRA_OECONF_linux-uclibc = "--disable-nls" | ||
20 | EXTRA_OECONF_linux-uclibcgnueabi = "--disable-nls" | ||
21 | |||
22 | inherit autotools | ||
23 | |||
24 | # This are all packages that we need to make. Also, the now empty alsa-utils | ||
25 | # ipk depend on them. | ||
26 | |||
27 | PACKAGES += "\ | ||
28 | alsa-utils-alsamixer \ | ||
29 | alsa-utils-midi \ | ||
30 | alsa-utils-aplay \ | ||
31 | alsa-utils-amixer \ | ||
32 | alsa-utils-aconnect \ | ||
33 | alsa-utils-iecset \ | ||
34 | alsa-utils-speakertest \ | ||
35 | alsa-utils-aseqnet \ | ||
36 | alsa-utils-aseqdump \ | ||
37 | alsa-utils-alsaconf \ | ||
38 | alsa-utils-alsactl " | ||
39 | |||
40 | # We omit alsaconf, because | ||
41 | # a) this is a bash script | ||
42 | # b) it creates config files not suitable for OE-based distros | ||
43 | |||
44 | FILES_${PN} = "" | ||
45 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord" | ||
46 | FILES_alsa-utils-amixer = "${bindir}/amixer" | ||
47 | FILES_alsa-utils-alsamixer = "${bindir}/alsamixer" | ||
48 | FILES_alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/" | ||
49 | FILES_alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi" | ||
50 | FILES_alsa-utils-aconnect = "${bindir}/aconnect" | ||
51 | FILES_alsa-utils-aseqnet = "${bindir}/aseqnet" | ||
52 | FILES_alsa-utils-iecset = "${bindir}/iecset" | ||
53 | FILES_alsa-utils-alsactl = "${sbindir}/alsactl" | ||
54 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" | ||
55 | FILES_alsa-utils-alsaconf = "${sbindir}/alsaconf" | ||
56 | |||
57 | DESCRIPTION_alsa-utils-aplay = "play (and record) sound files via ALSA" | ||
58 | DESCRIPTION_alsa-utils-amixer = "command-line based control for ALSA mixer and settings" | ||
59 | DESCRIPTION_alsa-utils-alsamixer = "ncurses based control for ALSA mixer and settings" | ||
60 | DESCRIPTION_alsa-utils-speakertest = "ALSA surround speaker test utility" | ||
61 | DESCRIPTION_alsa-utils-midi = "miscalleanous MIDI utilities for ALSA" | ||
62 | DESCRIPTION_alsa-utils-aconnect = "ALSA sequencer connection manager" | ||
63 | DESCRIPTION_alsa-utils-aseqnet = "network client/server on ALSA sequencer" | ||
64 | DESCRIPTION_alsa-utils-alsactl = "saves/restores ALSA-settings in /etc/asound.state" | ||
65 | DESCRIPTION_alsa-utils-alsaconf = "a bash script that creates ALSA configuration files" | ||
66 | |||
67 | ALLOW_EMPTY_alsa-utils = "1" | ||