Automatically add .pkgdef to relevant output group.