diff options
author | jlam <jlam> | 2001-06-20 03:22:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-20 03:22:17 +0000 |
commit | cd27714507cf0a795920309b6a35626b60324ed0 (patch) | |
tree | 56bfa31ad5005d18bf0e48cebdb17634ec211ae7 | |
parent | 287a53c99751017c77252a42c3e2cb1a36e950b4 (diff) | |
download | pkgsrc-cd27714507cf0a795920309b6a35626b60324ed0.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.
-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" |