Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 12:34:39 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307676 - head/comms/jerm
Message-ID:  <201211231234.qANCYd6M013492@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Nov 23 12:34:39 2012
New Revision: 307676
URL: http://svnweb.freebsd.org/changeset/ports/307676

Log:
  Convert to new options framework
  
  PR:		ports/173605
  Submitted by:	edward@rdtan.net
  Approved by:	Matsui Shinsuke <matsuis@gmail.com> (maintainer)
  Feature safe:	yes

Modified:
  head/comms/jerm/Makefile

Modified: head/comms/jerm/Makefile
==============================================================================
--- head/comms/jerm/Makefile	Fri Nov 23 09:20:27 2012	(r307675)
+++ head/comms/jerm/Makefile	Fri Nov 23 12:34:39 2012	(r307676)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	jerm
-# Date created:		Jun 25, 2005
-# Whom:			Shinsuke Matsui (<smatsui@karashi.org>)
-#
+# Created by: Shinsuke Matsui <smatsui@karashi.org>
 # $FreeBSD$
-#
 
 PORTNAME=	jerm
 PORTVERSION=	8096
@@ -15,19 +11,21 @@ COMMENT=	Communication terminal through 
 
 MAN1=		jerm.1
 
-OPTIONS=	JUPITER		"With Jupiter support" off
+OPTIONS_DEFINE=	JUPITER
+
+JUPITER_DESC=	With Jupiter support
 
 PORTDOCS=	README
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_JUPITER)
+.if ${PORT_OPTIONS:MJUPITER}
 PLIST_SUB+=	WITH_JUPITER=""
 .else
 PLIST_SUB+=	WITH_JUPITER="@comment "
 .endif
 
-.if !defined(WITH_JUPITER)
+.if ! ${PORT_OPTIONS:MJUPITER}
 MAKE_ARGS+=	JUPITER_FLAGS=
 .endif
 
@@ -39,14 +37,14 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/jerm ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/tiocdtr ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/jerm.1 ${PREFIX}/man/man1
-.if defined(WITH_JUPITER)
+.if ${PORT_OPTIONS:MJUPITER}
 	@${MKDIR} ${PREFIX}/libexec/jerm
 	${INSTALL_SCRIPT} ${WRKSRC}/init.sh ${PREFIX}/libexec/jerm
 	${INSTALL_SCRIPT} ${WRKSRC}/rock.pl ${PREFIX}/libexec/jerm
 .endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MOCS}
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211231234.qANCYd6M013492>