From b67751fde5bbc4ace81e5d4a666fd99f715d9f69 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 20 Jun 2001 03:22:17 +0000 Subject: Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Also use a slightly more general mechanism to replaces references to to in the source files. --- devel/cscope/Makefile | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'devel') 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 to in the source files. +NCURSES_SED= -e "s|||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 /#include /" \ - < ${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" -- cgit v1.2.3