Added optional menu item to include speaker-test and wav files
[openwrt/svn-archive/archive.git] / utils / alsa-utils / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=alsa-utils
12 PKG_VERSION:=1.0.19
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/
17 PKG_MD5SUM:=5ff0379c707c1a29083233edc9ab4e06
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/alsa-utils
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+alsa-lib +libncurses +libpthread
26 TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
27 URL:=http://www.alsa-project.org/
28 endef
29
30 define Package/alsa-utils-tests
31 $(call Package/alsa-utils/Default)
32 SECTION:=utils
33 CATEGORY:=Utilities
34 TITLE:=ALSA utilities test data (adds ~1.3M to image)
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --disable-rpath \
40 --disable-alsatest \
41 --disable-xmlto \
42 )
43 endef
44
45 define Package/alsa-utils/install
46 $(INSTALL_DIR) $(1)/usr/{s,}bin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
51
52 $(INSTALL_DIR) $(1)/usr/share/alsa/init
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
55 $(1)/usr/share/alsa/init/
56 endef
57
58 define Package/alsa-utils-tests/install
59 $(INSTALL_DIR) $(1)/usr/{s,}bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
61 $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
64 $(1)/usr/share/sounds/alsa/
65 endef
66
67 $(eval $(call BuildPackage,alsa-utils))
68 $(eval $(call BuildPackage,alsa-utils-tests))