[Packages] utils/lcd4linux: disable the G15 driver
[packages.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)-$(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 +libusb +libgd
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 and plugins spec
42 PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11,!serdisplib,!G15
43 PKG_CONFIGURE_PLUGINS:=wireless
44
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
47
48 TARGET_CONFIGURE_OPTS+=\
49         CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
50
51 CONFIGURE_ARGS += \
52         --without-x \
53         --without-python \
54         --with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
55         --with-plugins="$(PKG_CONFIGURE_PLUGINS)" \
56         --disable-rpath \
57
58 define Build/Configure
59         $(call Build/Configure/Default,)
60         $(call libtool_disable_rpath)
61 endef
62
63 define Build/Compile
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)"
67 endef
68
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)
76 endef
77
78 $(eval $(call BuildPackage,lcd4linux))