Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2003 12:13:04 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   new target to display options
Message-ID:  <20030418101304.GF20941@freepuppy.bellavista.cz>

next in thread | raw e-mail | index | archive | help
Hi there,

various ports display messages informing the user that they can use
WITH_THIS or WITHOUT_THAT. these messages are put into pre-everything,
pre-fetch, post-fetch... How about a new target, say, "options"?

/usr/ports/foo/bar/Makefile:

options:
    @${ECHO_CMD} "You can use the following variables to build this port:"
    @${ECHO_CMD} "WITH_FOO:    includes support for FOO"
    @${ECHO_CMD} "WITHOUT_BAR: disables support for BAR"


/usr/ports/Mk/bsd.port.mk:

.if !target(options)
options:
    @${ECHO_CMD} "No user-servicable parts inside."
    @${ECHO_CMD} "Warranty void if removed."
.endif

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



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