2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_BASE_VERSION
:=0.5.8
13 PKG_VERSION
:=$(PKG_BASE_VERSION
)+git2070222
17 PKG_SOURCE_URL
:=https
://github.com
/lcdproc
/lcdproc.git
18 PKG_SOURCE_VERSION
:=156983afab6d8f49d9a84e2a0929874eac569cc3
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_BASE_VERSION
)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
).
tar.gz
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_BASE_VERSION
)
24 #PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
25 #PKG_SOURCE_URL:=https://github.com/lcdproc/lcdproc/releases/download/v$(PKG_VERSION)/
26 #PKG_MD5SUM:=1dd25676946c61184c6f51cc0a75379e
27 PKG_MAINTAINER
:=Harald Geyer
<harald@ccbib.org
>, \
28 Philip Prindeville
<philipp@redfish-solutions.com
>
30 PKG_LICENSE_FILES
:=COPYING
34 include $(INCLUDE_DIR
)/package.mk
36 define Package
/lcdproc
/Default
39 URL
:=http
://lcdproc.org
/
42 define Package
/lcdproc
/Default-description
43 LCDProc is a daemon and clients for displaying system information
44 on various LCD displays
48 define Package
/lcdproc-clients
49 $(call Package
/lcdproc
/Default
)
50 TITLE
:=LCD Display clients
53 define Package
/lcdproc-clients
/description
54 $(call Package
/lcdproc
/Default-description
)
56 This package contains the clients distributed by the official lcdproc
58 * lcdproc
-- displays system information
59 * lcdexec
-- displays a menu structure to execute commands
60 * lcdvc
-- shows the content of the system console
63 define Package
/lcdproc-clients
/conffiles
70 define Package
/lcdproc-server
71 $(call Package
/lcdproc
/Default
)
72 TITLE
:=LCD Display server
76 define LCDPROC_CORE_DRIVERS_TEXT
77 bayrad CFontzPacket CFontz CwLnx ea65 EyeboxOne glk icp_a106 imonlcd
78 imon irtrans joy lb216 lcdm001 lcterm linux_input MD8800 ms6931
79 mtc_s16209x MtxOrb NoritakeVFD Olimex_MOD_LCD1x9 pyramid rawserial
80 serialPOS serialVFD sli SureElec text tyan vlsys_m428 yard2LCD
83 LCDPROC_CORE_DRIVERS
:=$(strip $(LCDPROC_CORE_DRIVERS_TEXT
))
85 define Package
/lcdproc-server
/description
86 $(call Package
/lcdproc
/Default-description
)
88 This package contains the server and a core set of display drivers
89 without external dependencies
:
90 $(LCDPROC_CORE_DRIVERS_TEXT
)
93 define Package
/lcdproc-server
/conffiles
98 define Package
/lcdproc-drivers
99 $(call Package
/lcdproc
/Default
)
100 TITLE
:=LCD Display extra drivers
101 DEPENDS
:=+lcdproc-server
+libncurses
+libusb-1.0
+libusb-compat
+libftdi1 \
102 +GPIO_SUPPORT
:libugpio
105 define LCDPROC_OTHER_DRIVERS_TEXT
106 curses futaba glcd hd44780 IOWarrior i2500vfd lis picolcd shuttleVFD ula200
109 ifeq ($(CONFIG_PACKAGE_kmod-lp
),y
)
110 LCDPROC_OTHER_DRIVERS_TEXT
+=sdeclcd sed1330 sed1520 stv5730 t6963
113 LCDPROC_OTHER_DRIVERS
:=$(strip $(LCDPROC_OTHER_DRIVERS_TEXT
))
115 define Package
/lcdproc-drivers
/description
116 $(call Package
/lcdproc
/Default-description
)
118 This package contains display drivers with external dependencies
:
119 $(LCDPROC_OTHER_DRIVERS_TEXT
)
123 # not everything groks --disable-nls
131 --enable-drivers
='all,!g15,!g15driver,!glcdlib,!irman,!lirc,!mdm166a,!mx5000,!svga,!xosd'
133 # can't use -Wformat=2 because MUSL is somewhat broken
137 CFLAGS
="$(TARGET_CFLAGS)" \
138 LDFLAGS
="$(TARGET_LDLAGS)"
141 define Package
/lcdproc-clients
/install
142 $(INSTALL_DIR
) $(1)/usr
/bin
143 $(INSTALL_DIR
) $(1)/etc
/init.d
144 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/clients
/lcdproc
/lcdproc
$(1)/usr
/bin
/
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/clients
/lcdexec
/lcdexec
$(1)/usr
/bin
/
146 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/clients
/lcdvc
/lcdvc
$(1)/usr
/bin
/
147 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/clients
/lcdproc
/lcdproc.conf
$(1)/etc
/
148 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/clients
/lcdexec
/lcdexec.conf
$(1)/etc
/
149 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/clients
/lcdvc
/lcdvc.conf
$(1)/etc
/
150 $(INSTALL_BIN
) .
/files
/lcd
* $(1)/etc
/init.d
/
153 define Package
/lcdproc-server
/install
154 $(INSTALL_DIR
) $(1)/usr
/sbin
155 $(INSTALL_DIR
) $(1)/usr
/lib
/lcdproc
156 $(INSTALL_DIR
) $(1)/etc
/init.d
157 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/server
/LCDd
$(1)/usr
/sbin
/
158 $(CP
) $(foreach driver
,$(LCDPROC_CORE_DRIVERS
),$(PKG_BUILD_DIR
)/server
/drivers
/$(driver
).so
) $(1)/usr
/lib
/lcdproc
/
159 $(CP
) -p
$(PKG_BUILD_DIR
)/LCDd.conf
$(PKG_BUILD_DIR
)/LCDd.conf.orig
161 -e
's!^(DriverPath=).*$$$$!\1/usr/lib/lcdproc/!' \
162 -e
's!^(Driver=)curses$$$$!\1sdeclcd!' \
163 $(PKG_BUILD_DIR
)/LCDd.conf
164 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/LCDd.conf
$(1)/etc
/
165 $(INSTALL_BIN
) .
/files
/LCDd
$(1)/etc
/init.d
/
168 define Package
/lcdproc-drivers
/install
169 $(INSTALL_DIR
) $(1)/usr
/lib
/lcdproc
170 $(CP
) $(foreach driver
,$(LCDPROC_OTHER_DRIVERS
),$(PKG_BUILD_DIR
)/server
/drivers
/$(driver
).so
) $(1)/usr
/lib
/lcdproc
/
174 $(eval
$(call BuildPackage
,lcdproc-clients
))
175 $(eval
$(call BuildPackage
,lcdproc-server
))
176 $(eval
$(call BuildPackage
,lcdproc-drivers
))