03f36427e4
[ Thomas: remove all patches, since they have been merged. Implement the target uninstallation step, fix many issues. ] [Peter: fix target install / uninstall steps] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
61 lines
2.5 KiB
Makefile
61 lines
2.5 KiB
Makefile
#############################################################
|
|
#
|
|
# alsa-utils
|
|
#
|
|
#############################################################
|
|
ALSA_UTILS_VERSION = 1.0.23
|
|
ALSA_UTILS_SOURCE = alsa-utils-$(ALSA_UTILS_VERSION).tar.bz2
|
|
ALSA_UTILS_SITE = ftp://ftp.alsa-project.org/pub/utils
|
|
ALSA_UTILS_INSTALL_STAGING = YES
|
|
ALSA_UTILS_DEPENDENCIES = alsa-lib \
|
|
$(if $(BR2_PACKAGE_NCURSES),ncurses)
|
|
|
|
ALSA_UTILS_CONF_ENV = \
|
|
ac_cv_prog_ncurses5_config=$(STAGING_DIR)/bin/ncurses5-config
|
|
|
|
ALSA_UTILS_CONF_OPT = \
|
|
--disable-xmlto \
|
|
--with-curses=ncurses
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER),y)
|
|
ALSA_UTILS_CONF_OPT += --disable-alsamixer --disable-alsatest
|
|
endif
|
|
|
|
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
|
|
|
|
define ALSA_UTILS_INSTALL_TARGET_CMDS
|
|
for i in $(ALSA_UTILS_TARGETS_y); do \
|
|
install -D -m 755 $(STAGING_DIR)/$$i $(TARGET_DIR)/$$i; \
|
|
done
|
|
if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
|
|
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/; \
|
|
fi
|
|
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
|
|
endef
|
|
|
|
define ALSA_UTILS_UNINSTALL_TARGET_CMDS
|
|
rm -f $(addprefix $(TARGET_DIR)/,$(ALSA_UTILS_TARGETS_) $(ALSA_UTILS_TARGETS_y))
|
|
endef
|
|
|
|
$(eval $(call AUTOTARGETS,package/multimedia,alsa-utils))
|