liberation from pleasures
Imo, "liberation from pleasures" isn't a goal of Dharma practice...rather, we aspire to liberation from the reactive workings of the mind in relationship to pleasures.
The practices of restraint and good conduct, as Retro recommends, are enormously valuable in order to manage and de-energize reactive impulse and behavior that arises from attachment, which we do in order to aid in calming and quieting the mind/senses so that we create the conditions of mind that enable us to recognize the true nature of phenomenal appearances and experiences, including pleasure.
It's a matter of emphasis...we don't want to get stuck in behavior management. For example: in AA (Alcoholics Anonymous) behavior management is a critically important step, but once the behavior is restrained then the rest of the work has to take place to avoid becoming what is known as a "dry drunk". There's a lot of of "dry pleasurist" practitioners in Buddhism. Restraining behavior by itself isn't enough and it isn't the goal...it is a practice that forwards the ultimate goal of Dharma practice, and the ultimate liberation.
Pleasure happens, we can't control that. We're biologically programmed to experience pleasure for good reasons. It's how we perceive and relate to pleasure that's the goal of the Dharma. Once we see pleasure for what it is (aided by restraint, good conduct, and concentrative observation) then we use it skillfully, beneficially. Ultimately, pleasure should be regarded as medicine - not to be avoided and not used as a crutch. The same goes for restraint....it should be regarded and used as if medicine, not as a crutch.
[readers: since this is a Theravada room, I draw your attention to the disclaimer in my signature]