Eintracht Frankfurt have confirmed that midfielder Johannes Flum will join from Freiburg on a three-year contract at the end of the season.