Half a world away, Chris Bosh could not escape the frenzy of last week.

An offer from the Houston Rockets was waiting. His longtime Miami teammate LeBron James was leaving. For a few moments, Bosh found himself wondering if his days with the Heat were over.

Then he looked at his family, and everything stopped.

“We’ve built a life in South Florida and we’re comfortable,” Bosh said Sunday. “So I had to do what’s best now for myself and my family.”

With that, his decision became very easy. Bosh will sign a $118 million, five-year deal to stay with the Heat, a formality only held up by the logistical challenge presented by him being in Ghana right now and with more exotic stops on a family vacation still to come before returning home.

When he finally puts pen to paper, the Heat locker room will essentially become his — and in an interview with The Associated Press, Bosh said that while it’s a shock to realize James is no longer with Miami after four seasons, he’s ready to have that voice.

“I can’t lie to you: I’m excited. I’m excited for the challenge,” Bosh said during a break from NBA Africa duties. “I want to step up to the challenge. I feel this is a chance to prove to myself and others that I can still do this.

“I want to see if I can do what’s necessary to go in there and win every night. That’s the challenge of being a leader. It excites me. It’s been a long time and I feel like I’m a much better player and a leader now, so it’ll be fun.”

Anthony staying with Knicks

NEW YORK — Carmelo Anthony is remaining with the Knicks, saying he wants “to stay and build here with this city and my team.”

Anthony made his decision official Sunday with a posting on his website. He writes: “In the end, I am a New York Knick at heart.”

Anthony explains that he owed it to himself to explore other opportunities as a free agent, but in the end his “heart never wavered.”

The Knicks can pay the All-Star forward they acquired in February 2011 nearly $130 million over five years.

Jeremy Lin joins Lakers

EL SEGUNDO, Calif. — Jeremy Lin joined the Lakers on Sunday in a trade with the Houston Rockets, who also gave up first- and second-round draft picks in 2015 for the rights to European center Sergei Lishchuk.

Lin will make about $15 million this season in the last year of a deal that counts only $8 million against the salary cap. The Lakers have the cap room to absorb Lin’s contract.

Lakers General Manager Mitch Kupchak said the trade allows the team to acquire a solid player and two draft picks while maintaining financial flexibility.

Lin averaged 12.5 points and 4.1 assists last season, but lost his starting job because coach Kevin McHale preferred Patrick Beverley’s defensive play.

Lin was born in Los Angeles and figures to be popular with the region’s large Asian community. He was raised in Northern California and played four years at Harvard.

Deng signs with Heat

Free agent forward Luol Deng agreed Sunday to a $20 million, two-year deal with the Miami Heat, said Herb Rudoy, one of Deng’s agents.

The deal includes a player option for the 2015-16 season, Rudoy said.

Deng is entering his 11th NBA season, having spent almost his entire career with the Chicago Bulls. He appeared in 40 games with the Cleveland Cavaliers after a trade last season. He fills a need in Miami, which lost LeBron James last week after the four-time NBA MVP said he would leave the Heat after four seasons and return to the Cavaliers.

Parsons headed to Mavs

DALLAS — Chandler Parsons is going to the Dallas Mavericks after the Houston Rockets decided not to match the restricted free agent’s three-year offer sheet worth more than $45 million.

Parsons will be in the Dallas frontcourt with Dirk Nowitzki after playing his first three NBA seasons with the Rockets.