Particle acceleration in a relativistic wave in the adiabatic regime