add a patch to fix lcd4linux on linux 2.6.19 (see [6052]), add some touches to preven...
[openwrt/svn-archive/archive.git] / utils / lcd4linux / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lcd4linux
12 PKG_VERSION:=0.10.0+cvs20051015
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/lcd4linux/ \
17 http://ftp.de.debian.org/debian/pool/main/l/lcd4linux/
18 PKG_MD5SUM:=5b5ac629be4bb5c29104fb8f6b7fa444
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/lcd4linux
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+libncurses
29 TITLE:=LCD display utility
30 DESCRIPTION:=\
31 LCD4Linux is a small program that grabs information from the kernel and \\\
32 some subsystems and displays it on an external liquid crystal display.
33 URL:=http://lcd4linux.bulix.org/
34 endef
35
36 # commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers spec
37 PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); touch \
41 configure.in \
42 aclocal.m4 \
43 Makefile.in \
44 config-h.in \
45 configure \
46 );
47 $(call Build/Configure/Default, \
48 --without-x \
49 --with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
50 --with-plugins=wireless \
51 )
52 endef
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 endef
57
58 define Package/lcd4linux/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lcd4linux $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,lcd4linux))