Shawn Marion is finally going to Dallas in a complicated four-way trade, according to sources.

The Mavericks will acquire Marion and Kris Humphries from Toronto and Greg Buckner from Memphis, with Marion to receive a five-year contract worth an estimated $39 million. Buckner is likely to be released, sources said.

The Grizzlies will land Jerry Stackhouse from Dallas and a substantial cash payment to buy out Stackhouse's contract. Only $2 million of Stackhouse's $7.25 million salary next season is guaranteed, as long as he is waived by Aug. 10.

The Raptors will receive Devean George and Antoine Wright from the Mavericks, while also preserving their $5.9 million mid-level exception for the coming season by turning their acquisition of Turkoglu, who is receiving a five-year deal worth an estimated $53 million, into a sign-and-trade as opposed to an outright signing.

Assembling the trade this way could also enable Toronto to re-sign Carlos Delfino.

The Magic, meanwhile, were motivated to join in the trade because their participation, as opposed to merely letting Turkoglu walk, will create a valuable trade exception they can use in future deals worth around $7 million.