FreeBSD Flash Plugin for Mozilla

Okay, I have managed to get Flash working with Mozilla. I feel like an idiot doing these things, because I have trouble finding documentation about The Right Way to do this. In many cases, I don't even see people sending questions to the mailing lists about it. That tells me that there is some obvious, common-sense way to get it working, but I have not discovered it. In my opinion, it would be nice of this stuff worked out of the box.

The combination I have working is this:

From the ports collection, install devel/linuxthreads and www/linuxpluginwrapper. Then set up libmap.conf so the plugin will use special libraries:

# /etc/libmap.conf
# For Mozilla Linux Flash Plugin
[/usr/local/lib/linux-flashplugin6/]                   pluginwrapper/                                  pluginwrapper/

Essentially, I am running Mozilla compiled natively for FreeBSD. The Flash plugin is being run under the Linux emulator, because the folks at Macromedia don't believe we matter. Note that this attempts to install both the Flash plugin and the Adobe Acrobat reader plugin. I couldn't quite get the Acrobat plugin to work, but I've always been happy with xpdf anyway, so I took it out.

Note that the browser appears to look in the /usr/X11R6/lib/browser_plugins directory to find the installed plugins.