Files
haikuports/sys-apps/most/most-5.2.0.recipe
2023-05-03 20:32:24 -06:00

67 lines
1.4 KiB
Bash

SUMMARY="A paging program similar to 'more' and 'less'"
DESCRIPTION="'Most' is a powerful paging program for Unix, VMS, MSDOS, and win32 systems. \
Unlike other well-known paging programs 'most' supports multiple windows and can \
scroll left and right. Why settle for less?"
HOMEPAGE="http://www.jedsoft.org/most/"
COPYRIGHT="1991-2022 John E. Davis"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://www.jedsoft.org/releases/most/most-$portVersion.tar.gz"
CHECKSUM_SHA256="9455aeb8f826fa8385c850dc22bf0f22cf9069b3c3423fba4bf2c6f6226d9903"
SOURCE_DIR="most-$portVersion"
PATCHES="most-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
most$secondaryArchSuffix = $portVersion compat >= 5
cmd:most$commandSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libslang$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libslang$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:m4
cmd:make
"
PATCH()
{
sed -i "s,-lm,," src/Makefile.in
}
BUILD()
{
make -C autoconf
runConfigure ./configure \
--with-slanglib=$libDir \
--with-slanginc=$includeDir
make
}
INSTALL()
{
make install
}