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.

105 lines
3.1 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.2.6
  10. PKG_RELEASE:=$(AUTORELEASE)
  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:=6a1efd8a1f1d9d38e489633eaec1fffa5c315663b316cab804be486887e6145d
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/alsa-utils
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+alsa-lib +alsa-ucm-conf +libncursesw +libpthread
  26. TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
  27. URL:=https://www.alsa-project.org/
  28. endef
  29. define Package/alsa-utils-seq
  30. SECTION:=sound
  31. CATEGORY:=Sound
  32. DEPENDS:=+alsa-lib +libpthread
  33. TITLE:=ALSA sequencer utilities
  34. URL:=https://www.alsa-project.org/
  35. endef
  36. define Package/alsa-utils-tests
  37. SECTION:=sound
  38. CATEGORY:=Sound
  39. TITLE:=ALSA utilities test data (adds ~1.3M to image)
  40. DEPENDS:=+alsa-lib +libpthread
  41. URL:=https://www.alsa-project.org/
  42. endef
  43. CONFIGURE_ARGS += \
  44. --disable-rpath \
  45. --disable-alsatest \
  46. --disable-bat \
  47. --disable-xmlto \
  48. --disable-rst2man \
  49. --with-curses=ncursesw
  50. CONFIGURE_VARS += \
  51. ac_cv_header_samplerate_h=no
  52. TARGET_LDFLAGS += -latopology
  53. define Package/alsa-utils/install
  54. $(INSTALL_DIR) $(1)/usr/{s,}bin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
  60. $(INSTALL_DIR) $(1)/usr/share/alsa/init
  61. $(INSTALL_DATA) \
  62. $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
  63. $(1)/usr/share/alsa/init/
  64. endef
  65. define Package/alsa-utils-seq/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aconnect $(1)/usr/bin/
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amidi $(1)/usr/bin/
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplaymidi $(1)/usr/bin/
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecordmidi $(1)/usr/bin/
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iecset $(1)/usr/bin/
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsaloop $(1)/usr/bin/
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsatplg $(1)/usr/bin/
  74. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsaucm $(1)/usr/bin/
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqdump $(1)/usr/bin/
  76. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqnet $(1)/usr/bin/
  77. endef
  78. define Package/alsa-utils-tests/install
  79. $(INSTALL_DIR) $(1)/usr/{s,}bin
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
  81. $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
  82. $(INSTALL_DATA) \
  83. $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
  84. $(1)/usr/share/sounds/alsa/
  85. endef
  86. $(eval $(call BuildPackage,alsa-utils))
  87. $(eval $(call BuildPackage,alsa-utils-seq))
  88. $(eval $(call BuildPackage,alsa-utils-tests))