Bug 58011

Summary: Formalization of WITH_/WITHOUT_ Makefile variables
Product: Ports & Packages Reporter: Jean-Yves Lefort <jylefort>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jean-Yves Lefort 2003-10-14 15:30:21 UTC
Knowing which make variables can be set for a specific port is
cumbersome: the user has to mentally parse the Makefile.

The proposed patch formalizes the handling of make variables. A new
target, describe-options, generates a human- and computer-readable
options list.

Fix: In the Makefile of port foo:

OPTIONS=			WITHOUT_MBOX \
				WITHOUT_MH \
				WITHOUT_MAILDIR \
				WITHOUT_POP3 \
				WITHOUT_SYLPHEED

OPTION_WITHOUT_MBOX=		Disable mbox support
OPTION_WITHOUT_MH=		Disable MH support
OPTION_WITHOUT_MAILDIR=		Disable Maildir support
OPTION_WITHOUT_POP3=		Disable POP3 support
OPTION_WITHOUT_SYLPHEED=	Disable Sylpheed support

And the bsd.port.mk patch:
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2003-10-14 15:38:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Portmgr territory
Comment 2 Sergey Matveychuk 2003-10-18 23:00:16 UTC
Good point!
I suggest add it in build stage. May be just after pre-everything?

-- 
Sem.
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2004-01-20 19:26:57 UTC
State Changed
From-To: open->closed

We went with the OPTIONS solution instead.  Thanks for the submission.