Both Hungary, under Orban, and Poland are unhappy with the general EU immigration policy. In the EU context, Hungary is a have-not state and wants funds spent on its development. Orban has shut its borders to Syrian immigrants and has only agreed to continue letting them through after getting additional EU funds. In addition with the right wing pressures at home, Orban sounds like a mini-Hitler at times. He is currently being kept in check by Germany, but obviously feels that if Trump wins, that would benefit his position within the EU.
However, one thing Hungary, or any other Easter European country will never do is agree to the dismantling of NATO, which Trump's reckless comments seemed to imply. The Russian threat is still very present there.
So, look at Orban's comments as mainly for internal and EU political consumption, without too much meaning or value.
Trump doesn't want to dismantle NATO. He wants the members to pay their dues.