aboutsummaryrefslogtreecommitdiff
path: root/archivers/libpar2/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-11-23 12:43:56 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-11-23 12:43:56 +0000
commit33a6e239518fb98c2c195ffdfac9b45104491a7c (patch)
treebf5a51cdd2a4ae0dc1062c1f7250d2294e0dc56a /archivers/libpar2/Makefile
parent8a601e5ee67600cde190f5b33cb4a8790f2b49b5 (diff)
downloadports-33a6e239518fb98c2c195ffdfac9b45104491a7c.tar.gz
ports-33a6e239518fb98c2c195ffdfac9b45104491a7c.zip
Notes
Diffstat (limited to 'archivers/libpar2/Makefile')
-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>