SUMMARY="MOST is 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/"
SOURCE_URI="http://www.jedsoft.org/snapshots/most-pre5.1-15.tar.gz"
CHECKSUM_SHA256="b1b3078d855c810e8b697e4c35054e84d9c738ee960c1cc33429b246c28e1024"
LICENSE="GNU GPL v2"
COPYRIGHT="2004-2013 John E. Davis"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"
PATCHES="most-pre5.1_15.patchset"

PROVIDES="
	most = $portVersion compat >= 5
	cmd:most = $portVersion compat >= 5
	"

REQUIRES="
	haiku
	lib:libncurses
	lib:libslang
	"

BUILD_REQUIRES="
	devel:libncurses
	devel:libslang
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:autoconf
	cmd:find
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:ncurses5_config
	"

SOURCE_DIR="most-pre5.1-15"

PATCH()
{
	sed -i "s,-lm,," src/Makefile.in
}

BUILD()
{
	runConfigure ./configure \
	--with-slanglib=$libDir \
	--with-slanginc=$includeDir

	make
}

INSTALL()
{
	make install
}
