Subject: | Finding SpiderMonkey with MacPorts |
In MacPorts (the new version of DarwinPorts), it looks like they've moved the location of the
SpiderMonkey include files. The attached patch detects this.
Subject: | JavaScript-macports.patch |
--- Makefile.PL.orig 2007-04-28 10:06:12.000000000 +0100
+++ Makefile.PL 2007-04-28 10:06:38.000000000 +0100
@@ -75,6 +75,10 @@
push @incs, "/opt/local/include/spidermonkey";
push @libs, "/opt/local/lib";
}
+elsif (-d "/opt/local/include/js") {
+ push @incs, "/opt/local/include/js";
+ push @libs, "/opt/local/lib";
+}
# Override with $ENV{JS_LIB} and $ENV{JS_INC}
if (exists $ENV{JS_LIB}) {