ports/173813: [PATCH] archievers/p7zip optionsng

Chris Petrik c.petrik.sosa at gmail.com
Wed Nov 21 23:10:01 UTC 2012


>Number:         173813
>Category:       ports
>Synopsis:       [PATCH] archievers/p7zip 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 23:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
Options NG Changes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: p7zip/Makefile
===================================================================
--- p7zip/Makefile      (revision 305486)
+++ p7zip/Makefile      (working copy)
@@ -10,16 +10,19 @@
 MAINTAINER=    rakuco at FreeBSD.org
 COMMENT=       File archiver with high compression ratio

-OPTIONS=       MINIMAL "Support only .7z file format" off \
-               MODULES "Build modules" on
+OPTIONS_DEFINE=        MINIMAL MODULES
+OPTIONS_DEFAULT=       MODULES

+MINIMAL_DESC=  Support only .7z file format
+MODULES_DESC=  Build modules
+
 USE_BZIP2=     yes
 MAKEFILE=      makefile
 WRKSRC=                ${WRKDIR}/${PORTNAME}_${PORTVERSION}

 .include <bsd.port.options.mk>

-.if defined(WITH_MINIMAL)
+.if ${PORT_OPTIONS:MMINIMAL}
 MAN1=          7zr.1
 MLINKS=                7zr.1 7z.1
 PLIST_SUB=     MODULES="@comment "
@@ -39,7 +42,7 @@
                libexec/p7zip/7za \
                libexec/p7zip/7zr \
                libexec/p7zip/7zCon.sfx
-.if !defined(WITHOUT_MODULES)
+.if ${PORT_OPTIONS:MMODULES}
 ALL_TARGET=    7z 7za 7zr Client7z sfx
 7ZBIN=         7z 7za 7zr Client7z 7zCon.sfx
 PLIST_DIRS+=   libexec/p7zip/Codecs

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


More information about the freebsd-ports-bugs mailing list