SpiderMonkey
- download source from http://ftp.mozilla.org/pub/mozilla.org/js/
- extract and change to js/src/
- build with this (BUILD_OPT=1 forces a non-debug, optimized build)
make -f Makefile.ref BUILD_OPT=1
- copy header file to fix build for mediatomb
cp Darwin_OPT.OBJ/jsautocfg.h ../
- manually install the libraries
sudo cp js/src/Darwin_DBG.OBJ/libjs.* /usr/local/lib/