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.

94 lines
2.9 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.7
  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://distfiles.gentoo.org/distfiles/
  14. PKG_HASH:=1db27fb54ab7fdeb54b00d68b8a174808ffea198cfbd67e3c959482194e1540a
  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:=sound
  20. CATEGORY:=Sound
  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:=sound
  27. CATEGORY:=Sound
  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. SECTION:=sound
  34. CATEGORY:=Sound
  35. TITLE:=ALSA utilities test data (adds ~1.3M to image)
  36. DEPENDS:=+alsa-lib +libpthread
  37. URL:=http://www.alsa-project.org/
  38. endef
  39. CONFIGURE_ARGS+= \
  40. --disable-rpath \
  41. --disable-alsatest \
  42. --disable-bat \
  43. --disable-xmlto \
  44. --disable-rst2man \
  45. --with-curses=ncursesw
  46. define Package/alsa-utils/install
  47. $(INSTALL_DIR) $(1)/usr/{s,}bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
  53. $(INSTALL_DIR) $(1)/usr/share/alsa/init
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
  56. $(1)/usr/share/alsa/init/
  57. endef
  58. define Package/alsa-utils-seq/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aconnect $(1)/usr/bin/
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amidi $(1)/usr/bin/
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplaymidi $(1)/usr/bin/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecordmidi $(1)/usr/bin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iecset $(1)/usr/bin/
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsaloop $(1)/usr/bin/
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsatplg $(1)/usr/bin/
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsaucm $(1)/usr/bin/
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqdump $(1)/usr/bin/
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqnet $(1)/usr/bin/
  70. endef
  71. define Package/alsa-utils-tests/install
  72. $(INSTALL_DIR) $(1)/usr/{s,}bin
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
  74. $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
  75. $(INSTALL_DATA) \
  76. $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
  77. $(1)/usr/share/sounds/alsa/
  78. endef
  79. $(eval $(call BuildPackage,alsa-utils))
  80. $(eval $(call BuildPackage,alsa-utils-seq))
  81. $(eval $(call BuildPackage,alsa-utils-tests))