I mean, that we can define mathematically the temperature T as the partial derivative of the internal energy with respect to change of entropy at constant volume and particle number.
T\equiv (\frac{\partial U}{\partial S})_{V,N}
That the temperature happens to be proportional to the kinetic energy of particularly well-behaved (ideal) gases is a convenient coincidence, but the relationship between energy and temperature can be greatly different for other systems (i.e. the energy of bodies emitting thermal (blackbody) radiation).
Where U is the internal energy, P is pressure, V is volume, N is the number of particles, and \mu is the chemical potential, the first law of thermodynamics (conservation of energy) can be written as:
dU= -PdV +TdS +\mu dN
the temperature in this picture is defined as
T\equiv (\frac{\partial U}{\partial S})_{V,N}
This isn't the only way to express the temperature, because instead of talking about our system in terms of the internal energy U(S,V,N), we could express our system in terms of the Helmholtz free energy F(T,V,N), the enthalpy H(S,P,N), or the Gibbs free energy G(T,P,N), and each of these pictures can be remarkably convenient in certain situations.