On 10/06/2020 15:51, Donald Wilde wrote:
Okay, it didn't work, but discovered INDEX-12 in /usr/ports, so
' grep gcc INDEX-12 | wc -l ' worked.
Such an interesting file, INDEX-12. More research needed. Is it not
INDEX-13 because I did ' make index' instead of ' make fetchindex ' ?
You should always get an index matching the major version of the OS
you're using, whether you fetch something pre-built or make you own.
Memo to self: figure out what basic options are supported in
Makefiles, especially in/usr/ports/, and make clear documentation
patches (if needed). :D
/self thinks this is all probably in the Porter's Handbook, but the
regular Handbook should have some of it.
The ports(7) man page probably has a lot of what you're looking for.
There's a 'make search' command which is a wrapper around grepping in
the INDEX file that you might find interesting.
For your use case, try:
cd /usr/ports
make search bdeps=gcc display=name
which returns 3241 results when I tried it just now.
Cheers,
Matthew
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"