Here’s a tutorial on how to automatically generate Eagle parts from manufacturers’ BSDL files. These files are available from some manufacturers and include tables listing pin names and numbers. This information is used by the make-symbol-device-package-bsdl.ulp to generate your device.
On our wiki we have a tutorial on how to built devices for your Eagle Library manually. For other Eagle tutorials check out our list.