Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (C) 2008-2014 OpenWrt.org
  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:=sispmctl
  9. PKG_VERSION:=3.1+20120206
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=5ff4a05a5bcb6a64a9d6f77fed47014512f66b11
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=https://git.code.sf.net/p/sispmctl/git
  16. PKG_MAINTAINER:=Richard Kunze <richard.kunze@web.de>
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_INSTALL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/sispmctl
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Silver Shield PM Control for Linux
  25. URL:=http://sispmctl.sourceforge.net/
  26. DEPENDS:=+libusb-compat
  27. endef
  28. define Package/sispmctl/description
  29. The sispmctl tool can control Gembird SIS-PM Silver Shield
  30. programmable power outlet strips (also known under the name
  31. Revolt Intelli-Plug) from the command line.
  32. .
  33. It can be used to switch on or off any of the programmable
  34. power sockets of the SIS-PM via USB. It can also show the
  35. current status of each power socket, and it can handle
  36. multiple SIS-PM devices, too.
  37. endef
  38. TARGET_CFLAGS += -D_GNU_SOURCE
  39. CONFIGURE_ARGS += \
  40. --enable-webless \
  41. --disable-dependency-tracking
  42. define Package/sispmctl/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  45. endef
  46. $(eval $(call BuildPackage,sispmctl))