The homographic solutions in the N-body problem with a general attraction☆