1 #############################################################
5 #############################################################
6 ALSA_UTILS_VERSION
:=1.0.14
7 ALSA_UTILS_SOURCE
:=alsa-utils-
$(ALSA_UTILS_VERSION
).
tar.bz2
8 ALSA_UTILS_SITE
:=ftp
://ftp.alsa-project.org
/pub
/utils
9 ALSA_UTILS_DIR
:=$(BUILD_DIR
)/alsa-utils-
$(ALSA_UTILS_VERSION
)
10 ALSA_UTILS_CAT
:=$(BZCAT
)
11 ALSA_UTILS_BINARY
:=alsactl
/alsactl
12 ALSA_UTILS_TARGET_BINARY
:=usr
/sbin
/alsactl
14 $(DL_DIR
)/$(ALSA_UTILS_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(ALSA_UTILS_SITE
)/$(ALSA_UTILS_SOURCE
)
17 $(ALSA_UTILS_DIR
)/.unpacked
: $(DL_DIR
)/$(ALSA_UTILS_SOURCE
)
18 $(ALSA_UTILS_CAT
) $(DL_DIR
)/$(ALSA_UTILS_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
19 toolchain
/patch-kernel.sh
$(ALSA_UTILS_DIR
) package
/alsa-utils
/ alsa-utils-
$(ALSA_UTILS_VERSION
)\
*.patch\
*
20 $(CONFIG_UPDATE
) $(ALSA_UTILS_DIR
)
23 $(ALSA_UTILS_DIR
)/.configured
: $(ALSA_UTILS_DIR
)/.unpacked
24 (cd
$(ALSA_UTILS_DIR
); rm -f config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 $(TARGET_CONFIGURE_ARGS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 LDFLAGS
="$(TARGET_LDFLAGS)" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
37 $(ALSA_UTILS_DIR
)/$(ALSA_UTILS_BINARY
): $(ALSA_UTILS_DIR
)/.configured
38 $(MAKE
) CC
=$(TARGET_CC
) -C
$(ALSA_UTILS_DIR
)
41 ALSA_UTILS_TARGETS_
:=
42 ALSA_UTILS_TARGETS_y
:=
44 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSACONF
) += usr
/sbin
/alsaconf
45 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSACTL
) += usr
/sbin
/alsactl
46 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
) += usr
/bin
/alsamixer
47 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_AMIDI
) += usr
/bin
/amidi
48 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_AMIXER
) += usr
/bin
/amixer
49 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_APLAY
) += usr
/bin
/aplay
50 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ARECORD
) += usr
/bin
/arecord
51 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_IECSET
) += usr
/bin
/iecset
52 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ACONNECT
) += usr
/bin
/aconnect
53 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_APLAYMIDI
) += usr
/bin
/aplaymidi
54 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ARECORDMIDI
) += usr
/bin
/arecordmidi
55 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ASEQDUMP
) += usr
/bin
/aseqdump
56 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_ASEQNET
) += usr
/bin
/aseqnet
57 ALSA_UTILS_TARGETS_
$(BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST
) += usr
/bin
/speaker-test
59 $(TARGET_DIR
)/$(ALSA_UTILS_TARGET_BINARY
): $(ALSA_UTILS_DIR
)/$(ALSA_UTILS_BINARY
)
60 $(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(ALSA_UTILS_DIR
) install
61 mkdir
-p
$(TARGET_DIR
)/usr
/bin
62 mkdir
-p
$(TARGET_DIR
)/usr
/sbin
63 for file in
$(ALSA_UTILS_TARGETS_y
); do \
64 cp
-dpf
$(STAGING_DIR
)/$$file $(TARGET_DIR
)/$$file; \
66 if
[ -x
"$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
67 mkdir
-p
$(TARGET_DIR
)/usr
/share
/alsa
/speaker-test
; \
68 mkdir
-p
$(TARGET_DIR
)/usr
/share
/sounds
/alsa
; \
69 cp
-rdpf
$(STAGING_DIR
)/usr
/share
/alsa
/speaker-test
/* $(TARGET_DIR
)/usr
/share
/alsa
/speaker-test
/; \
70 cp
-rdpf
$(STAGING_DIR
)/usr
/share
/sounds
/alsa
/* $(TARGET_DIR
)/usr
/share
/sounds
/alsa
/; \
74 alsa-utils
: alsa-lib ncurses
$(TARGET_DIR
)/$(ALSA_UTILS_TARGET_BINARY
)
76 alsa-utils-source
: $(DL_DIR
)/$(ALSA_UTILS_SOURCE
)
79 for file in
$(ALSA_UTILS_TARGETS_y
); do \
80 rm -f
$(TARGET_DIR
)/$$file; \
82 for file in
$(ALSA_UTILS_TARGETS_
); do \
83 rm -f
$(TARGET_DIR
)/$$file; \
85 -$(MAKE
) -C
$(ALSA_UTILS_DIR
) clean
88 rm -rf
$(ALSA_UTILS_DIR
)
89 #############################################################
91 # Toplevel Makefile options
93 #############################################################
94 ifeq ($(BR2_PACKAGE_ALSA_UTILS
),y
)