2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
13 PKG_VERSION:=r$(PKG_REV)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
18 PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/lcd4linux
27 DEPENDS:=+libncurses +libusb +libgd
28 TITLE:=LCD display utility
29 URL:=http://lcd4linux.bulix.org/
32 define Package/lcd4linux/description
33 LCD4Linux is a small program that grabs information from the kernel and
34 some subsystems and displays it on an external liquid crystal display.
37 define Package/lcd4linux/conffiles
41 # commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers and plugins spec
42 PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11,!serdisplib,!G15
43 PKG_CONFIGURE_PLUGINS:=wireless
45 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
46 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
48 TARGET_CONFIGURE_OPTS+=\
49 CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
54 --with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
55 --with-plugins="$(PKG_CONFIGURE_PLUGINS)" \
58 define Build/Configure
59 $(call Build/Configure/Default,)
60 $(call libtool_disable_rpath)
64 $(MAKE) -C $(PKG_BUILD_DIR) all
65 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
66 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)"
69 define Package/lcd4linux/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/etc
73 $(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
78 $(eval $(call BuildPackage,lcd4linux))