florian 6c330f26a3 [package] update alsa-utils to 1.0.20 (#5365)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16511 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-18 15:50:49 +00:00

70 lines
1.8 KiB
Makefile

#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=alsa-utils
PKG_VERSION:=1.0.20
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
http://alsa.cybermirror.org/utils/
PKG_MD5SUM:=6837e673ef19da96d8bd2f9e18cd9574
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/alsa-utils
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+alsa-lib +libncurses +libpthread
TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
URL:=http://www.alsa-project.org/
endef
define Package/alsa-utils-tests
$(call Package/alsa-utils/Default)
SECTION:=utils
CATEGORY:=Utilities
TITLE:=ALSA utilities test data (adds ~1.3M to image)
endef
define Build/Configure
$(call Build/Configure/Default, \
--disable-rpath \
--disable-alsatest \
--disable-xmlto \
)
endef
define Package/alsa-utils/install
$(INSTALL_DIR) $(1)/usr/{s,}bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/share/alsa/init
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
$(1)/usr/share/alsa/init/
endef
define Package/alsa-utils-tests/install
$(INSTALL_DIR) $(1)/usr/{s,}bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/sounds/alsa
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
$(1)/usr/share/sounds/alsa/
endef
$(eval $(call BuildPackage,alsa-utils))
$(eval $(call BuildPackage,alsa-utils-tests))