2007-12-08 16:58:48 +00:00
|
|
|
#
|
2010-04-15 22:58:05 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2006-07-30 18:00:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-07-30 17:22:04 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lcd4linux
|
2011-02-19 12:44:08 +00:00
|
|
|
PKG_REV:=1143
|
2007-12-02 21:24:04 +00:00
|
|
|
PKG_VERSION:=r$(PKG_REV)
|
2011-02-19 12:44:08 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-30 17:22:04 +00:00
|
|
|
|
2007-12-02 21:39:17 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-12-02 21:24:04 +00:00
|
|
|
PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
|
|
|
|
PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_PROTO:=svn
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
PKG_BUILD_DEPENDS:= \
|
|
|
|
libdbus \
|
|
|
|
libgd \
|
|
|
|
libmysqlclient \
|
|
|
|
libncurses \
|
|
|
|
libnmeap \
|
|
|
|
libsqlite3 \
|
|
|
|
libvncserver \
|
|
|
|
ppp \
|
|
|
|
serdisplib \
|
|
|
|
st2205tool \
|
|
|
|
# libftdi \
|
|
|
|
# libmpdclient \
|
|
|
|
# libX11 \
|
|
|
|
# python \
|
|
|
|
|
2006-07-30 17:22:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2006-07-30 17:22:04 +00:00
|
|
|
|
|
|
|
define Package/lcd4linux
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2010-04-15 22:58:05 +00:00
|
|
|
DEPENDS:= \
|
|
|
|
+LCD4LINUX_NEEDS_libdbus:libdbus \
|
|
|
|
+LCD4LINUX_NEEDS_libgd:libgd \
|
2011-02-02 18:54:24 +00:00
|
|
|
$(if $(ICONV_FULL),+LCD4LINUX_NEEDS_libiconv:libiconv-full) \
|
2010-04-15 22:58:05 +00:00
|
|
|
+LCD4LINUX_NEEDS_libmysqlclient:libmysqlclient \
|
|
|
|
+LCD4LINUX_NEEDS_libncurses:libncurses \
|
|
|
|
+LCD4LINUX_NEEDS_libnmeap:libnmeap \
|
|
|
|
+LCD4LINUX_NEEDS_libsqlite3:libsqlite3 \
|
|
|
|
+LCD4LINUX_NEEDS_libusb:libusb \
|
|
|
|
+LCD4LINUX_NEEDS_libvncserver:libvncserver \
|
|
|
|
+LCD4LINUX_NEEDS_serdisplib:serdisplib \
|
|
|
|
+LCD4LINUX_NEEDS_st2205tool:st2205tool \
|
|
|
|
# +LCD4LINUX_NEEDS_libftdi:libftdi \
|
|
|
|
# +LCD4LINUX_NEEDS_libmpdclient:libmpdclient \
|
|
|
|
# +LCD4LINUX_NEEDS_libX11:libX11 \
|
|
|
|
# +LCD4LINUX_NEEDS_python:python
|
2006-07-30 17:22:04 +00:00
|
|
|
TITLE:=LCD display utility
|
|
|
|
URL:=http://lcd4linux.bulix.org/
|
2008-08-04 14:56:45 +00:00
|
|
|
MENU:=1
|
2006-07-30 17:22:04 +00:00
|
|
|
endef
|
|
|
|
|
2008-06-01 20:51:42 +00:00
|
|
|
define Package/lcd4linux/config
|
|
|
|
menu "Configuration"
|
2010-04-15 22:58:05 +00:00
|
|
|
depends on PACKAGE_lcd4linux
|
|
|
|
source "$(SOURCE)/Config.in"
|
2008-06-01 20:51:42 +00:00
|
|
|
endmenu
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/lcd4linux/description
|
2010-04-15 22:58:05 +00:00
|
|
|
LCD4Linux is a small program that grabs information from the kernel and
|
|
|
|
some subsystems and displays it on an external liquid crystal display.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-12-02 21:24:04 +00:00
|
|
|
define Package/lcd4linux/conffiles
|
|
|
|
/etc/lcd4linux.conf
|
|
|
|
endef
|
|
|
|
|
2008-06-01 20:51:42 +00:00
|
|
|
LCD4LINUX_DRIVERS:= \
|
|
|
|
BeckmannEgle \
|
|
|
|
BWCT \
|
|
|
|
CrystalFontz \
|
|
|
|
Curses \
|
|
|
|
Cwlinux \
|
2008-12-20 15:09:09 +00:00
|
|
|
D4D \
|
2010-04-15 22:58:05 +00:00
|
|
|
EA232graphic \
|
2008-06-01 20:51:42 +00:00
|
|
|
G15 \
|
2009-05-17 15:44:02 +00:00
|
|
|
GLCD2USB \
|
2008-12-20 15:09:09 +00:00
|
|
|
IRLCD \
|
2008-06-01 20:51:42 +00:00
|
|
|
HD44780 \
|
2010-04-15 22:58:05 +00:00
|
|
|
HD44780-I2C \
|
2008-06-01 20:51:42 +00:00
|
|
|
LCD2USB \
|
|
|
|
LCDLinux \
|
|
|
|
LCDTerm \
|
2010-04-15 22:58:05 +00:00
|
|
|
LEDMatrix \
|
2008-06-01 20:51:42 +00:00
|
|
|
LPH7508 \
|
|
|
|
LUIse \
|
2010-04-15 22:58:05 +00:00
|
|
|
LW_ABP \
|
2008-06-01 20:51:42 +00:00
|
|
|
M50530 \
|
|
|
|
MatrixOrbital \
|
2009-05-17 15:44:02 +00:00
|
|
|
MatrixOrbitalGX \
|
2008-06-01 20:51:42 +00:00
|
|
|
MilfordInstruments \
|
|
|
|
Noritake \
|
|
|
|
NULL \
|
|
|
|
Pertelian \
|
2009-05-17 15:44:02 +00:00
|
|
|
PHAnderson \
|
2010-04-15 22:58:05 +00:00
|
|
|
PICGraphic \
|
2008-06-01 20:51:42 +00:00
|
|
|
picoLCD \
|
2008-12-20 15:09:09 +00:00
|
|
|
picoLCDGraphic \
|
2010-04-15 22:58:05 +00:00
|
|
|
PNG \
|
|
|
|
PPM \
|
2008-06-01 20:51:42 +00:00
|
|
|
RouterBoard \
|
|
|
|
serdisplib \
|
2009-05-17 15:44:02 +00:00
|
|
|
ShuttleVFD \
|
2008-06-01 20:51:42 +00:00
|
|
|
SimpleLCD \
|
|
|
|
st2205 \
|
|
|
|
T6963 \
|
|
|
|
Trefon \
|
2008-12-20 15:09:09 +00:00
|
|
|
ULA200 \
|
2010-04-15 22:58:05 +00:00
|
|
|
USBHUB \
|
|
|
|
USBLCD \
|
2009-05-17 15:44:02 +00:00
|
|
|
VNC \
|
2008-06-01 20:51:42 +00:00
|
|
|
WincorNixdorf \
|
|
|
|
X11 \
|
|
|
|
|
|
|
|
LCD4LINUX_PLUGINS:= \
|
|
|
|
apm \
|
|
|
|
asterisk \
|
|
|
|
button_exec \
|
|
|
|
cpuinfo \
|
2010-04-15 22:58:05 +00:00
|
|
|
dbus \
|
2008-06-01 20:51:42 +00:00
|
|
|
diskstats \
|
|
|
|
dvb \
|
2010-04-15 22:58:05 +00:00
|
|
|
event \
|
2008-06-01 20:51:42 +00:00
|
|
|
exec \
|
|
|
|
fifo \
|
|
|
|
file \
|
|
|
|
gps \
|
2009-05-17 15:44:02 +00:00
|
|
|
hddtemp \
|
2010-04-11 18:26:07 +00:00
|
|
|
huawei \
|
2008-06-01 20:51:42 +00:00
|
|
|
i2c_sensors \
|
|
|
|
iconv \
|
|
|
|
imon \
|
|
|
|
isdn \
|
|
|
|
kvv \
|
|
|
|
loadavg \
|
2009-05-17 15:44:02 +00:00
|
|
|
netdev \
|
|
|
|
netinfo \
|
2008-06-01 20:51:42 +00:00
|
|
|
meminfo \
|
|
|
|
mpd \
|
2009-05-17 15:44:02 +00:00
|
|
|
mpris_dbus \
|
2008-06-01 20:51:42 +00:00
|
|
|
mysql \
|
|
|
|
netdev \
|
|
|
|
pop3 \
|
|
|
|
ppp \
|
|
|
|
proc_stat \
|
|
|
|
python \
|
2009-05-17 15:44:02 +00:00
|
|
|
qnaplog \
|
2008-06-01 20:51:42 +00:00
|
|
|
seti \
|
|
|
|
statfs \
|
|
|
|
uname \
|
|
|
|
uptime \
|
2009-05-17 15:44:02 +00:00
|
|
|
w1retap \
|
2008-06-01 20:51:42 +00:00
|
|
|
wireless \
|
|
|
|
xmms \
|
|
|
|
|
|
|
|
LCD4LINUX_CONFIGURE_DRIVERS:= \
|
|
|
|
$(foreach c, $(LCD4LINUX_DRIVERS), \
|
|
|
|
$(if $(CONFIG_LCD4LINUX_DRV_$(c)),$(c),) \
|
|
|
|
)
|
|
|
|
|
|
|
|
LCD4LINUX_CONFIGURE_PLUGINS:= \
|
|
|
|
$(foreach c, $(LCD4LINUX_PLUGINS), \
|
|
|
|
$(if $(CONFIG_LCD4LINUX_PLUGIN_$(c)),$(c),) \
|
|
|
|
)
|
2007-12-08 16:58:48 +00:00
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifeq ($(CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_DRIVER),)
|
|
|
|
LCD4LINUX_CONFIGURE_DRIVERS:=Sample
|
2008-06-11 16:34:38 +00:00
|
|
|
endif
|
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifeq ($(CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_PLUGIN),)
|
|
|
|
LCD4LINUX_CONFIGURE_PLUGINS:=sample
|
2008-06-11 16:34:38 +00:00
|
|
|
endif
|
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-drivers="$(strip $(LCD4LINUX_CONFIGURE_DRIVERS))" \
|
|
|
|
--with-plugins="$(strip $(LCD4LINUX_CONFIGURE_PLUGINS))" \
|
2008-06-11 16:34:38 +00:00
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
EXTRA_LDFLAGS+= -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
2008-06-11 16:34:38 +00:00
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifneq ($(CONFIG_LCD4LINUX_NEEDS_libiconv),)
|
|
|
|
CONFIGURE_ARGS+= \
|
2011-02-02 18:54:24 +00:00
|
|
|
--with-libiconv-prefix="$(ICONV_PREFIX)"
|
2010-04-15 22:58:05 +00:00
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-libiconv-prefix
|
2009-05-17 15:44:02 +00:00
|
|
|
endif
|
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifneq ($(CONFIG_LCD4LINUX_NEEDS_libmysqlclient),)
|
|
|
|
EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
|
2008-06-01 21:02:58 +00:00
|
|
|
endif
|
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifneq ($(CONFIG_LCD4LINUX_NEEDS_python),)
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
2008-06-01 21:02:58 +00:00
|
|
|
endif
|
|
|
|
|
2010-04-15 22:58:05 +00:00
|
|
|
ifneq ($(CONFIG_LCD4LINUX_NEEDS_libX11),)
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2008-06-11 16:34:38 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-24 17:16:55 +00:00
|
|
|
|
2006-07-30 17:22:04 +00:00
|
|
|
define Package/lcd4linux/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-04-15 22:58:05 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/lcd4linux $(1)/usr/bin/
|
2007-12-02 21:24:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2010-04-15 22:58:05 +00:00
|
|
|
$(INSTALL_CONF) ./files/lcd4linux.conf $(1)/etc/
|
2007-12-02 21:24:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2010-04-15 22:58:05 +00:00
|
|
|
$(INSTALL_BIN) ./files/lcd4linux.init $(1)/etc/init.d/lcd4linux
|
2006-07-30 17:22:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lcd4linux))
|