Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2003 23:10:40 +0100
From:      Matt Douhan <matt@fruitsalad.org>
To:        current@freebsd.org
Subject:   make options target in bsd.port.mk
Message-ID:  <200311162310.55012.matt@fruitsalad.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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
matt@fruitsalad.org
ping elvis
elvis is alive

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/t/XuJ58/+TqKmQsRAv7XAKChO/NzZtbH0SulrfP27RAvEhajlQCbBkHy
UMZwDSJGX0fv8w5kPmDAPBY=
=+yA9
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311162310.55012.matt>