make options target in

Matt Douhan matt at
Sun Nov 16 14:11:25 PST 2003


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 

I have the following in my

.if !target(options)
        @${ECHO_CMD} | ${GREP} "(WITH" Makefile | ${GREP} -v 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.



Matt Douhan
matt at
ping elvis
elvis is alive
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url :

More information about the freebsd-current mailing list