aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-11-10 00:13:25 +0800
committerobrien <obrien@FreeBSD.org>2001-11-10 00:13:25 +0800
commited2e690b93b93912e2628a4b7663e79cec6a8e9d (patch)
treed337e83347669c1852dd6067097c56c9cf8150b0 /editors
parent66fef4847a0507e4e63e30c042d4ee278d7e357e (diff)
downloadfreebsd-ports-gnome-ed2e690b93b93912e2628a4b7663e79cec6a8e9d.tar.gz
freebsd-ports-gnome-ed2e690b93b93912e2628a4b7663e79cec6a8e9d.tar.zst
freebsd-ports-gnome-ed2e690b93b93912e2628a4b7663e79cec6a8e9d.zip
Add Cscope support. Define WITH_CSCOPE to compile it in.
Submitted by: nectar
Diffstat (limited to 'editors')
-rw-r--r--editors/vim/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 580332889a11..22b1efef7ed0 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -41,7 +41,7 @@ WRKSRC= ${WRKDIR}/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g}/src
PATCH_DIST_ARGS= -d ${WRKDIR}/${PORTNAME}${PORTVERSION:C/\.[0-9]*$//:S/.//g} --forward --quiet -E ${PATCH_DIST_STRIP}
# consider
#PATCH_DIST_ARGS= -t
-MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib"
+MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
ALL_TARGET= #
PLIST_SUB= VIM_VER=${DISTNAME:S/-//:S/.//}
MAN1= evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
@@ -60,6 +60,11 @@ I18N= CONF_OPT_MULTIBYTE="--enable-multibyte --enable-fontset --enable-xim"
WITHOUT_X11= yes
.endif
+.if defined(WITH_CSCOPE)
+RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
+CSCOPE_ARG= --enable-cscope
+.endif
+
.if !defined(WITHOUT_X11)
# for now default the GUI to the GTK+ one
# will be reviewed when the GTK+ 1.{3,4} behemoth is released