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.

47 lines
1.1 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_REV:=0d790fa45777896749a885c3b93b2c1476d59f20
  10. PKG_VERSION:=1.3
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://github.com/johnath/beep.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_MIRROR_HASH:=fc97d41e68d7b7e43a972e3416dd9326acc40efe66856271ccb36e3678464dec
  18. PKG_LICENSE:=GPL-2.0
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/beep
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. DEPENDS:=@(PACKAGE_kmod-pcspkr||PACKAGE_kmod-gpio-beeper)
  25. TITLE:=Play beep sounds through a PC speaker
  26. URL:=http://johnath.com/beep/README
  27. endef
  28. define Package/beep/description
  29. This program plays beeps through the PC speaker
  30. endef
  31. MAKE_FLAGS += \
  32. CFLAGS="$(TARGET_CFLAGS)"
  33. define Package/beep/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
  36. endef
  37. $(eval $(call BuildPackage,beep))