Magna International has bought Porsche's roof systems manufacturer CTS Fahrzeug-Dachsysteme for EUR170m.