a portlint dilemma
Mikhail Teterin
mi+kde at aldan.algebra.com
Wed Jul 27 05:48:49 GMT 2005
On Wednesday 27 July 2005 01:17 am, Adam Weinberger wrote:
= That is indeed a very good - albeit sneaky - trick!
I wonder, what portlint's intention is in this case. Is it to really
prevent things like I wanted in GraphicsMagick or just to make ports'
Makefiles more uniform (in which case this should be a warning, not a
"fatal" error).
= The main problem that I find with the OPTIONS chicken-and-egg problem
= is that you can't modify OPTIONS based on the presence of files
= because, when OPTIONS processing takes place, LOCALBASE and X11BASE
= aren't defined. Do you have a good sneaky trick for that case?
There is no chicken-and-egg problem, because the variables are not
expanded until used (or until assigned to others with ``:='').
How about:
OPTIONS=MEOW "Use libMEOW for additional purring?" ${MEOW}
.include <bsd.ports.pre.mk>
.if exists(${LOCALBASE}/lib/libMEOW.so)
MEOW= on
.else
MEOW= off
.endif
.include <bsd.ports.post.mk>
Does this work? Is it, what you are asking about?
-mi
More information about the freebsd-ports
mailing list