alsa-utils: fix usr/share/alsa installation to target
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 26 Apr 2010 20:58:25 +0000 (22:58 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 26 Apr 2010 20:58:25 +0000 (22:58 +0200)
Closes #1573

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/multimedia/alsa-utils/alsa-utils.mk

diff --git a/CHANGES b/CHANGES
index 2e4cdeb390bf3b14af183119ce97c85498297344..7decafdb6f5a89cfa727bc7cd831064ceaf7452f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -12,7 +12,7 @@
        New packages: librsync, libatomic_ops, libusb-compat, lmbench,
        netperf, squid
 
-       Updated/fixed packages: busybox, dnsmasq, dosfstools,
+       Updated/fixed packages: alsa-utils, busybox, dnsmasq, dosfstools,
        e2fsprogs, fbv, freetype, iperf, iptables, iw, less,
        libaio,libdrm, libgcrypt, libglib2, libpng, libxml2, matchbox,
        mdadm, memstat, mesa3d, mtd-utils, nano, openssl, pciutils,
@@ -64,6 +64,7 @@
        #1555: Fix default uclibc-0.9.31 configuration
        #1561: [SECURITY] Update samba to 3.3.12
        #1567: openssl0.9.8n fails to compile
+       #1573: Alsa-utils alsactl/init/* not installed to target
        #1591: portmap fails to compile
 
 2010.02, Release February 26th, 2010:
index 99d85ce01b3decb717c2e361bab5789d751331a4..8348f4cddeb7e830bb59b4ba45d64bdd2c14754e 100644 (file)
@@ -78,6 +78,11 @@ $(TARGET_DIR)/$(ALSA_UTILS_TARGET_BINARY): $(ALSA_UTILS_DIR)/$(ALSA_UTILS_BINARY
                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
        touch -c $@
 
 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)