svn commit: r307677 - head/archivers/libpar2
Baptiste Daroussin
bapt at FreeBSD.org
Fri Nov 23 12:43:57 UTC 2012
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 at gmail.com>
Approved by: Jeff Burchell <toxic at 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 at doobie.com>
-#
+# Created by: Jeff Burchell <toxic at 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>
More information about the svn-ports-head
mailing list