PORTLAND — U.S. Rep. Barney Frank is calling upon Mainers to legalize same-sex marriage so he and his longtime partner can get married next year in Maine.

The Massachusetts Democrat was the keynote speaker Saturday night at the Maine People’s Alliance’s 30th anniversary awards dinner in Portland.

Frank told the crowd that he and his fiance, Jim Ready of Ogunquit, want to get married in Massachusetts this year and do the same next year in Maine. Mainers will vote on a ballot referendum in November on whether to legalize gay marriage.

The Bangor Daily News quoted Frank calling for cutting military spending and maintaining the current retirement age. He also lamented what he called the disappearance of moderate Republicans from Congress.