make options target in bsd.port.mk

2003-11-16 Thread Matt Douhan
Hi

on the recent discussion on how to find out the variour WITH* options in a 
ports Makefile it sounds like a good idea, I think all of us have been tired 
of checking inside the actual Makefiles to find out what options are 
available.

I have the following in my bsd.port.mk

.if !target(options)
options:
@${ECHO_CMD} | ${GREP} "(WITH" Makefile | ${GREP} -v endif
.endif

it is not pretty, but it works for the ports I use and have installed the 
output is not ideal but as a quick help it works great

11:05pm mdouhan @ [dragonfruit] /usr/ports/x11-toolkits/qt32 > make options
.if !defined(WITHOUT_XFT)
.if !defined(WITHOUT_OPENGL)
.if !defined(WITHOUT_CUPS)
.if !defined(WITHOUT_OPENGL)
.if !defined(WITHOUT_XFT)
11:05pm mdouhan @ [dragonfruit] /usr/ports/x11-toolkits/qt32 >


just my 2 cents worth, and sure it possibly breaks in a zillion ways so use it 
at your own risk.

rgds

Matt

-- 
Matt Douhan
www.fruitsalad.org
[EMAIL PROTECTED]
ping elvis
elvis is alive


pgp0.pgp
Description: signature


Re: make options target in bsd.port.mk

2003-11-16 Thread Matt Douhan
On Sunday 16 November 2003 23.10, Matt Douhan wrote:
> Hi

sorry misfiled this to current@ should have gone to ports@

rgds

Matt

-- 
Matt Douhan
www.fruitsalad.org
[EMAIL PROTECTED]
ping elvis
elvis is alive


pgp0.pgp
Description: signature