Ennis averaged 5.8 points and 3.1 rebounds in 15.8 minutes per game with Philadelphia.
"We are excited to welcome James to the Magic family," president of basketball operations Jeff Weltman said in a statement. "James adds shooting, athleticism and toughness. He fits well with our young core and established veterans."
In the corresponding roster move, the Magic waived forward Amile Jefferson.