Yes, SCOTUS says having a general rule about local parks is not a violation of the 8th Amendment - cruel and unusual punishment. Now if a park district had a rule that targeted homeless bums specifically, then the 8th Amendment might apply.
Park districts should just issue a dictate that there is no camping in the park or park closes 10pm to 7am.