SUMMARY="A developer's tool for browsing source code"
DESCRIPTION="
Allows searching code for:
* all references to a symbol
* global definitions
* functions called by a function
* functions calling a function
* text string
* regular expression pattern
* a file
* files including a file"
HOMEPAGE="http://cscope.sourceforge.net/"
COPYRIGHT="1998-2000 The Santa Cruz Operation"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/cscope/files/cscope/v$portVersion/cscope-$portVersion.tar.gz"
CHECKSUM_SHA256="c5505ae075a871a9cd8d9801859b0ff1c09782075df281c72c23e72115d9f159"
PATCHES="cscope-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	cscope = $portVersion
	cmd:cscope = $portVersion compat >= 15
	cmd:ocs = $portVersion compat >= 15
	"
REQUIRES="
	haiku
	lib:libncurses
	"

BUILD_REQUIRES="
	devel:libncurses
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:aclocal
	cmd:autoreconf
	cmd:bison
	cmd:flex
	cmd:gawk
	cmd:gcc
	cmd:make
	cmd:pkg_config
	"

BUILD()
{
	autoreconf -fvi
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}
