2 # Copyright (C) 2006 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
12 PKG_VERSION:=0.10.0+cvs20051015
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/lcd4linux/ \
18 http://ftp.de.debian.org/debian/pool/main/l/lcd4linux/
19 PKG_MD5SUM:=5b5ac629be4bb5c29104fb8f6b7fa444
22 include $(INCLUDE_DIR)/package.mk
24 define Package/lcd4linux
28 TITLE:=LCD display utility
29 DESCRIPTION:=LCD display utility.\\\
30 LCD4Linux is a small program that grabs information from the kernel and \\\
31 some subsystems and displays it on an external liquid crystal display.
32 URL:=http://lcd4linux.bulix.org/
35 define Build/Configure
36 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
37 $(TARGET_CONFIGURE_OPTS) \
38 CFLAGS="$(TARGET_CFLAGS)" \
39 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
59 $(DISABLE_LARGEFILE) \
62 --with-drivers='all,!PNG,!RouterBoard,!X11' \
63 --with-plugins=wireless \
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \
70 CFLAGS="$(TARGET_CFLAGS) -Wall"
73 define Package/lcd4linux/install
74 install -d -m0755 $(1)/usr/bin
75 install -m0755 $(PKG_BUILD_DIR)/lcd4linux $(1)/usr/bin/
78 $(eval $(call BuildPackage,lcd4linux))