summaryrefslogtreecommitdiffstats
path: root/utils/ucode-mod-lvgl/Makefile
blob: b89211db917df33a998dc510d67ce97dcbd81e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include $(TOPDIR)/rules.mk

PKG_NAME:=ucode-mod-lvgl
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/blogic/ucode-mod-lvgl.git
PKG_MIRROR_HASH:=e8ab35789be25780d9909ba20eaa88f174f240e4201ea2d6f98ea94a667515d0
PKG_SOURCE_DATE:=2026-10-22
PKG_SOURCE_VERSION:=df617f0018616bd860ad1a0a1aa77e088ce7b1d4

PKG_BUILD_DEPENDS:=lvgl

PKG_LICENSE:=GPL-2.0-only OFL-1.1
PKG_LICENSE_FILES:=LICENSE.txt assets/fonts/OFL.txt
PKG_MAINTAINER:=John Crispin <john@phrozen.org>

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

CMAKE_INSTALL:=1

define Package/ucode-mod-lvgl
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=LVGL module for ucode
  DEPENDS:=+libucode +libdrm +ucode-mod-fs +ucode-mod-uci \
	+ucode-mod-uloop +ucode-mod-ubus
endef

define Package/ucode-mod-lvgl/description
  Binds LVGL to ucode, so a user interface for a small DRM display can be
  written in ucode rather than in C. Also carries the panel library the
  applications on it share, imported as lvgl.<name>, with the Inter faces and
  the shared icons it draws. Application artwork is loaded at run time with
  lv.image_load().
endef

define Package/ucode-mod-lvgl/install
	$(INSTALL_DIR) $(1)/usr/lib/ucode $(1)/usr/share/ucode $(1)/usr/share/lvgl
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ucode/lv.so $(1)/usr/lib/ucode/
	$(CP) $(PKG_INSTALL_DIR)/usr/share/ucode/lvgl $(1)/usr/share/ucode/
	$(CP) $(PKG_INSTALL_DIR)/usr/share/lvgl/. $(1)/usr/share/lvgl/
endef

$(eval $(call BuildPackage,ucode-mod-lvgl))