Subject: either or DEPENDS?
To: None <tech-pkg@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: tech-pkg
Date: 12/22/1998 23:35:35
Is there a way to make an either/or entry in the DEPENDS variable in
pkgsrc makefiles?  The problem at hand is for programs which need a
fortran compiler.  You need either

f2c  package

or

egcs package

or

a newer NetBSD which includes egcs as the compiler.

is there a clean way to handle this in a package?  I could hack a gnu
'configure' script to search for f77 and then f2c-f77 and then fail if
neither is there, but it would be nice if the package would just tell the
user 'hey, you need one of these things'.

Any suggestions?

Thanks

-Dan