aboutsummaryrefslogtreecommitdiff
path: root/devel/cscope
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2012-10-04 07:22:16 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2012-10-04 07:22:16 +0000
commit6f55c3c198a521d069cfd6b25f98b5e1e3a2cc76 (patch)
tree80c78b150992d10ced17417b43bc486761e9966b /devel/cscope
parent9dc0f62a37e70c89b3bc405f55479b1d1070093f (diff)
downloadports-6f55c3c198a521d069cfd6b25f98b5e1e3a2cc76.tar.gz
ports-6f55c3c198a521d069cfd6b25f98b5e1e3a2cc76.zip
- Convert to OptionsNG
Notes
Notes: svn path=/head/; revision=305239
Diffstat (limited to 'devel/cscope')
-rw-r--r--devel/cscope/Makefile27
1 files changed, 10 insertions, 17 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile
index d4cd248638e8..8b2ac5c41a51 100644
--- a/devel/cscope/Makefile
+++ b/devel/cscope/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# ports collection makefile for: cscope
-# Date created: 1998-11-21
-# Whom: Castor Fu
-#
+# Created by: Castor Fu
# $FreeBSD$
-#
PORTNAME= cscope
PORTVERSION= 15.8
@@ -14,7 +9,8 @@ MASTER_SITES= SF
MAINTAINER= gahr@FreeBSD.org
COMMENT= An interactive C program browser
-OPTIONS= XCSCOPE "Install (X)Emacs package" off
+OPTIONS_DEFINE= XCSCOPE
+XCSCOPE_DESC= Install (X)Emacs package
USE_BZIP2= yes
GNU_CONFIGURE= yes
@@ -22,23 +18,20 @@ GNU_CONFIGURE= yes
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_XCSCOPE)
+.if ${PORT_OPTIONS:MXCSCOPE}
PLIST_SUB+= XCSCOPE=""
-.else
-PLIST_SUB+= XCSCOPE="@comment "
-.endif
-
-MAN1= cscope.1
-
-.if defined(WITH_XCSCOPE)
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/xcscope/cscope-indexer ${PREFIX}/bin
${MKDIR} ${EMACSLISPDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/xcscope/xcscope.el ${EMACSLISPDIR}
${MKDIR} ${XEMACSLISPDIR}
${LN} -sf ${EMACSLISPDIR}/xcscope.el ${XEMACSLISPDIR}
+.else
+PLIST_SUB+= XCSCOPE="@comment "
.endif
-.include <bsd.port.post.mk>
+MAN1= cscope.1
+
+.include <bsd.port.mk>