Convert cscope to working recipe

This commit is contained in:
Chris Roberts
2013-10-16 16:17:16 -06:00
parent bd04c88bb6
commit c3ddab959c
2 changed files with 52 additions and 11 deletions

View File

@@ -1,22 +1,62 @@
DESCRIPTION="Cscope is a developer's tool for browsing source code."
SUMMARY="Cscope is 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/"
SRC_URI="http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2/download"
SRC_URI="http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2"
CHECKSUM_MD5="da43987622ace8c36bbf14c15a350ec1"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
ARCHITECTURES="x86 x86_gcc2"
LICENSE="BSD (3-clause)"
COPYRIGHT="1998-2000 The Santa Cruz Operation"
SOURCE_DIR="$portVersionedName"
PATCHES="cscope-15.7a.patch"
PROVIDES="
cscope = $portVersion compat >= 15
cmd:cscope = $portVersion compat >= 15
cmd:ocs = $portVersion compat >= 15
"
REQUIRES="
haiku >= $haikuVersion
lib:libncurses
"
BUILD_REQUIRES="
devel:libncurses
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:gcc
cmd:make
cmd:autoreconf
cmd:aclocal
cmd:flex
cmd:bison
cmd:pkg_config
cmd:gawk
"
BUILD()
{
cd cscope-15.7a
autoreconf -fvi
./configure --prefix=`finddir B_COMMON_DIRECTORY`
runConfigure ./configure
make
}
INSTALL()
{
cd cscope-15.7a
make install
}
LICENSE="BSD (3-clause)"
COPYRIGHT="1998-2000 The Santa Cruz Operation"

View File

@@ -1,11 +1,12 @@
diff -ur cscope-15.7a/configure.in cscope-15.7a-haiku/configure.in
--- cscope-15.7a/configure.in 2009-04-30 13:17:34.000000000 -0600
+++ cscope-15.7a-haiku/configure.in 2009-12-29 02:33:05.000000000 -0700
@@ -264,6 +264,8 @@
@@ -264,6 +264,9 @@
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
+ AC_NCURSES(/boot/develop/headers/3rdparty, ncurses.h, -lncurses,, "ncurses on /boot/develop/headers/3rdparty")
+ AC_NCURSES(/boot/system/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/system/develop/headers")
+ AC_NCURSES(/boot/home/config/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/home/config/develop/headers")
+
dnl
dnl We couldn't find ncurses, try SysV curses