SAN FRANCISCO (AP) Home run king Barry Bonds will have his No. 25 jersey retired this August by the San Francisco Giants when his former Pittsburgh Pirates are in town.

The Giants announced Tuesday they would hold a ceremony to honor the former slugger and seven-time NL MVP on Aug. 11. He will become only the 12th player from the New York or San Francisco Giants to have his number retired.

Bonds, now 53 and an adviser in the club's front office, broke Hank Aaron's home run record with No. 756 on Aug. 7, 2007. He finished his 22-year big league career that season with 762 homers and under a cloud of steroids allegations. On the 10th anniversary of his record-breaking blast, Bonds said he wished he could have played one more season with San Francisco and believes he might have reached 800 homers.

"I'm both honored and humbled that the Giants are going to retire my number this season," Bonds said. "As I've always said, the Giants and Giants fans are a part of my family. Growing up, Candlestick Park was my home away from home, and it is where my dad and godfather Willie (Mays) played."

"For me to have played on the same field as them, wear the same uniform and now have my number retired, joining Willie and the other Giants legends is extremely special. Number 25 has meant a lot to me throughout my career and it is even more special that I got to share that with my dad," he said.

Bonds joins an elite list of Giants to receive the distinction: Orlando Cepeda (30), Juan Marichal (27), Mays (24), Willie McCovey (44) and Gaylord Perry (36) with San Francisco. Members of the New York Giants were Bill Terry (3), Mel Ott (4), Carl Hubbell (11) and Monte Irvin (20). Christy Mathewson and John McGraw were honored despite playing before numbers were on uniforms.

In July 2015, Bonds said he had a huge "weight lifted" when federal prosecutors dropped what was left of their criminal case against him after a nearly decade-long steroids prosecution.

He was on 56.4 percent of Hall of Fame ballots for the 2018 class. He drew 36.2 percent in his initial appearance of 2013.

"No other Giants player has worn No. 25 since Barry's final season. It's time to officially retire his number in honor of his remarkable 22-year career as one of the greatest players of all time and for his countless achievements and contributions as a Giant," CEO Larry Baer said. "Barry grew up with the Giants and followed in the footsteps of his godfather Willie Mays and another Giant legend who also wore No. 25 - his late father, Bobby. By officially retiring No. 25, we will not only pay tribute to Barry as the greatest player of his generation, but also honor the legacy of two of the greatest players to ever wear a Giants uniform."