source: packages/utils/lcd4linux/Makefile @ 28522

Last change on this file since 28522 was 28522, checked in by jmccrohan, 5 years ago

[package] lcd4linux: Bump package version as a result of r28469

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lcd4linux
11PKG_REV:=1159
12PKG_VERSION:=r$(PKG_REV)
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
17PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
18PKG_SOURCE_VERSION:=$(PKG_REV)
19PKG_SOURCE_PROTO:=svn
20
21PKG_FIXUP:=libtool
22PKG_INSTALL:=1
23
24PKG_BUILD_DEPENDS:= \
25        libdbus \
26        libgd \
27        libmysqlclient \
28        libncurses \
29        libnmeap \
30        libsqlite3 \
31        libvncserver \
32        ppp \
33        serdisplib \
34        st2205tool \
35#       libftdi \
36#       libmpdclient \
37#       libX11 \
38#       python \
39
40include $(INCLUDE_DIR)/package.mk
41include $(INCLUDE_DIR)/nls.mk
42
43define Package/lcd4linux
44  SECTION:=utils
45  CATEGORY:=Utilities
46  DEPENDS:= \
47        +LCD4LINUX_NEEDS_libdbus:libdbus \
48        +LCD4LINUX_NEEDS_libgd:libgd \
49        $(if $(ICONV_FULL),+LCD4LINUX_NEEDS_libiconv:libiconv-full) \
50        +LCD4LINUX_NEEDS_libmysqlclient:libmysqlclient \
51        +LCD4LINUX_NEEDS_libncurses:libncurses \
52        +LCD4LINUX_NEEDS_libnmeap:libnmeap \
53        +LCD4LINUX_NEEDS_libsqlite3:libsqlite3 \
54        +LCD4LINUX_NEEDS_libusb:libusb \
55        +LCD4LINUX_NEEDS_libvncserver:libvncserver \
56        +LCD4LINUX_NEEDS_serdisplib:serdisplib \
57        +LCD4LINUX_NEEDS_st2205tool:st2205tool \
58#       +LCD4LINUX_NEEDS_libftdi:libftdi \
59#       +LCD4LINUX_NEEDS_libmpdclient:libmpdclient \
60#       +LCD4LINUX_NEEDS_libX11:libX11 \
61#       +LCD4LINUX_NEEDS_python:python
62  TITLE:=LCD display utility
63  URL:=http://lcd4linux.bulix.org/
64  MENU:=1
65  MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
66endef
67
68define Package/lcd4linux/config
69        menu "Configuration"
70                depends on PACKAGE_lcd4linux
71                source "$(SOURCE)/Config.in"
72        endmenu
73endef
74
75define Package/lcd4linux/description
76 LCD4Linux is a small program that grabs information from the kernel and
77 some subsystems and displays it on an external liquid crystal display.
78endef
79
80define Package/lcd4linux/conffiles
81/etc/lcd4linux.conf
82endef
83
84LCD4LINUX_DRIVERS:= \
85        BeckmannEgle \
86        BWCT \
87        CrystalFontz \
88        Curses \
89        Cwlinux \
90        D4D \
91        EA232graphic \
92        G15 \
93        GLCD2USB \
94        IRLCD \
95        HD44780 \
96        HD44780-I2C \
97        LCD2USB \
98        LCDLinux \
99        LCDTerm \
100        LEDMatrix \
101        LPH7508 \
102        LUIse \
103        LW_ABP \
104        M50530 \
105        MatrixOrbital \
106        MatrixOrbitalGX \
107        MilfordInstruments \
108        Newhaven \
109        Noritake \
110        NULL \
111        Pertelian \
112        PHAnderson \
113        PICGraphic \
114        picoLCD \
115        picoLCDGraphic \
116        PNG \
117        PPM \
118        RouterBoard \
119        serdisplib \
120        ShuttleVFD \
121        SimpleLCD \
122        st2205 \
123        T6963 \
124        Trefon \
125        ULA200 \
126        USBHUB \
127        USBLCD \
128        VNC \
129        WincorNixdorf \
130        X11 \
131
132LCD4LINUX_PLUGINS:= \
133        apm \
134        asterisk \
135        button_exec \
136        cpuinfo \
137        dbus \
138        diskstats \
139        dvb \
140        event \
141        exec \
142        fifo \
143        file \
144        gps \
145        hddtemp \
146        huawei \
147        i2c_sensors \
148        iconv \
149        imon \
150        isdn \
151        kvv \
152        loadavg \
153        netdev \
154        netinfo \
155        meminfo \
156        mpd \
157        mpris_dbus \
158        mysql \
159        netdev \
160        pop3 \
161        ppp \
162        proc_stat \
163        python \
164        qnaplog \
165        seti \
166        statfs \
167        uname \
168        uptime \
169        w1retap \
170        wireless \
171        xmms \
172
173LCD4LINUX_CONFIGURE_DRIVERS:= \
174        $(foreach c, $(LCD4LINUX_DRIVERS), \
175            $(if $(CONFIG_LCD4LINUX_DRV_$(c)),$(c),) \
176        )
177
178LCD4LINUX_CONFIGURE_PLUGINS:= \
179        $(foreach c, $(LCD4LINUX_PLUGINS), \
180            $(if $(CONFIG_LCD4LINUX_PLUGIN_$(c)),$(c),) \
181        )
182
183ifeq ($(CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_DRIVER),)
184  LCD4LINUX_CONFIGURE_DRIVERS:=Sample
185endif
186
187ifeq ($(CONFIG_LCD4LINUX_HAS_AT_LEAST_ONE_PLUGIN),)
188  LCD4LINUX_CONFIGURE_PLUGINS:=sample
189endif
190
191CONFIGURE_ARGS+= \
192        --disable-rpath \
193        --with-drivers="$(strip $(LCD4LINUX_CONFIGURE_DRIVERS))" \
194        --with-plugins="$(strip $(LCD4LINUX_CONFIGURE_PLUGINS))" \
195
196EXTRA_LDFLAGS+= -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
197
198ifneq ($(CONFIG_LCD4LINUX_NEEDS_libiconv),)
199  CONFIGURE_ARGS+= \
200        --with-libiconv-prefix="$(ICONV_PREFIX)"
201else
202  CONFIGURE_ARGS+= \
203        --without-libiconv-prefix
204endif
205
206ifneq ($(CONFIG_LCD4LINUX_NEEDS_libmysqlclient),)
207  EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
208endif
209
210ifneq ($(CONFIG_LCD4LINUX_NEEDS_python),)
211  CONFIGURE_ARGS+= --with-python
212else
213  CONFIGURE_ARGS+= --without-python
214endif
215
216ifneq ($(CONFIG_LCD4LINUX_NEEDS_libX11),)
217  CONFIGURE_ARGS+= --with-x
218else
219  CONFIGURE_ARGS+= --without-x
220endif
221
222
223define Package/lcd4linux/install
224        $(INSTALL_DIR) $(1)/usr/bin
225        $(CP) $(PKG_INSTALL_DIR)/usr/bin/lcd4linux $(1)/usr/bin/
226        $(INSTALL_DIR) $(1)/etc
227        $(INSTALL_CONF) ./files/lcd4linux.conf $(1)/etc/
228        $(INSTALL_DIR) $(1)/etc/init.d
229        $(INSTALL_BIN) ./files/lcd4linux.init $(1)/etc/init.d/lcd4linux
230endef
231
232$(eval $(call BuildPackage,lcd4linux))
Note: See TracBrowser for help on using the repository browser.