Index: head/devel/cscope/Makefile =================================================================== --- head/devel/cscope/Makefile +++ head/devel/cscope/Makefile @@ -1,22 +1,23 @@ -# Created by: Castor Fu # $FreeBSD$ PORTNAME= cscope -PORTVERSION= 15.9 +DISTVERSION= 15.9 CATEGORIES= devel MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION} MAINTAINER= moritz@schmi.tt -COMMENT= Interactive C program browser +COMMENT= Interactive C source code browser LICENSE= BSD3CLAUSE USES= ncurses + +GNU_CONFIGURE= yes + OPTIONS_DEFINE= XCSCOPE OPTIONS_SUB= yes -XCSCOPE_DESC= Install Emacs package -GNU_CONFIGURE= yes +XCSCOPE_DESC= Install Emacs package EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp Index: head/devel/cscope/files/patch-src_exec.c =================================================================== --- head/devel/cscope/files/patch-src_exec.c +++ head/devel/cscope/files/patch-src_exec.c @@ -0,0 +1,20 @@ +--- src/exec.c.orig 2020-10-05 09:17:52 UTC ++++ src/exec.c +@@ -55,7 +55,7 @@ static sighandler_t oldsigtstp; /* old value of SIGTST + + #ifndef __MSDOS__ /* none of these is needed, there */ + static int join(pid_t p); +-static int myexecvp(char *a, char **args); ++void myexecvp(char *a, char **args); + static pid_t myfork(void); + #endif + +@@ -111,7 +111,7 @@ execute(char *a, ...) /* note: "exec" is already defin + /* myexecvp is an interface to the execvp system call to + * modify argv[0] to reference the last component of its path-name. + */ +-static int ++void + myexecvp(char *a, char **args) + { + char msg[MSGLEN + 1]; Index: head/devel/cscope/files/patch-src_input.c =================================================================== --- head/devel/cscope/files/patch-src_input.c +++ head/devel/cscope/files/patch-src_input.c @@ -0,0 +1,11 @@ +--- src/input.c.orig 2020-10-05 19:47:54 UTC ++++ src/input.c +@@ -45,7 +45,7 @@ + #include + #include + #if HAVE_SYS_TERMIOS_H +-#include ++#include + #endif + + static jmp_buf env; /* setjmp/longjmp buffer */ Index: head/devel/cscope/files/patch-src_invlib.c =================================================================== --- head/devel/cscope/files/patch-src_invlib.c +++ head/devel/cscope/files/patch-src_invlib.c @@ -0,0 +1,11 @@ +--- src/invlib.c.orig 2020-10-05 13:04:06 UTC ++++ src/invlib.c +@@ -103,7 +103,7 @@ static int zipf[ZIPFSIZE + 1]; + long + invmake(char *invname, char *invpost, FILE *infile) + { +- unsigned char *s; ++ char *s; + long num; + int i; + long fileindex = 0; /* initialze, to avoid warning */ Index: head/devel/cscope/pkg-descr =================================================================== --- head/devel/cscope/pkg-descr +++ head/devel/cscope/pkg-descr @@ -1,8 +1,8 @@ -This port of SCO / USL's 'cscope' lets one easily navigate large C programs. -It's designed to answer questions like where symbols are defined and used, -where variables are assigned, and much more. +cscope is a screen-oriented software development tool that allows the user to +browse through C source files for specified code elements. It can find symbols, +global definitions, functions called by a function, functions calling a +function, arbitrary regexp patterns and much more. cscope can be used for +projects of all sizes. Vim and Emacs integration is available. -The Santa Cruz Operation (SCO) has made this available under a very friendly, -BSD-style Open Source License. - WWW: http://cscope.sourceforge.net/ +https://sourceforge.net/projects/cscope/