lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1067B)


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