An empirical calibration of the mixing-length parameter alpha