Index: Portfile
===================================================================
--- Portfile	(revision 53182)
+++ Portfile	(working copy)
@@ -31,6 +31,9 @@
     port:spidermonkey \
     port:erlang
 
+configure.args   --with-js-include=${prefix}/include/js \
+                 --with-erlang=${prefix}/lib/erlang/usr/include
+
 set dbgroup couchdb
 set dbuser couchdb
 set logdir ${prefix}/var/log/couchdb

