Bez popisu

Makefile 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #
  2. # Copyright (C) 2006-2012 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.27.2
  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:=b65e9a04181bd7c9db7667a4566f8dc3
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/alsa-utils
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. DEPENDS:=+alsa-lib +libncurses +libpthread
  21. TITLE:=ALSA (Advanced Linux Sound Architecture) utilities
  22. URL:=http://www.alsa-project.org/
  23. endef
  24. define Package/alsa-utils-seq
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. DEPENDS:=+alsa-lib +libpthread
  28. TITLE:=ALSA sequencer utilities
  29. URL:=http://www.alsa-project.org/
  30. endef
  31. define Package/alsa-utils-tests
  32. $(call Package/alsa-utils/Default)
  33. SECTION:=utils
  34. CATEGORY:=Utilities
  35. TITLE:=ALSA utilities test data (adds ~1.3M to image)
  36. DEPENDS:=+alsa-lib +libpthread
  37. endef
  38. define Build/Configure
  39. $(call Build/Configure/Default, \
  40. --disable-rpath \
  41. --disable-alsatest \
  42. --disable-xmlto \
  43. , \
  44. ac_cv_prog_ncurses5_config=no \
  45. ac_cv_prog_ncursesw5_config=no \
  46. )
  47. endef
  48. define Package/alsa-utils/install
  49. $(INSTALL_DIR) $(1)/usr/{s,}bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alsamixer $(1)/usr/bin/
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplay $(1)/usr/bin/
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecord $(1)/usr/bin/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/alsactl $(1)/usr/sbin/
  55. $(INSTALL_DIR) $(1)/usr/share/alsa/init
  56. $(INSTALL_DATA) \
  57. $(PKG_INSTALL_DIR)/usr/share/alsa/init/* \
  58. $(1)/usr/share/alsa/init/
  59. endef
  60. define Package/alsa-utils-seq/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aconnect $(1)/usr/bin/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amidi $(1)/usr/bin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aplaymidi $(1)/usr/bin/
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arecordmidi $(1)/usr/bin/
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqdump $(1)/usr/bin/
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aseqnet $(1)/usr/bin/
  68. endef
  69. define Package/alsa-utils-tests/install
  70. $(INSTALL_DIR) $(1)/usr/{s,}bin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speaker-test $(1)/usr/bin/
  72. $(INSTALL_DIR) $(1)/usr/share/sounds/alsa
  73. $(INSTALL_DATA) \
  74. $(PKG_INSTALL_DIR)/usr/share/sounds/alsa/* \
  75. $(1)/usr/share/sounds/alsa/
  76. endef
  77. $(eval $(call BuildPackage,alsa-utils))
  78. $(eval $(call BuildPackage,alsa-utils-seq))
  79. $(eval $(call BuildPackage,alsa-utils-tests))