make options target in bsd.port.mk

From: Matt Douhan <matt_at_fruitsalad.org>
Date: Sun, 16 Nov 2003 23:10:40 +0100
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:
        _at_${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 _at_ [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 _at_ [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
matt_at_fruitsalad.org
ping elvis
elvis is alive

Received on Sun Nov 16 2003 - 13:11:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:29 UTC