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.

93 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 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.0.28
  10. PKG_RELEASE:=2
  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:=361552d5b1cacd0a1e7ba09e69990211
  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 +libncurses +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. define Build/Configure
  40. $(call Build/Configure/Default, \
  41. --disable-rpath \
  42. --disable-alsatest \
  43. --disable-xmlto \
  44. , \
  45. ac_cv_prog_ncurses5_config=no \
  46. ac_cv_prog_ncursesw5_config=no \
  47. )
  48. endef
  49. define Package/alsa-utils/install
  50. $(INSTALL_DIR) $(1)/usr/{s,}bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
  56. $(INSTALL_DIR) $(1)/usr/share/alsa/init
  57. $(INSTALL_DATA) \
  58. $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
  59. $(1)/usr/share/alsa/init/
  60. endef
  61. define Package/alsa-utils-seq/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aconnect $(1)/usr/bin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amidi $(1)/usr/bin/
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplaymidi $(1)/usr/bin/
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecordmidi $(1)/usr/bin/
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqdump $(1)/usr/bin/
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqnet $(1)/usr/bin/
  69. endef
  70. define Package/alsa-utils-tests/install
  71. $(INSTALL_DIR) $(1)/usr/{s,}bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
  73. $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
  74. $(INSTALL_DATA) \
  75. $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
  76. $(1)/usr/share/sounds/alsa/
  77. endef
  78. $(eval $(call BuildPackage,alsa-utils))
  79. $(eval $(call BuildPackage,alsa-utils-seq))
  80. $(eval $(call BuildPackage,alsa-utils-tests))