openwrt-packages/utils/uledd/Makefile

34 lines
867 B
Makefile
Raw Permalink Normal View History

include $(TOPDIR)/rules.mk
PKG_NAME:=uledd
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/blogic/uledd.git
PKG_SOURCE_DATE:=2020-09-15
PKG_SOURCE_VERSION:=21d14d950bfe702b8c1f77de20f7529266dbd0f7
PKG_MIRROR_HASH:=c13f2df22bb84c831f4d2381df4cd3638a53b6823a7ef9dad13a64031c8c4df5
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
PKG_LICENSE:=LGPL-2.1-only
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/uledd
SECTION:=utils
CATEGORY:=Utilities
uledd: bump to latest version 1.0.1 018f57e713fa cmake: bump version to 1.0.1 b90c65be87c5 ubus: add state method 034e3a77680d scene: add dumping of state to blobmsg d21b0946e6f6 scene: add all LEDs during scene creation f31a6f2b8c3b led: add dumping of state to blobmsg cead0f7f54f6 add support for scenes with priorities 8637a86307d7 led: remove string format from led_state_str 0eaa67a5a687 led: add led_from_path 8243708905aa tests: add basic blob-led unit test 99bcdaa306f7 refactor blob LED parsing into separate unit 210c5e3c5128 led: change sysfs LED path for unit tests 310a676e50d7 add cram based unit tests eb7acbb08e36 led: led_add: add debug output ca9c762fb29a led: make timer tick interval variable 44d072039680 led: allow running and stopping df0c7772c9c6 timer: add missing includes 2aab48d1143c cmake: add sources into static library 83d4189606ca fix multiple timer drifts by using singular timer for all LEDs 3abe097ebecf log: output function name in debug log messages 5c768b337df8 led: set current brightness only after success cf93720951bc allow overriding of default ubus socket path b642b650a612 led: fix initial LED fading out ba00ca0e886c fix deprecated SPDX license identifier 766448f68e69 convert content of README into Markdown format 079e773e3250 rename README into README.md 76eb126d9eb5 add LICENSE file 7a006926c442 add initial GitLab CI support cc94cd4c59b0 replace stderr based logging with ulog 7aa9c35a9581 add basic application versioning ecd26be4c5dd add basic logging cc42a9c79ad9 factor out ubus stuff into separate unit 13a589678c29 factor out led stuff into separate unit 7763972de980 fix sign issue spotted by compiler aef09580c960 cmake: enable extra compiler warnings 97663b4e1d15 cmake: fix include dirs and libs lookup 875a9e15b10a fixes a small bug that failed to reset the state to LED_SET when reconfiguring a LED Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-11 22:23:56 +01:00
DEPENDS:=+libubox +libubus +libblobmsg-json +libjson-c
TITLE:=PWM/RGB LED ubus frontend
endef
define Package/uledd/install
$(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/uledd $(1)/sbin/
$(INSTALL_BIN) ./files/uledd.init $(1)/etc/init.d/uledd
endef
$(eval $(call BuildPackage,uledd))