summaryrefslogtreecommitdiff
path: root/devel/cscope
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-09-27 14:34:12 +0000
committeragc <agc@pkgsrc.org>2000-09-27 14:34:12 +0000
commitb1634646b27a0f3ccd5990ca93fd4d311368c684 (patch)
tree9906de431dc05d1fb505515643a743d8991c4749 /devel/cscope
parent87cfcbbea99463d5d35d9d2dfcf65b2e2480ca06 (diff)
downloadpkgsrc-b1634646b27a0f3ccd5990ca93fd4d311368c684.tar.gz
Clean up the post-extract target, and use sh(1) for loops in preference
to make(1) .for loops.
Diffstat (limited to 'devel/cscope')
-rw-r--r--devel/cscope/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile
index 30ba5787059..ce7fd9aa79c 100644
--- a/devel/cscope/Makefile
+++ b/devel/cscope/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2000/09/11 15:26:38 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2000/09/27 14:34:12 agc Exp $
DISTNAME= cscope-15.0bl2
PKGNAME= cscope-15.0.2
@@ -11,21 +11,17 @@ 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}
-cscope-post-extract:
-.for FILE in command.c display.c edit.c exec.c find.c help.c input.c main.c
+post-extract:
@cd ${WRKSRC}/src; \
- ${MV} ${FILE} ${FILE}.orig; \
- ${SED} "s/^#include <curses.h>/#include <ncurses.h>/" \
- < ${FILE}.orig > ${FILE}
-.endfor
-.else
-cscope-post-extract:
- ${TRUE}
+ 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
.endif