Date: Wed, 21 Nov 2012 21:49:55 GMT From: Chris Petrik <c.petrik.sosa@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173784: [PATCH] archievers/ark optionsng Message-ID: <201211212149.qALLntE3013769@red.freebsd.org> Resent-Message-ID: <201211212200.qALM04QC037624@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@FreeBSD.org> -# +# Created by: Martin Wilke <miwi@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211212149.qALLntE3013769>