The generation of continuous-variable multipartite entangled states is important for several protocols of quantum information processing and communication, such as one-way quantum computation or controlled dense coding. In this article we theoretically show that multimode optical parametric oscillators can produce a great variety of such states by an appropriate control of the parametric interaction, what we accomplish by tailoring either the spatio-temporal shape of the pump, or the geometry of the nonlinear medium. Specific examples involving currently available optical parametric oscillators are given, hence showing that our ideas are within reach of present technology.PACS numbers: 42.50.Dv-Quantum state engineering and measurement, 42.65.Yj-Optical parametric oscillators and amplifiers, 42.65.Re-Ultrafast processes, optical pulse generation and pulse compression.