1 # Copyright (C) 2016 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=@SF
/relayctl
/relayctl-
$(PKG_VERSION
)
15 PKG_MAINTAINER
:=Heinrich Schuchardt
<xypron.glpk@gmx.de
>
16 PKG_MD5SUM
:=24c848e0d705421dcd6accfffa31f704
17 PKG_LICENSE
:=BSD-3-Clause
18 PKG_LICENSE_FILES
:=COPYING
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/relayctl
27 TITLE
:=Simple command-line control of SainSmart USB relay boards
28 URL
:=https
://github.com
/darryln
/relayctl
29 DEPENDS
:= +libftdi1
+udev
32 define Package
/relayctl
/description
33 Simple command-line control of SainSmart USB relay boards based on
34 FTDI chips using bitbang mode.
37 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/libftdi1
39 define Package
/relayctl
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(1)/usr
/bin
/
42 $(INSTALL_DIR
) $(1)/lib
/udev
/rules.d
/
43 $(CP
) $(PKG_BUILD_DIR
)/examples
/60-relayctl.rules
$(1)/lib
/udev
/rules.d
/
46 $(eval
$(call BuildPackage
,relayctl
))