acinonyx e158801f4f [packages] alsa-utils: Update to version 1.0.23 (#8106)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-21 08:34:07 +00:00

70 lines
1.9 KiB
Makefile

#
# Copyright (C) 2006-2010 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.23
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:=cb0cf46029ac9549cf3a31bff6a4f4e1
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/bin/arecord $(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))