The important part for answering this question is: In the film, which draws its plot loosely from the novel On Stranger Tides by Tim Powers, Captain Jack Sparrow (Johnny Depp) is joined by Angelica (Penelope Cruz) in his search for the Fountain of Youth, confronting the infamous pirate Blackbeard (Ian McShane).
This justifies what answer for what question? Q & A:
Passage: Pirates of the Caribbean: On Stranger Tides is a 2011 American fantasy swashbuckler film, the fourth installment in the Pirates of the Caribbean film series and the sequel to At World's End (2007). It is the first film in the series not to be directed by Gore Verbinski, being replaced by Rob Marshall. Jerry Bruckheimer again served as producer. The film is technically a stand-alone sequel to the previous installments. In the film, which draws its plot loosely from the novel On Stranger Tides by Tim Powers, Captain Jack Sparrow (Johnny Depp) is joined by Angelica (Penelope Cruz) in his search for the Fountain of Youth, confronting the infamous pirate Blackbeard (Ian McShane). The film was produced by Walt Disney Pictures and released in the United States on May 20, 2011. It was the first film in the series to be released in the Disney Digital 3-D and IMAX 3D formats.

Question: Based on this passage, who starred in pirates of the caribbean 4?
Johnny Depp