ports/173784: [PATCH] archievers/ark optionsng

Chris Petrik c.petrik.sosa at gmail.com
Wed Nov 21 22:00:26 UTC 2012


>Number:         173784
>Category:       ports
>Synopsis:       [PATCH] archievers/ark optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 22:00:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
OptionsNG changes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: ark/Makefile
===================================================================
--- ark/Makefile        (revision 305486)
+++ ark/Makefile        (working copy)
@@ -1,7 +1,4 @@
-# New ports collection Makefile for:   kdeutils
-# Date created:                                2008-01-31
-# Whom:                                        Martin Wilke <miwi at FreeBSD.org>
-#
+# Created by: Martin Wilke <miwi at FreeBSD.org>
 # $FreeBSD$

 PORTNAME=      ark
@@ -26,17 +23,19 @@

 MAN1=          ark.1

-OPTIONS=       7ZIP "Support for 7-Zip archives in Ark" off \
-               RAR "Support for RAR archives in Ark" off \
-               ZIP "Support for ZIP archives in Ark" off
+OPTIONS_DEFINE=        7ZIP RAR ZIP

+7ZIP_DESC=     Support for 7-Zip archives in Ark
+RAR_DESC=      Support for RAR archives in Ark
+ZIP_DESC=      Support for ZIP archives in Ark
+
 .include <bsd.port.options.mk>

-.ifdef(WITH_7ZIP)
+.if ${PORT_OPTIONS:M7ZIP}
 RUN_DEPENDS+=  7z:${PORTSDIR}/archivers/p7zip
 .endif

-.ifdef(WITH_ZIP)
+.if ${PORT_OPTIONS:MZIP}
 RUN_DEPENDS+=  unzip>0:${PORTSDIR}/archivers/unzip \
                zip:${PORTSDIR}/archivers/zip
 .endif
@@ -47,7 +46,7 @@
 LIB_DEPENDS+=  archive.12:${PORTSDIR}/archivers/libarchive
 .endif

-.ifdef(WITH_RAR)
+.if ${PORT_OPTIONS:MRAR}
 RUN_DEPENDS+=  unrar:${PORTSDIR}/archivers/unrar
 .if ${ARCH} != "amd64" && ${ARCH} != "ia64" && ${ARCH} != "powerpc" && ${ARCH} != "sparc64"
 INSTALL_RAR=   YES

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list