If you need to add the file to the same folder as in the original directory hierarchy, then you just need to add the full path to it:
zip -g xxx.zip folder/file
Otherwise, probably the easiest way to do that is to create the same layout you need in the zip file in a temporary directory.