2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
13 PKG_VERSION
:=r
$(PKG_REV
)
16 PKG_SOURCE
:=$(PKG_NAME
)-r
$(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
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/lcd4linux
28 TITLE
:=LCD display utility
29 URL
:=http
://lcd4linux.bulix.org
/
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.
37 define Package
/lcd4linux
/conffiles
41 # commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our drivers spec
42 PKG_CONFIGURE_DRIVERS
:=all,!PNG
,!RouterBoard
,!X11
46 --with-drivers
="$(PKG_CONFIGURE_DRIVERS)" \
47 --with-plugins
=wireless \
49 define Build
/Configure
50 $(call Build
/Configure
/Default
,)
51 $(call libtool_disable_rpath
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
56 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)"
60 define Package
/lcd4linux
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/bin
/
63 $(INSTALL_DIR
) $(1)/etc
64 $(INSTALL_CONF
) .
/files
/$(PKG_NAME
).conf
$(1)/etc
/$(PKG_NAME
).conf
65 $(INSTALL_DIR
) $(1)/etc
/init.d
66 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
69 $(eval
$(call BuildPackage
,lcd4linux
))