svn commit: r305239 - head/devel/cscope
Pietro Cerutti
gahr at FreeBSD.org
Thu Oct 4 07:32:12 UTC 2012
Author: gahr
Date: Thu Oct 4 07:22:16 2012
New Revision: 305239
URL: http://svn.freebsd.org/changeset/ports/305239
Log:
- Convert to OptionsNG
Modified:
head/devel/cscope/Makefile (contents, props changed)
Modified: head/devel/cscope/Makefile
==============================================================================
--- head/devel/cscope/Makefile Thu Oct 4 07:21:06 2012 (r305238)
+++ head/devel/cscope/Makefile Thu Oct 4 07:22:16 2012 (r305239)
@@ -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 at 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>
More information about the svn-ports-all
mailing list