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/" 
SOURCE_URI="http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2"
CHECKSUM_SHA256="02638bcba790bc8b0562f28dbe789e61794415079d94a676efc287d18dc96037"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
LICENSE="BSD (3-clause)"
COPYRIGHT="1998-2000 The Santa Cruz Operation"


PATCHES="cscope-15.7a.patch"

PROVIDES="
	cscope = $portVersion compat >= 15
	cmd:cscope = $portVersion compat >= 15
	cmd:ocs = $portVersion compat >= 15
	"

REQUIRES="
	haiku
	lib:libncurses
	"

BUILD_REQUIRES="
	devel:libncurses
	"

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

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

INSTALL()
{
	make install
}
