The command lines can similar functionality, but there is no package manager on Mac OS X pre-installed, so any apt-get tricks wouldn't work. (And this has nothing to do with XCode. )
There are Fink and DarwinPorts if you want or need to install a package manager system on Mac OS X. But this isn't really recommended since any application created with Fink-/Darwinport-Lazarus links against absolute filenames of the used libraries and requires Fink or DarwinPort installed on the user's system.