diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-20 03:22:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-20 03:22:17 +0000 |
commit | 0d7250031191a6d8ea96d37babdefe645f4ec1a3 (patch) | |
tree | 56bfa31ad5005d18bf0e48cebdb17634ec211ae7 /devel/cscope | |
parent | 90d37a07339966f9eb42fe29287c1adfc59fea32 (diff) | |
download | pkgsrc-0d7250031191a6d8ea96d37babdefe645f4ec1a3.tar.gz |
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Also
use a slightly more general mechanism to replaces references to <curses.h>
to <ncurses.h> in the source files.
Diffstat (limited to 'devel/cscope')
-rw-r--r-- | devel/cscope/Makefile | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile index f32049ad07a..3f53def0c59 100644 --- a/devel/cscope/Makefile +++ b/devel/cscope/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2001/02/16 14:38:21 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2001/06/20 03:22:17 jlam Exp $ DISTNAME= cscope-15.0bl2 PKGNAME= cscope-15.0.2 @@ -9,21 +9,20 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://cscope.sourceforge.net/ COMMENT= interactive C program browser -GNU_CONFIGURE= YES -USE_CURSES= YES +GNU_CONFIGURE= YES +USE_BUILDLINK_ONLY= YES -.include "../../mk/bsd.prefs.mk" +CONFIGURE_ARGS+= --with-ncurses=${BUILDLINK_DIR} -.if ${NEED_NCURSES} == "YES" -CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE} +# Change references to <curses.h> to <ncurses.h> in the source files. +NCURSES_SED= -e "s|<curses.h>|<ncurses.h>|g" 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 + cd ${WRKSRC}/src; for file in *.[ch]; do \ + ${MV} -f $${file} $${file}.presubst; \ + ${SED} ${NCURSES_SED} $${file}.presubst > $${file}; \ + ${RM} -f $${file}.presubst; \ + done +.include "../../devel/ncurses/buildlink.mk" .include "../../mk/bsd.pkg.mk" |