Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 12:43:56 +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: r307677 - head/archivers/libpar2
Message-ID:  <201211231243.qANChu2D014695@svn.freebsd.org>

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

Log:
  Convert to new options framework
  
  PR:		ports/173810
  Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
  Approved by:	Jeff Burchell <toxic@doobie.com>
  Feature safe:	yes

Modified:
  head/archivers/libpar2/Makefile

Modified: head/archivers/libpar2/Makefile
==============================================================================
--- head/archivers/libpar2/Makefile	Fri Nov 23 12:34:39 2012	(r307676)
+++ head/archivers/libpar2/Makefile	Fri Nov 23 12:43:56 2012	(r307677)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	libpar2
-# Date created:				16 Aug 2008
-# Whom:					Jeff Burchell <toxic@doobie.com>
-#
+# Created by: Jeff Burchell <toxic@doobie.com>
 # $FreeBSD$
-#
 
 PORTNAME=	libpar2
 PORTVERSION=	0.2
@@ -23,18 +19,20 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 
 USE_LDCONFIG=	yes
 
-OPTIONS=	ENABLECANCEL "Enable graceful cancellation of repairs" On
+OPTIONS_DEFINE=	ENABLECANCEL
+OPTIONS_DEFAULT=	ENABLECANCEL
+ENABLECANCEL_DESC=	Enable graceful cancellation of repairs
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_ENABLECANCEL)
+.if ${PORT_OPTIONS:MENABLECANCEL}
 EXTRA_PATCHES+=	${FILESDIR}/xpatch-addcancel-par2repairer.cpp
 .endif
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_MAN} ${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?201211231243.qANChu2D014695>