Warner Bros is getting its Peter Pan movie in ship-shape. It has just announced it has set Hugh Jackman to play Blackbeard in Pan, the Joe Wright-directed update of JM Barrie’s Peter Pan tale. He joins Garrett Hedlund, who we scooped this week landed the role of Captain Hook after being in the mix with Boardwalk Empire‘s Jack Huston and Perks Of Being A Wallflower‘s Ezra Miller. The script is by Jason Fuchs, and Greg Berlanti is producing under his Berlanti Productions banner with Paul Webster. Sarah Schechter is overseeing for the studio.

In Fuchs’ script, an orphan is taken to the magical world of Neverland, where he becomes the savior of the natives and leads a rebellion against the evil pirates led by Blackbeard. Javier Bardem at one time was offered this part, but Jackman was later rumored to be in the mix, and now it is final. For the record, that makes a pretty formidable acting duo playing the same historical figure: John Malkovich is set as Blackbeard in NBC’s upcoming pirate drama series Crossbones from Neil Cross.

The studio said today that the pic remains untitled, though it does have a July 17, 2015 release date after it was shifted last week to take the slot previously held by the studio’s Superman Vs. Batman movie. The move keeps Pan from being sandwiched between Fox’s Fantastic Four and Paramount’s Terminator reboot and took the pic off the the same date as Ted 2 from Universal.

Jackman, repped by WME, just wrapped shooting on Fox’s X-Men: Days Of Future Past, and his most recent pic in theaters was the Warner Bros’ thriller Prisoners.

“Hugh Jackman always delivers indelible performances that resonate with audiences,” said Greg Silverman, Warners’ President, Creative Development and Worldwide Production, in announcing the deal. “We know he will create a Blackbeard who will be a powerful presence in this original Peter Pan adventure.” Added Sue Kroll, President, Worldwide Marketing and International Distribution: “There is a reason that Hugh is known and loved the world over. He is uncompromising in his dedication to every role, and we are all thrilled to be working with him again.”