c10d7bda0d12feb02816d88c6492de251bd2a6e4
[packages.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                 http://alsa.cybermirror.org/utils/
18
19 PKG_MD5SUM:=5ff0379c707c1a29083233edc9ab4e06
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/alsa-utils
25   SECTION:=utils
26   CATEGORY:=Utilities
27   DEPENDS:=+alsa-lib +libncurses +libpthread
28   TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
29   URL:=http://www.alsa-project.org/
30 endef
31
32 define Package/alsa-utils-tests
33   $(call Package/alsa-utils/Default)
34   SECTION:=utils
35   CATEGORY:=Utilities
36   TITLE:=ALSA utilities test data (adds ~1.3M to image)
37 endef
38
39 define Build/Configure
40         $(call Build/Configure/Default, \
41                 --disable-rpath \
42                 --disable-alsatest \
43                 --disable-xmlto \
44         )
45 endef
46
47 define Package/alsa-utils/install
48         $(INSTALL_DIR) $(1)/usr/{s,}bin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
50         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
52         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
53
54         $(INSTALL_DIR) $(1)/usr/share/alsa/init
55         $(INSTALL_DATA) \
56             $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
57             $(1)/usr/share/alsa/init/
58 endef
59
60 define Package/alsa-utils-tests/install
61         $(INSTALL_DIR) $(1)/usr/{s,}bin
62         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
63         $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
64         $(INSTALL_DATA) \
65             $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
66             $(1)/usr/share/sounds/alsa/
67 endef
68
69 $(eval $(call BuildPackage,alsa-utils))
70 $(eval $(call BuildPackage,alsa-utils-tests))