add missing copyright notice, remove unneeded PKG_INSTALL_DIR
[packages.git] / utils / lcd4linux / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lcd4linux
12 PKG_VERSION:=0.10.0+cvs20051015
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/lcd4linux/ \
18                 http://ftp.de.debian.org/debian/pool/main/l/lcd4linux/
19 PKG_MD5SUM:=5b5ac629be4bb5c29104fb8f6b7fa444
20 PKG_CAT:=zcat
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   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/
33 endef
34
35 define 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         );
65 endef
66
67 define Build/Compile
68         $(MAKE) -C $(PKG_BUILD_DIR) \
69                 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
70                 CFLAGS="$(TARGET_CFLAGS) -Wall"
71 endef
72
73 define Package/lcd4linux/install
74         install -d -m0755 $(1)/usr/bin
75         install -m0755 $(PKG_BUILD_DIR)/lcd4linux $(1)/usr/bin/
76 endef
77
78 $(eval $(call BuildPackage,lcd4linux))