summaryrefslogtreecommitdiff
path: root/devel/cscope
diff options
context:
space:
mode:
authoragc <agc>2000-09-28 12:41:36 +0000
committeragc <agc>2000-09-28 12:41:36 +0000
commit363081ade5244bc5ffb325249a421b4321894e44 (patch)
treeaf8bf37efcd211203362a2ba66e11a93b3d20125 /devel/cscope
parentec3f360bb30da63bed837cd5780035b7fb7e56d0 (diff)
downloadpkgsrc-363081ade5244bc5ffb325249a421b4321894e44.tar.gz
Revert previous change, which was tested with the wrong version of
bsd.pkg.mk and bsd.prefs.mk.. Pointed out by Thomas Klausner.
Diffstat (limited to 'devel/cscope')
-rw-r--r--devel/cscope/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile
index ce7fd9aa79c..810c1fcf987 100644
--- a/devel/cscope/Makefile
+++ b/devel/cscope/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2000/09/27 14:34:12 agc Exp $
+# $NetBSD: Makefile,v 1.11 2000/09/28 12:41:36 agc Exp $
DISTNAME= cscope-15.0bl2
PKGNAME= cscope-15.0.2
@@ -11,17 +11,21 @@ HOMEPAGE= http://cscope.sourceforge.net/
GNU_CONFIGURE= YES
USE_CURSES= YES
+post-extract: cscope-post-extract
+
.include "../../mk/bsd.pkg.mk"
.if ${NEED_NCURSES} == "YES"
CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE}
-post-extract:
+cscope-post-extract:
+.for FILE in command.c display.c edit.c exec.c find.c help.c input.c main.c
@cd ${WRKSRC}/src; \
- for f in command.c display.c edit.c exec.c find.c help.c \
- input.c main.c; do \
- ${MV} $$f $$f.orig; \
- ${SED} "s/^#include <curses.h>/#include <ncurses.h>/" \
- $$f.orig > $$f; \
- done
+ ${MV} ${FILE} ${FILE}.orig; \
+ ${SED} "s/^#include <curses.h>/#include <ncurses.h>/" \
+ < ${FILE}.orig > ${FILE}
+.endfor
+.else
+cscope-post-extract:
+ ${TRUE}
.endif