Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I'm unaware of Portal 1 supporting controllers. However, all you should need to do is to put the PS3 controller into 'discoverable' mode using the button on it to connect, then use the BlueTooth menu and select "Setup Bluetooth Device", and follow the instructions.

TEG
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.