0
0
Fork 0
haikuports/app-misc/lcdproc/lcdproc-0.5.9.recipe

89 lines
2.3 KiB
Bash
Raw Permalink Normal View History

SUMMARY="Client/server app to drive LCD displays"
DESCRIPTION="LCDproc controls various LCD and VFD devices in a standardized way, and ships with a \
client to display various system statistics. Supports multiple platforms (Linux, *BSD, Solaris). \
Client/server model allows multiple clients to use one display."
HOMEPAGE="http://www.lcdproc.org"
COPYRIGHT="1998-2014 William W. Ferrell, Selene Scriven and many other contributors"
2017-09-28 19:20:01 +00:00
LICENSE="GNU GPL v2"
REVISION="3"
2017-09-28 19:20:01 +00:00
SOURCE_URI="https://github.com/lcdproc/lcdproc/releases/download/v$portVersion/lcdproc-$portVersion.tar.gz"
CHECKSUM_SHA256="d48a915496c96ff775b377d2222de3150ae5172bfb84a6ec9f9ceab962f97b83"
PATCHES="lcdproc-$portVersion.patchset"
2018-08-03 05:07:13 +00:00
ARCHITECTURES="all !x86_gcc2"
2019-04-23 17:35:32 +00:00
SECONDARY_ARCHITECTURES="x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
2018-08-03 05:07:13 +00:00
2017-09-28 19:20:01 +00:00
GLOBAL_WRITABLE_FILES="
settings/LCDd.conf keep-old
settings/lcdexec.conf keep-old
settings/lcdproc.conf keep-old
settings/lcdvc.conf keep-old
2019-04-23 17:35:32 +00:00
"
2017-09-28 19:20:01 +00:00
PROVIDES="
2019-04-23 17:35:32 +00:00
lcdproc$secondaryArchSuffix = $portVersion
cmd:fortune.pl$commandSuffix
cmd:iosock.pl$commandSuffix
cmd:LCDd$commandSuffix
cmd:lcdexec$commandSuffix
cmd:lcdident.pl$commandSuffix
cmd:lcdmetar.pl$commandSuffix
cmd:lcdproc$commandSuffix
cmd:lcdvc$commandSuffix
cmd:tail.pl$commandSuffix
cmd:x11amp.pl$commandSuffix
"
REQUIRES="
2019-04-23 17:35:32 +00:00
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libusb$secondaryArchSuffix
lib:libusb_1.0$secondaryArchSuffix
"
BUILD_REQUIRES="
2019-04-23 17:35:32 +00:00
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libusb$secondaryArchSuffix
devel:libusb_1.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
2019-04-23 17:35:32 +00:00
cmd:autoreconf
cmd:autoconf
2019-04-23 17:35:32 +00:00
cmd:autoheader
cmd:automake
cmd:awk
2019-04-23 17:35:32 +00:00
cmd:gcc$secondaryArchSuffix
cmd:make
2019-04-23 17:35:32 +00:00
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
2019-04-23 17:35:32 +00:00
export CFLAGS="-DBSD_SOURCE"
export LDFLAGS="-lbsd"
autoreconf -vfi
runConfigure --omit-dirs "bindir sbindir" ./configure \
--bindir=$commandBinDir \
--sbindir=$commandBinDir \
--enable-drivers=picolcd \
--enable-libusb \
--enable-libusb-1.0
make
}
INSTALL()
{
make install
}