aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/libpar2
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-11-23 20:43:56 +0800
committerbapt <bapt@FreeBSD.org>2012-11-23 20:43:56 +0800
commit3d3c96e0797f019be5d4055590e1114bc729200d (patch)
treebf5a51cdd2a4ae0dc1062c1f7250d2294e0dc56a /archivers/libpar2
parentb9f898cc08b6d4341427493d681427bf1038bacd (diff)
downloadfreebsd-ports-gnome-3d3c96e0797f019be5d4055590e1114bc729200d.tar.gz
freebsd-ports-gnome-3d3c96e0797f019be5d4055590e1114bc729200d.tar.zst
freebsd-ports-gnome-3d3c96e0797f019be5d4055590e1114bc729200d.zip
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
Diffstat (limited to 'archivers/libpar2')
-rw-r--r--archivers/libpar2/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/archivers/libpar2/Makefile b/archivers/libpar2/Makefile
index fdf4159c37b4..497d6347796c 100644
--- a/archivers/libpar2/Makefile
+++ b/archivers/libpar2/Makefile
@@ -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>