You have many options:
NGINX_ADD_MODULES="/path/to/nginx-rtmp-module" emerge -va nginx
Replace /path/to/ with the actual module's source path. You can add with this method any number of custom modules.
/path/to/
To make this change permanent see: http://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package
Don't forget to include a rtmp section inside your nginx configuration file located at /etc/nginx/nginx.conf.
/etc/nginx/nginx.conf
See:
There was an error while loading. Please reload this page.