In a flashback to years past, Barcelona played to a 4-4 draw at Porto in a testimonial for Deco, who played one half for each club.
Barca's squad was made up mostly of players from their 2006 Champions League triumph, while Porto had players from their 2004 European championship.
Lionel Messi played the second half and scored for Barcelona, who also had Samuel Eto'o, Juliano Belletti, Gio van Bronckhorst, Ludovic Giuly, Sylvinho, Mark van Bommel, Oleguer Presas and Eidur Gudjohnsen. Ricardo Carvalho and Paulo Ferreira were among the notable names for Porto.
Deco scored one goal for each side, while Eto'o scored twice for Barcelona.
"Deco deserved this, both as a footballer and as a person," said Messi. "He's a player I learned a lot from, as did so many other teammates. There was no way I was going to miss this event."
In other friendlies on Friday, Southampton won their fourth straight warm-up match, beating Bournemouth 1-0. The Saints controlled most of the action after Lloyd Isgrove's diving header on 20 minutes.
Crystal Palace got their first win in their American tour, beating the Philadelphia Union 1-0 on an Ethan White own goal in the 20th minute.
The Union had chances to equalise in the second half but could not find the net against Palace, who were coming off a 2-2 draw against another MLS team, the Columbus Crew, on Wednesday.
Elsewhere, West Bromwich Albion continued their positive preseason with a 3-1 win over USL-Pro side Sacramento Republic at Bonney Field.
The Baggies struck early and often; Saido Berahino's thunderous 13th minute volley began the scoring, Youssuf Mulumbu doubled their advantage before half-time and Victor Anichebe's long-range strike make it three for Alan Irvine's side just after the hour mark.
A perfect game would be denied when J.J. Koval turned in a corner from close range with just minutes left.
West Ham, meanwhile, enjoyed another defeat on their torrid Australian tour, losing 3-1 to Sydney FC at the Allianz Stadium late on Friday night.
Corey Gameiro's counter-attack strike after just three minutes set the tone for Sam Allardyce's side, who conceded again in the 26th minute as Alex Brosque coolly converted Bernie Ibini-Isei's pass.
Brief redemption arrived six minutes into the second half as a spell of Hammers pressure caused Nikola Petkovic to deflect a Matt Jarvis cross into his own net, though Sydney's third, an obvious handball overlooked by the ref in the build-up to Gameiro's second goal of the game, ended the contest on 64 minutes.
However, Newcastle United made it two wins from two on their Australian tour as Yoan Gouffran's 42nd-minute header gave Alan Pardew's side a hard-fought 1-0 win over Wellington Phoenix.
The scoreline was perhaps a little harsh on the A-League side, who were let down by a combination of poor finishing and a string of fine saves from Magpies goalkeeper Rob Elliot.
However, it was not all good news for Newcastle, who saw both Siem De Jong and Fabricio Coloccini leave the field as a precautionary measure.