lcdproc-0.5.9.recipe revision ae94b127
1SUMMARY="Client/server app to drive LCD displays"
2DESCRIPTION="LCDproc controls various LCD and VFD devices in a standardized way, and ships with a \
3client to display various system statistics. Supports multiple platforms (Linux, *BSD, Solaris). \
4Client/server model allows multiple clients to use one display."
5HOMEPAGE="http://www.lcdproc.org"
6COPYRIGHT="1998-2014 William W. Ferrell, Selene Scriven and many other contributors"
7LICENSE="GNU GPL v2"
8REVISION="3"
9SOURCE_URI="https://github.com/lcdproc/lcdproc/releases/download/v$portVersion/lcdproc-$portVersion.tar.gz"
10CHECKSUM_SHA256="d48a915496c96ff775b377d2222de3150ae5172bfb84a6ec9f9ceab962f97b83"
11PATCHES="lcdproc-$portVersion.patchset"
12
13ARCHITECTURES="!x86_gcc2 x86 x86_64"
14SECONDARY_ARCHITECTURES="x86"
15
16# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
17commandSuffix=$secondaryArchSuffix
18commandBinDir=$binDir
19if [ "$targetArchitecture" = x86_gcc2 ]; then
20	commandSuffix=
21	commandBinDir=$prefix/bin
22fi
23
24GLOBAL_WRITABLE_FILES="
25	settings/LCDd.conf keep-old
26	settings/lcdexec.conf keep-old
27	settings/lcdproc.conf keep-old
28	settings/lcdvc.conf keep-old
29	"
30
31PROVIDES="
32	lcdproc$secondaryArchSuffix = $portVersion
33	cmd:fortune.pl$commandSuffix
34	cmd:iosock.pl$commandSuffix
35	cmd:LCDd$commandSuffix
36	cmd:lcdexec$commandSuffix
37	cmd:lcdident.pl$commandSuffix
38	cmd:lcdmetar.pl$commandSuffix
39	cmd:lcdproc$commandSuffix
40	cmd:lcdvc$commandSuffix
41	cmd:tail.pl$commandSuffix
42	cmd:x11amp.pl$commandSuffix
43	"
44REQUIRES="
45	haiku$secondaryArchSuffix
46	lib:libncurses$secondaryArchSuffix
47	lib:libpng16$secondaryArchSuffix
48	lib:libusb$secondaryArchSuffix
49	lib:libusb_1.0$secondaryArchSuffix
50	"
51
52BUILD_REQUIRES="
53	haiku${secondaryArchSuffix}_devel
54	devel:libncurses$secondaryArchSuffix
55	devel:libpng16$secondaryArchSuffix
56	devel:libusb$secondaryArchSuffix
57	devel:libusb_1.0$secondaryArchSuffix
58	"
59BUILD_PREREQUIRES="
60	cmd:aclocal
61	cmd:autoreconf
62	cmd:autoconf
63	cmd:autoheader
64	cmd:automake
65	cmd:awk
66	cmd:gcc$secondaryArchSuffix
67	cmd:make
68	cmd:pkg_config$secondaryArchSuffix
69	"
70
71BUILD()
72{
73	export CFLAGS="-DBSD_SOURCE"
74	export LDFLAGS="-lbsd"
75	autoreconf -vfi
76	runConfigure --omit-dirs "bindir sbindir" ./configure \
77		--bindir=$commandBinDir \
78		--sbindir=$commandBinDir \
79		--enable-drivers=picolcd \
80		--enable-libusb \
81		--enable-libusb-1.0
82	make
83}
84
85INSTALL()
86{
87	make install
88}
89