2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-07-23 10:10:52 +02:00
|
|
|
#
|
|
|
|
# alsa-utils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-11 22:48:09 +01:00
|
|
|
|
2015-03-02 23:40:47 +01:00
|
|
|
ALSA_UTILS_VERSION = 1.0.29
|
2010-12-12 22:54:00 +01:00
|
|
|
ALSA_UTILS_SOURCE = alsa-utils-$(ALSA_UTILS_VERSION).tar.bz2
|
2014-10-19 13:31:53 +02:00
|
|
|
ALSA_UTILS_SITE = ftp://ftp.alsa-project.org/pub/utils
|
2012-08-19 22:18:24 +02:00
|
|
|
ALSA_UTILS_LICENSE = GPLv2
|
|
|
|
ALSA_UTILS_LICENSE_FILES = COPYING
|
2010-12-12 22:54:00 +01:00
|
|
|
ALSA_UTILS_INSTALL_STAGING = YES
|
2013-12-03 23:10:07 +01:00
|
|
|
ALSA_UTILS_DEPENDENCIES = host-gettext host-pkgconf alsa-lib \
|
2010-12-12 22:54:00 +01:00
|
|
|
$(if $(BR2_PACKAGE_NCURSES),ncurses)
|
2015-01-27 18:51:39 +01:00
|
|
|
# Regenerate aclocal.m4 to pick the patched
|
|
|
|
# version of alsa.m4 from alsa-lib
|
|
|
|
ALSA_UTILS_AUTORECONF = YES
|
|
|
|
ALSA_UTILS_GETTEXTIZE = YES
|
2007-07-23 10:10:52 +02:00
|
|
|
|
2010-12-12 22:54:00 +01:00
|
|
|
ALSA_UTILS_CONF_ENV = \
|
2014-09-17 15:08:20 +02:00
|
|
|
ac_cv_prog_ncurses5_config=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
2007-07-23 10:10:52 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_UTILS_CONF_OPTS = \
|
2010-12-12 22:54:00 +01:00
|
|
|
--disable-xmlto \
|
2014-09-17 15:08:20 +02:00
|
|
|
--with-curses=$(if $(BR2_PACKAGE_NCURSES_WCHAR),ncursesw,ncurses)
|
2007-07-23 10:10:52 +02:00
|
|
|
|
2014-11-11 16:51:22 +01:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
|
|
ALSA_UTILS_DEPENDENCIES += gettext
|
|
|
|
ALSA_UTILS_CONF_ENV += LIBS=-lintl
|
|
|
|
endif
|
|
|
|
|
2010-12-12 22:54:00 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
ALSA_UTILS_CONF_OPTS += --disable-alsamixer --disable-alsatest
|
2010-12-12 22:54:00 +01:00
|
|
|
endif
|
2007-07-23 10:10:52 +02:00
|
|
|
|
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
|
2011-03-14 23:59:10 +01:00
|
|
|
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_APLAY) += usr/bin/aplay usr/bin/arecord
|
2007-08-22 14:35:41 +02:00
|
|
|
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
|
|
|
|
2010-12-12 22:54:00 +01:00
|
|
|
define ALSA_UTILS_INSTALL_TARGET_CMDS
|
2011-04-20 19:41:53 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/var/lib/alsa
|
2010-12-12 22:54:00 +01:00
|
|
|
for i in $(ALSA_UTILS_TARGETS_y); do \
|
2014-11-30 15:18:26 +01:00
|
|
|
$(INSTALL) -D -m 755 $(STAGING_DIR)/$$i $(TARGET_DIR)/$$i || exit 1; \
|
2007-07-23 10:10:52 +02:00
|
|
|
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
|
2010-12-12 22:54:00 +01:00
|
|
|
endef
|
2009-01-23 00:06:28 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|