2009-01-24 00:33:58 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-10-22 21:09:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=alsa-utils
|
2009-01-24 16:15:24 +00:00
|
|
|
PKG_VERSION:=1.0.19
|
2006-10-22 21:09:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/
|
2009-01-24 16:15:24 +00:00
|
|
|
PKG_MD5SUM:=5ff0379c707c1a29083233edc9ab4e06
|
|
|
|
PKG_INSTALL:=1
|
2006-10-22 21:09:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-02-06 10:38:50 +00:00
|
|
|
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
|
|
|
|
|
2006-10-22 21:09:51 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-rpath \
|
2009-01-24 16:15:24 +00:00
|
|
|
--disable-alsatest \
|
|
|
|
--disable-xmlto \
|
2006-10-22 21:09:51 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/alsa-utils/install
|
2009-01-24 00:33:58 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/{s,}bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(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/
|
2009-01-24 00:33:58 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
|
2009-01-24 16:15:24 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/alsa/init
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
|
|
|
|
$(1)/usr/share/alsa/init/
|
2006-10-22 21:09:51 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-06 10:38:50 +00:00
|
|
|
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
|
|
|
|
|
2006-10-22 21:09:51 +00:00
|
|
|
$(eval $(call BuildPackage,alsa-utils))
|
2009-02-06 10:38:50 +00:00
|
|
|
$(eval $(call BuildPackage,alsa-utils-tests))
|