2007-12-08 16:58:48 +00:00
|
|
|
#
|
2007-12-02 21:24:04 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-07-30 18:00:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-07-30 17:22:04 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lcd4linux
|
2007-12-02 21:24:04 +00:00
|
|
|
PKG_REV:=847
|
|
|
|
PKG_VERSION:=r$(PKG_REV)
|
|
|
|
PKG_RELEASE:=3
|
2006-07-30 17:22:04 +00:00
|
|
|
|
2007-12-02 21:39:17 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-12-02 21:24:04 +00:00
|
|
|
PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
|
|
|
|
PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_PROTO:=svn
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2006-07-30 17:22:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/lcd4linux
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-12-08 16:58:48 +00:00
|
|
|
DEPENDS:=+libncurses +libusb +libgd
|
2006-07-30 17:22:04 +00:00
|
|
|
TITLE:=LCD display utility
|
|
|
|
URL:=http://lcd4linux.bulix.org/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/lcd4linux/description
|
|
|
|
LCD4Linux is a small program that grabs information from the kernel and
|
|
|
|
some subsystems and displays it on an external liquid crystal display.
|
|
|
|
endef
|
|
|
|
|
2007-12-02 21:24:04 +00:00
|
|
|
define Package/lcd4linux/conffiles
|
|
|
|
/etc/lcd4linux.conf
|
|
|
|
endef
|
|
|
|
|
2007-12-08 16:58:48 +00:00
|
|
|
# commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers and plugins spec
|
2007-12-14 19:31:09 +00:00
|
|
|
PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11,!serdisplib,!G15
|
2007-12-08 16:58:48 +00:00
|
|
|
PKG_CONFIGURE_PLUGINS:=wireless
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
|
|
|
|
EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
|
|
|
|
|
|
|
TARGET_CONFIGURE_OPTS+=\
|
|
|
|
CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2007-03-24 17:16:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2007-07-07 12:58:47 +00:00
|
|
|
--without-x \
|
2007-12-08 16:58:48 +00:00
|
|
|
--without-python \
|
2007-07-07 12:58:47 +00:00
|
|
|
--with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
|
2007-12-08 16:58:48 +00:00
|
|
|
--with-plugins="$(PKG_CONFIGURE_PLUGINS)" \
|
|
|
|
--disable-rpath \
|
2007-03-24 17:16:55 +00:00
|
|
|
|
2007-12-02 21:24:04 +00:00
|
|
|
define Build/Compile
|
2007-12-27 02:12:04 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
|
2006-07-30 17:22:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lcd4linux/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-02 21:24:04 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
2006-07-30 17:22:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lcd4linux))
|