From 33a6e239518fb98c2c195ffdfac9b45104491a7c Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 23 Nov 2012 12:43:56 +0000 Subject: Convert to new options framework PR: ports/173810 Submitted by: Chris Petrik Approved by: Jeff Burchell Feature safe: yes --- archivers/libpar2/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'archivers/libpar2') 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 -# +# 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 -- cgit v1.2.3