1SUMMARY="A source code tagging system"
2DESCRIPTION="GNU GLOBAL is a source code tagging system that works the same \
3way across diverse environments (emacs, vi, less, bash, web browser, etc). \
4You can locate symbols in source files and move there easily. It is useful \
5for hacking a large project containing many sub-directories, many #ifdef and \
6many main() functions. It is similar to ctags or etags but is different from \
7them at the point of independence of any editor. It runs on a UNIX(POSIX) \
8compatible operating system like GNU and BSD."
9HOMEPAGE="http://www.gnu.org/software/global/"
10COPYRIGHT="2000-2013 Tama Communications Corporation
11	2007-2013 Free Software Foundation, Inc."
12LICENSE="GNU GPL v3"
13REVISION="2"
14SOURCE_URI="http://ftp.gnu.org/pub/gnu/global/global-$portVersion.tar.gz"
15CHECKSUM_SHA256="cbee98ef6c1b064bc5b062d14a6d94dca67289e8374860817057db7688bc651c"
16PATCHES="global-$portVersion.patchset"
17
18ARCHITECTURES="all"
19
20PROVIDES="
21	global = $portVersion compat >= 6.3
22	cmd:global = $portVersion compat >= 6.3
23	cmd:globash = $portVersion compat >= 6.3
24	cmd:gozilla = $portVersion compat >= 6.3
25	cmd:gtags = $portVersion compat >= 6.3
26	cmd:gtags_cscope = $portVersion compat >= 6.3
27	cmd:htags = $portVersion compat >= 6.3
28	cmd:htags_server = $portVersion compat >= 6.3
29	"
30REQUIRES="
31	haiku
32	cmd:ctags
33	cmd:sort
34	lib:libltdl
35	lib:libncurses >= 6
36	"
37
38BUILD_REQUIRES="
39	haiku_devel
40	devel:libncurses >= 6
41	"
42BUILD_PREREQUIRES="
43	cmd:aclocal
44	cmd:autoconf
45	cmd:autoreconf
46	cmd:ctags
47	cmd:find
48	cmd:gcc
49	cmd:grep
50	cmd:ld
51	cmd:libtool
52	cmd:make
53	cmd:perl
54	cmd:sed
55	cmd:sort
56	"
57
58BUILD()
59{
60	autoreconf -fi
61	runConfigure ./configure \
62		--with-ncurses \
63		--with-exuberant-ctags=${portPackageLinksDir}/cmd~ctags/bin/ctags \
64		--with-posix-sort=${portPackageLinksDir}/cmd~sort/bin/sort
65	make
66}
67
68INSTALL()
69{
70	make install
71}
72