Was this just a friendly hug or something more?

I was saying goodbye (for a long time, possibly forever God forbid) to a guy I like (he likes me too, I think). I gave him a hug - he is taller than me and kind of leaned his head down on my right shoulder and wrapped his arms around me mid-back (gently) and held on for a while - I held him closer and he shifted closer as well. Then when I let go he put his hand on my shoulder and looked at me with this really strong emotional look (sadness, smiling, etc.) on his face for a minute before I had to look down.

When I hugged him the second time he trailed his hand across my left side/waist as he let go and looked down at his hand and then just looked at me.

I'm guessing those were not just friendly hugs? Keep in mind that I don't often hug guys and he knows this. It's not like he grabbed my waist or anything but...yeah. Just curious.

Clarification: when I say he leaned his head down, I mean that he put his head down on my shoulder (he's about a head taller than me) so that his face and head were half-buried against my neck/shoulder...I guess like he wanted to be comforted or that he was really upset to leave me. I wasn't expecting it. He totally initiated that part.
Was this just a friendly hug or something more?
Post Opinion