Various parts of the distribution come with different licenses. This page contains links to the relevant licenses and will hopefully expand to list the licenses associated with or relevant to each consolidation.
OpenSolaris Binary License
Common Development and Distribution License (CDDL)
GNU General Public License Version 2 | Version 3
Apache License v2.0
The X consolidation has a breakdown of the licenses by package and a license reference page