According to one Buddhist sutta, life came to earth from ahassara brahma, a world of another galaxy -- you can read the details of this from the Aggañña Sutta.
According to Agganna sutta, life coming from ahassara brahma world didn't have a physical body, they just had a spiritual body; with time they used to eat the soil of earth, on that time earth soil was like honey, after they began to eat earth soil their bodies became hard and their body light disappeared. The time mentioning here is million years ago from now, so we have to know these first life beings were ones much before apes, dinosaurs, etc.
So like that Buddhism suggests life came to earth from an another world, and then there is a space also for the Evolution. Life came like that then granted on the earth and with time it faced to evolution and came to present situation
An interesting thing about Aggañña Sutta is that it's told to contradict Brahmins, who say that, "The Brahmin caste is the highest caste", that, "other castes are base", and so on.
It mentions that Buddhist monks (who have "gone forth") disregard their birth caste:
Vasettha, all of you, though of different birth, name, clan and family, who have gone forth from the household life into homelessness, if you are asked who you are, should reply: “We are ascetics, followers of the Sakyan.” He whose faith in the Tathagata is settled, rooted, established, solid, unshakeable by any ascetic or Brahmin, any deva or mara or Brahma or anyone in the world, can truly say: “I am a true son of Blessed Lord, born of his mouth, born of Dhamma, created by Dhamma, an heir of Dhamma.”
Instead of identifying themselves by their "caste", they should identify themselves as "followers of the Buddha" and "heirs to the Dhamma".
Instead of "caste" (or "outcaste") being determined by birth, another Buddhist sutta teaches that anyone doesn't become "brahmin" nor "villain" from birth. Instead, it's acts they do which decide that.
Na jaccā vasalo hoti,
Na jaccā hoti brāhmaṇo;
Kammunā vasalo hoti,
Kammunā hoti brāhmaṇo.
One’s not an outcaste caused by “birth”,
not by “birth” a brahmin is;
caused by karma one’s outcaste,
a brahmin is by karma caused.
-- Who is the outcaste? (Snp 1.7)