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.

43 lines
1.0 KiB

8 years ago
8 years ago
  1. #
  2. # Copyright (C) 2017 Chris Blake (chrisrblake93@gmail.com)
  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:=beep
  9. PKG_VERSION:=1.4.12
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/spkr-beep/beep/tar.gz/v$(PKG_VERSION)?
  15. PKG_HASH:=6188d0f0c180db7a30467b5b6065a3cb5d2665b937d2e8c40366efb52bf689fe
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/beep
  18. SECTION:=sound
  19. CATEGORY:=Sound
  20. DEPENDS:=+TARGET_x86:kmod-pcspkr @!TARGET_x86:kmod-gpio-beeper
  21. TITLE:=Play beep sounds through a PC speaker
  22. URL:=https://github.com/spkr-beep/beep
  23. endef
  24. define Package/beep/description
  25. This program plays beeps through the PC speaker
  26. endef
  27. MAKE_FLAGS += \
  28. CFLAGS="$(TARGET_CFLAGS)"
  29. define Package/beep/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
  32. endef
  33. $(eval $(call BuildPackage,beep))