source: packages/utils/lcd4linux/Makefile @ 5268

Last change on this file since 5268 was 5268, checked in by florian, 10 years ago

Change licence to something shorter :-)

  • 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.0 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=lcd4linux
12PKG_VERSION:=0.10.0+cvs20051015
13PKG_RELEASE:=1
14
15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
16PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/lcd4linux/ \
18                http://ftp.de.debian.org/debian/pool/main/l/lcd4linux/
19PKG_MD5SUM:=5b5ac629be4bb5c29104fb8f6b7fa444
20PKG_CAT:=zcat
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/lcd4linux
25  SECTION:=utils
26  CATEGORY:=Utilities
27  DEPENDS:=+libncurses
28  TITLE:=LCD display utility
29  DESCRIPTION:=LCD display utility.\\\
30    LCD4Linux is a small program that grabs information from the kernel and \\\
31    some subsystems and displays it on an external liquid crystal display.
32  URL:=http://lcd4linux.bulix.org/
33endef
34
35define Build/Configure
36        (cd $(PKG_BUILD_DIR); rm -f config.cache; \
37                $(TARGET_CONFIGURE_OPTS) \
38                CFLAGS="$(TARGET_CFLAGS)" \
39                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
41                ./configure \
42                        --target=$(GNU_TARGET_NAME) \
43                        --host=$(GNU_TARGET_NAME) \
44                        --build=$(GNU_HOST_NAME) \
45                        --program-prefix="" \
46                        --program-suffix="" \
47                        --prefix=/usr \
48                        --exec-prefix=/usr \
49                        --bindir=/usr/bin \
50                        --datadir=/usr/share \
51                        --includedir=/usr/include \
52                        --infodir=/usr/share/info \
53                        --libdir=/usr/lib \
54                        --libexecdir=/usr/lib \
55                        --localstatedir=/var \
56                        --mandir=/usr/share/man \
57                        --sbindir=/usr/sbin \
58                        --sysconfdir=/etc \
59                        $(DISABLE_LARGEFILE) \
60                        $(DISABLE_NLS) \
61                        --without-x \
62                        --with-drivers='all,!PNG,!RouterBoard,!X11' \
63                        --with-plugins=wireless \
64        );
65endef
66
67define Build/Compile
68  $(call Build/Compile/Default, CFLAGS="$(TARGET_CFLAGS) -Wall")
69endef
70
71define Package/lcd4linux/install
72        install -d -m0755 $(1)/usr/bin
73        install -m0755 $(PKG_BUILD_DIR)/lcd4linux $(1)/usr/bin/
74endef
75
76$(eval $(call BuildPackage,lcd4linux))
Note: See TracBrowser for help on using the repository browser.