2007-07-23 10:10:52 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# alsa-utils
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-01-28 19:07:27 +01:00
|
|
|
ALSA_UTILS_VERSION:=1.0.22
|
2007-07-23 14:03:24 +02:00
|
|
|
ALSA_UTILS_SOURCE:=alsa-utils-$(ALSA_UTILS_VERSION).tar.bz2
|
2007-07-23 10:10:52 +02:00
|
|
|
ALSA_UTILS_SITE:=ftp://ftp.alsa-project.org/pub/utils
|
2007-07-23 14:03:24 +02:00
|
|
|
ALSA_UTILS_DIR:=$(BUILD_DIR)/alsa-utils-$(ALSA_UTILS_VERSION)
|
2007-07-23 10:10:52 +02:00
|
|
|
ALSA_UTILS_CAT:=$(BZCAT)
|
|
|
|
ALSA_UTILS_BINARY:=alsactl/alsactl
|
|
|
|
ALSA_UTILS_TARGET_BINARY:=usr/sbin/alsactl
|
|
|
|
|
2010-01-28 19:07:27 +01:00
|
|
|
ALSA_UTILS_CONFIGURE_OPTS =
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER),y)
|
|
|
|
ALSA_UTILS_CONFIGURE_OPTS += --disable-alsamixer --disable-alsatest
|
|
|
|
endif
|
|
|
|
|
2007-07-23 10:10:52 +02:00
|
|
|
$(DL_DIR)/$(ALSA_UTILS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(ALSA_UTILS_SITE),$(ALSA_UTILS_SOURCE))
|
2007-07-23 10:10:52 +02:00
|
|
|
|
|
|
|
$(ALSA_UTILS_DIR)/.unpacked: $(DL_DIR)/$(ALSA_UTILS_SOURCE)
|
|
|
|
$(ALSA_UTILS_CAT) $(DL_DIR)/$(ALSA_UTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2009-01-23 00:06:28 +01:00
|
|
|
toolchain/patch-kernel.sh $(ALSA_UTILS_DIR) package/multimedia/alsa-utils/ alsa-utils-$(ALSA_UTILS_VERSION)\*.patch
|
2007-07-23 10:10:52 +02:00
|
|
|
$(CONFIG_UPDATE) $(ALSA_UTILS_DIR)
|
2007-07-23 14:03:24 +02:00
|
|
|
touch $@
|
2007-07-23 10:10:52 +02:00
|
|
|
|
|
|
|
$(ALSA_UTILS_DIR)/.configured: $(ALSA_UTILS_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(ALSA_UTILS_DIR); rm -f config.cache; \
|
2007-07-23 10:10:52 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-07-23 14:03:24 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-07-23 10:10:52 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2009-08-20 00:07:27 +02:00
|
|
|
ac_cv_prog_ncurses5_config=$(STAGING_DIR)/bin/ncurses5-config \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-07-23 10:10:52 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2010-01-28 19:07:27 +01:00
|
|
|
$(ALSA_UTILS_CONFIGURE_OPTS) \
|
|
|
|
--disable-xmlto \
|
alsa-utils: force the variant of ncurses library
Two variants of the ncurses library exist: the normal one, and the
ncursesw one, which has support for wide char. Currently, Buildroot
only builds the normal variant (the second variant requires
--enable-widec while compiling ncurses).
Unfortunately, when libncursesw is installed on the host, the
configure script of alsa-utils finds /usr/bin/ncursesw5-config and
thinks that the target has this version. Unfortunately, as this is not
the case, it causes a configure failure when trying to link a sample
program against libpanelw (which is part of ncurses).
Therefore, we force the libncurses variant used by alsa-utils to the
normal variant.
Later on, if needed, support for the wide-char variant of the
libncurses library could be added.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-18 19:08:41 +01:00
|
|
|
--with-curses=ncurses \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-07-23 14:03:24 +02:00
|
|
|
touch $@
|
2007-07-23 10:10:52 +02:00
|
|
|
|
|
|
|
$(ALSA_UTILS_DIR)/$(ALSA_UTILS_BINARY): $(ALSA_UTILS_DIR)/.configured
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(ALSA_UTILS_DIR)
|
2007-07-23 14:03:24 +02:00
|
|
|
touch -c $@
|
2007-07-23 10:10:52 +02:00
|
|
|
|
|
|
|
ALSA_UTILS_TARGETS_ :=
|
|
|
|
ALSA_UTILS_TARGETS_y :=
|
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACONF) += usr/sbin/alsaconf
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACTL) += usr/sbin/alsactl
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER) += usr/bin/alsamixer
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_AMIDI) += usr/bin/amidi
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_AMIXER) += usr/bin/amixer
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_APLAY) += usr/bin/aplay
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ARECORD) += usr/bin/arecord
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_IECSET) += usr/bin/iecset
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ACONNECT) += usr/bin/aconnect
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_APLAYMIDI) += usr/bin/aplaymidi
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ARECORDMIDI) += usr/bin/arecordmidi
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ASEQDUMP) += usr/bin/aseqdump
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ASEQNET) += usr/bin/aseqnet
|
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST) += usr/bin/speaker-test
|
2007-07-23 10:10:52 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(ALSA_UTILS_TARGET_BINARY): $(ALSA_UTILS_DIR)/$(ALSA_UTILS_BINARY)
|
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(ALSA_UTILS_DIR) install
|
2007-07-23 14:03:24 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/bin
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/sbin
|
2007-08-22 11:56:41 +02:00
|
|
|
for file in $(ALSA_UTILS_TARGETS_y); do \
|
2007-07-23 10:10:52 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/$$file $(TARGET_DIR)/$$file; \
|
|
|
|
done
|
2007-08-22 11:56:41 +02:00
|
|
|
if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
|
2007-07-23 10:10:52 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/alsa/speaker-test; \
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/sounds/alsa; \
|
|
|
|
cp -rdpf $(STAGING_DIR)/usr/share/alsa/speaker-test/* $(TARGET_DIR)/usr/share/alsa/speaker-test/; \
|
|
|
|
cp -rdpf $(STAGING_DIR)/usr/share/sounds/alsa/* $(TARGET_DIR)/usr/share/sounds/alsa/; \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2010-04-26 22:58:25 +02:00
|
|
|
if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/; \
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/alsa/; \
|
|
|
|
cp -rdpf $(STAGING_DIR)/usr/share/alsa/ $(TARGET_DIR)/usr/share/alsa/; \
|
|
|
|
fi
|
2007-07-23 14:03:24 +02:00
|
|
|
touch -c $@
|
2007-07-23 10:10:52 +02:00
|
|
|
|
2010-01-28 19:07:27 +01:00
|
|
|
alsa-utils: alsa-lib $(if $(BR2_PACKAGE_NCURSES),ncurses) $(if $(BR2_PACKAGE_LIBINTL),libintl) $(if $(BR2_PACKAGE_LIBICONV),libiconv) $(TARGET_DIR)/$(ALSA_UTILS_TARGET_BINARY)
|
2007-07-23 10:10:52 +02:00
|
|
|
|
2009-01-23 00:06:28 +01:00
|
|
|
alsa-utils-unpacked: $(ALSA_UTILS_DIR)/.unpacked
|
|
|
|
|
2008-02-19 14:39:25 +01:00
|
|
|
alsa-utils-source: $(DL_DIR)/$(ALSA_UTILS_SOURCE)
|
|
|
|
|
2007-07-23 10:10:52 +02:00
|
|
|
alsa-utils-clean:
|
2007-08-22 11:56:41 +02:00
|
|
|
for file in $(ALSA_UTILS_TARGETS_y); do \
|
2007-07-23 10:10:52 +02:00
|
|
|
rm -f $(TARGET_DIR)/$$file; \
|
|
|
|
done
|
2007-08-22 11:56:41 +02:00
|
|
|
for file in $(ALSA_UTILS_TARGETS_); do \
|
2007-07-23 10:10:52 +02:00
|
|
|
rm -f $(TARGET_DIR)/$$file; \
|
|
|
|
done
|
|
|
|
-$(MAKE) -C $(ALSA_UTILS_DIR) clean
|
|
|
|
|
|
|
|
alsa-utils-dirclean:
|
|
|
|
rm -rf $(ALSA_UTILS_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_UTILS),y)
|
2007-07-23 10:10:52 +02:00
|
|
|
TARGETS+=alsa-utils
|
|
|
|
endif
|