This is an old revision of the document!


NPAPI infrastructure provides macros for ports that install NPAPI plugins.

[http://en.wikipedia.org/wiki/NPAPI NPAPI] is a plugin architecture, supported by many browsers. To name a few: Mozilla/Seamonkey, Firefox, Opera and Konqueror.

NPAPI plugins are currently installed in a variety of directories, usually under X11BASE. However, I hereby propose to install all plugins in LOCALBASE/lib/npapi/PKGBASE. We can then employ [“Linkfarming”] to make plugins available to browsers and let users actually tune what plugins to enable in which browsers. Look into www/linux-mplayer-plugin/Makefile.npapi for more info. I hope to convert other ports later.

To experience all the benefits of the infrastructure, support must be introduced into both plugin ports (miniports) and application ports (apps):

  • Miniports should be developed using the npapi macro package (Makefile.npapi)
  • Apps should exec the following actions, both when installed from ports and as packages:
    • on install: cp -R cp -R %%LOCALBASE%%/lib/npapi/symlinks/%%APP_NAME%%/ %D/lib/%%APP_NAME%%/plugins/
    • on deinstall: find %D/lib/%%APP_NAME%%/plugins/ -depth 1 -type l -delete
  • andrewpantyukhin/npapi.1154123309.txt.gz
  • Last modified: 2006/07/28 21:48
  • by AndrewPantyukhin