Computing the entropy of a single particle has a number of pitfalls, however there seems to be a classical definition that should work.
This answer provides a definition of temperature for $N$ classical particles by using a probability distribution $D$ on phase space, setting up the maximization problem using Lagrange multipliers, and finding $D$ which maximizes the entropy $S=-k\int D\log D$. It is the Boltzmann-Gibbs distribution $D=\frac{1}{Z}e^{-\beta u}$, where $u(x,p)=\sum_i p_i^2/2m$, $\beta = \frac{1}{kT}$, and $Z = \frac{1}{h} \int e^{-\beta u} $. Setting $N=1$ gives the temperature for a single particle.
Since entropy is the quantity being maximized, we can just plug in the Boltzmann distribution. Let's assume the particle is in a box of length $L/2$ in the $x$ direction:
$$S(D) = -k\int \frac{dx dp}{h} \frac{1}{Z}e^{-\beta u} \log(\frac{1}{Z}e^{-\beta u})$$ $$=\frac{-kL}{hZ}\int dp e^{-\beta u}(-\beta u - \log Z)$$ $$=\frac{\beta k L}{hZ}\int dp \frac{p^2}{2m}\exp\left(\frac{-\beta p^2}{2m}\right)+\frac{k L \log Z}{hZ}\int dp \exp{\left( \frac{-\beta p^2}{2m}\right)}$$ $$\frac{k}{2}\left(1 + \log\left(\frac{2\pi m L^2}{\beta h^2}\right) \right)$$
where $Z=\frac{L}{h}\sqrt{\frac{2\pi m}{\beta}}$.
EDIT 1: The phase space measure $dx dp$ should be $dx dp/h$ as suggested in the comments, including the $S$ integral.
EDIT 2: I forgot parentheses around $2m$ when integrating, giving the wrong value of the Gaussian integral $Z$.