source: packages/utils/lcd4linux/Makefile @ 9754

Last change on this file since 9754 was 9754, checked in by olli, 9 years ago

[Packages] utils/lcd4linux: disable the G15 driver

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=lcd4linux
12PKG_REV:=847
13PKG_VERSION:=r$(PKG_REV)
14PKG_RELEASE:=3
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
18PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
19PKG_SOURCE_VERSION:=$(PKG_REV)
20PKG_SOURCE_PROTO:=svn
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/lcd4linux
25  SECTION:=utils
26  CATEGORY:=Utilities
27  DEPENDS:=+libncurses +libusb +libgd
28  TITLE:=LCD display utility
29  URL:=http://lcd4linux.bulix.org/
30endef
31
32define 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.
35endef
36
37define Package/lcd4linux/conffiles
38/etc/lcd4linux.conf
39endef
40
41# commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers and plugins spec
42PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11,!serdisplib,!G15
43PKG_CONFIGURE_PLUGINS:=wireless
44
45EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
46EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
47
48TARGET_CONFIGURE_OPTS+=\
49        CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
50
51CONFIGURE_ARGS += \
52        --without-x \
53        --without-python \
54        --with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
55        --with-plugins="$(PKG_CONFIGURE_PLUGINS)" \
56        --disable-rpath \
57
58define Build/Configure
59        $(call Build/Configure/Default,)
60        $(call libtool_disable_rpath)
61endef
62
63define 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)"
67endef
68
69define 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)
76endef
77
78$(eval $(call BuildPackage,lcd4linux))
Note: See TracBrowser for help on using the repository browser.