1 ################################################################################
5 ################################################################################
7 ALSA_UTILS_VERSION
= 1.1.3
8 ALSA_UTILS_SOURCE
= alsa-utils-
$(ALSA_UTILS_VERSION
).
tar.bz2
9 ALSA_UTILS_SITE
= ftp
://ftp.alsa-project.org
/pub
/utils
10 ALSA_UTILS_LICENSE
= GPLv2
11 ALSA_UTILS_LICENSE_FILES
= COPYING
12 ALSA_UTILS_INSTALL_STAGING
= YES
13 ALSA_UTILS_DEPENDENCIES
= host-gettext host-pkgconf alsa-lib \
14 $(if
$(BR2_PACKAGE_NCURSES
),ncurses
) \
15 $(if
$(BR2_PACKAGE_LIBSAMPLERATE
),libsamplerate
)
16 # Regenerate aclocal.m4 to pick the patched
17 # version of alsa.m4 from alsa-lib
18 ALSA_UTILS_AUTORECONF
= YES
19 ALSA_UTILS_GETTEXTIZE
= YES
21 ALSA_UTILS_CONF_ENV
= \
22 ac_cv_prog_ncurses5_config
=$(STAGING_DIR
)/usr
/bin
/$(NCURSES_CONFIG_SCRIPTS
)
24 ALSA_UTILS_CONF_OPTS
= \
27 --with-curses
=$(if
$(BR2_PACKAGE_NCURSES_WCHAR
),ncursesw
,ncurses
)
29 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE
),y
)
30 ALSA_UTILS_DEPENDENCIES
+= gettext
31 ALSA_UTILS_CONF_ENV
+= LIBS
=-lintl
34 ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSALOOP
),y
)
35 ALSA_UTILS_CONF_OPTS
+= --enable-alsaloop
37 ALSA_UTILS_CONF_OPTS
+= --disable-alsaloop
40 ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
),y
)
41 ALSA_UTILS_CONF_OPTS
+= --disable-alsamixer
--disable-alsatest
44 ifeq ($(BR2_PACKAGE_ALSA_UTILS_BAT
),y
)
45 ALSA_UTILS_CONF_OPTS
+= --enable-bat
46 ALSA_UTILS_DEPENDENCIES
+= fftw
48 ALSA_UTILS_CONF_OPTS
+= --disable-bat
51 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSACONF
) += usr
/sbin
/alsaconf
52 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSACTL
) += usr
/sbin
/alsactl
53 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSALOOP
) += usr
/bin
/alsaloop
54 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
) += usr
/bin
/alsamixer
55 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSATPLG
) += usr
/bin
/alsatplg
56 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_AMIDI
) += usr
/bin
/amidi
57 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_AMIXER
) += usr
/bin
/amixer
58 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_APLAY
) += usr
/bin
/aplay usr
/bin
/arecord
59 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_BAT
) += usr
/bin
/alsabat
60 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_IECSET
) += usr
/bin
/iecset
61 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ACONNECT
) += usr
/bin
/aconnect
62 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSAUCM
) += usr
/bin
/alsaucm
63 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_APLAYMIDI
) += usr
/bin
/aplaymidi
64 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ARECORDMIDI
) += usr
/bin
/arecordmidi
65 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ASEQDUMP
) += usr
/bin
/aseqdump
66 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ASEQNET
) += usr
/bin
/aseqnet
67 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST
) += usr
/bin
/speaker-test
69 define ALSA_UTILS_INSTALL_TARGET_CMDS
70 mkdir
-p
$(TARGET_DIR
)/var
/lib
/alsa
71 for i in
$(ALSA_UTILS_TARGETS_y
); do \
72 $(INSTALL
) -D
-m
755 $(STAGING_DIR
)/$$i $(TARGET_DIR
)/$$i || exit
1; \
74 if
[ -x
"$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
75 mkdir
-p
$(TARGET_DIR
)/usr
/share
/alsa
/speaker-test
; \
76 mkdir
-p
$(TARGET_DIR
)/usr
/share
/sounds
/alsa
; \
77 cp
-rdpf
$(STAGING_DIR
)/usr
/share
/alsa
/speaker-test
/* $(TARGET_DIR
)/usr
/share
/alsa
/speaker-test
/; \
78 cp
-rdpf
$(STAGING_DIR
)/usr
/share
/sounds
/alsa
/* $(TARGET_DIR
)/usr
/share
/sounds
/alsa
/; \
80 if
[ -x
"$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
81 mkdir
-p
$(TARGET_DIR
)/usr
/share
/; \
82 rm -rf
$(TARGET_DIR
)/usr
/share
/alsa
/; \
83 cp
-rdpf
$(STAGING_DIR
)/usr
/share
/alsa
/ $(TARGET_DIR
)/usr
/share
/alsa
/; \
87 $(eval
$(autotools-package
))