65736d0e58e2c7286036af3aed480d9d46acb1cd
[openwrt/svn-archive/archive.git] / utils / alsa-utils / Makefile
1 #
2 # Copyright (C) 2006 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.13
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:=dfe4bb5d3217f3ec662b172ce8397cf0
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/alsa-utils
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+alsa-lib +libncurses +libpthread
29 TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
30 URL:=http://www.alsa-project.org/
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --disable-rpath \
36 )
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Package/alsa-utils/install
46 install -d -m0755 $(1)/usr/bin
47 $(CP) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,alsa-utils))