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.

46 lines
1.0 KiB

8 years ago
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:=1
  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_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/beep
  21. SECTION:=sound
  22. CATEGORY:=Sound
  23. DEPENDS:=@(TARGET_x86||TARGET_x86_64) +kmod-pcspkr
  24. TITLE:=Play beep sounds through a PC speaker
  25. URL:=http://johnath.com/beep/README
  26. endef
  27. define Package/beep/description
  28. This program plays beeps through the PC speaker
  29. endef
  30. MAKE_FLAGS += \
  31. CFLAGS="$(TARGET_CFLAGS)"
  32. define Package/beep/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
  35. endef
  36. $(eval $(call BuildPackage,beep))