[Packages] utils/lcd4linux:
[openwrt/svn-archive/archive.git] / utils / lcd4linux / Makefile
1 #
2 # Copyright (C) 2007 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_REV:=847
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=3
15
16 PKG_SOURCE:=$(PKG_NAME)-r$(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)
20 PKG_SOURCE_PROTO:=svn
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/lcd4linux
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libncurses
28 TITLE:=LCD display utility
29 URL:=http://lcd4linux.bulix.org/
30 endef
31
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.
35 endef
36
37 define Package/lcd4linux/conffiles
38 /etc/lcd4linux.conf
39 endef
40
41 # commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers spec
42 PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11
43
44 CONFIGURE_ARGS += \
45 --without-x \
46 --with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
47 --with-plugins=wireless \
48
49 define Build/Configure
50 $(call Build/Configure/Default,)
51 $(call libtool_disable_rpath)
52 endef
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR) all
56 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
57 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)"
58 endef
59
60 define Package/lcd4linux/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
63 $(INSTALL_DIR) $(1)/etc
64 $(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
65 $(INSTALL_DIR) $(1)/etc/init.d
66 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
67 endef
68
69 $(eval $(call BuildPackage,lcd4linux))