From owner-svn-ports-all@FreeBSD.ORG Fri Nov 23 12:43:57 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F1D59B6; Fri, 23 Nov 2012 12:43:57 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E57CF8FC08; Fri, 23 Nov 2012 12:43:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qANChuux014696; Fri, 23 Nov 2012 12:43:56 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qANChu2D014695; Fri, 23 Nov 2012 12:43:56 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201211231243.qANChu2D014695@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 23 Nov 2012 12:43:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307677 - head/archivers/libpar2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 12:43:57 -0000 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 Approved by: Jeff Burchell 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 -# +# Created by: Jeff Burchell # $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 +.include -.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 +.include