You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=alsa-utils
  9. PKG_VERSION:=1.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
  13. http://alsa.cybermirror.org/utils/
  14. PKG_MD5SUM:=b9d6102fbbd0b68040bb77023ed30c0c
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/alsa-utils
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:=+alsa-lib +libncursesw +libpthread
  22. TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
  23. URL:=http://www.alsa-project.org/
  24. endef
  25. define Package/alsa-utils-seq
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. DEPENDS:=+alsa-lib +libpthread
  29. TITLE:=ALSA sequencer utilities
  30. URL:=http://www.alsa-project.org/
  31. endef
  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. DEPENDS:=+alsa-lib +libpthread
  38. endef
  39. CONFIGURE_ARGS+= \
  40. --disable-rpath \
  41. --disable-alsatest \
  42. --disable-bat \
  43. --disable-xmlto \
  44. --with-curses=ncursesw
  45. define Package/alsa-utils/install
  46. $(INSTALL_DIR) $(1)/usr/{s,}bin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
  52. $(INSTALL_DIR) $(1)/usr/share/alsa/init
  53. $(INSTALL_DATA) \
  54. $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
  55. $(1)/usr/share/alsa/init/
  56. endef
  57. define Package/alsa-utils-seq/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aconnect $(1)/usr/bin/
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amidi $(1)/usr/bin/
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplaymidi $(1)/usr/bin/
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecordmidi $(1)/usr/bin/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqdump $(1)/usr/bin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqnet $(1)/usr/bin/
  65. endef
  66. define Package/alsa-utils-tests/install
  67. $(INSTALL_DIR) $(1)/usr/{s,}bin
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
  69. $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
  70. $(INSTALL_DATA) \
  71. $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
  72. $(1)/usr/share/sounds/alsa/
  73. endef
  74. $(eval $(call BuildPackage,alsa-utils))
  75. $(eval $(call BuildPackage,alsa-utils-seq))
  76. $(eval $(call BuildPackage,alsa-utils-tests))