[packages] fix alsa-utils dependencies
[openwrt/svn-archive/archive.git] / utils / alsa-utils / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=alsa-utils
11 PKG_VERSION:=1.0.24.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
16 http://alsa.cybermirror.org/utils/
17 PKG_MD5SUM:=8238cd57cb301d1c36bcf0ecb59ce6b2
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 DEPENDS:=+alsa-lib +libpthread
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --disable-rpath \
41 --disable-alsatest \
42 --disable-xmlto \
43 , \
44 ac_cv_prog_ncurses5_config=no \
45 ac_cv_prog_ncursesw5_config=no \
46 )
47 endef
48
49 define Package/alsa-utils/install
50 $(INSTALL_DIR) $(1)/usr/{s,}bin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
56
57 $(INSTALL_DIR) $(1)/usr/share/alsa/init
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
60 $(1)/usr/share/alsa/init/
61 endef
62
63 define Package/alsa-utils-tests/install
64 $(INSTALL_DIR) $(1)/usr/{s,}bin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
66 $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
67 $(INSTALL_DATA) \
68 $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
69 $(1)/usr/share/sounds/alsa/
70 endef
71
72 $(eval $(call BuildPackage,alsa-utils))
73 $(eval $(call BuildPackage,alsa-utils-tests))