pkgsrc/devel/cscope/Makefile
2000-05-30 20:42:23 +00:00

36 lines
820 B
Makefile

# $NetBSD: Makefile,v 1.5 2000/05/30 20:42:23 dmcmahill Exp $
DISTNAME= cscope-15.0bl2
PKGNAME= cscope-15.0.2
CATEGORIES= devel
MASTER_SITES= http://download.sourceforge.net/cscope/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://cscope.sourceforge.net/
GNU_CONFIGURE= YES
OSVER!= uname -r
GOOD_CURSES= 1.4[A-Z] 1.[5-9]*
.for PATTERN in ${GOOD_CURSES}
.if ${OSVER:M${PATTERN}} != ""
CURSES_GOOD?=
.endif
.endfor
.if !defined(CURSES_GOOD)
DEPENDS+= ncurses>=5.0:../../devel/ncurses
CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE}
post-extract:
.for FILE in command.c display.c edit.c exec.c find.c help.c input.c main.c
@cd ${WRKSRC}/src; \
${MV} ${FILE} ${FILE}.orig; \
${SED} "s/^#include <curses.h>/#include <ncurses.h>/" \
< ${FILE}.orig > ${FILE}
.endfor
.endif
.include "../../mk/bsd.pkg.mk"