Subject: | [PATCH] build fixes for macosx with darwinports |
--- JavaScript-0.55/Makefile.PL 2005-06-28 22:49:03.000000000 +0100
+++ JavaScript-0.55.clkao/Makefile.PL 2005-10-04 12:00:26.000000000 +0100
@@ -22,11 +22,17 @@
$define .= " -DINCLUDES_IN_SMJS"
}
+my $lib = "-ljs";
+
+if (-d "/opt/local/include/spidermonkey") { # darwinports
+ $inc = '-I/opt/local/include/spidermonkey';
+ $lib = "-L/opt/local/lib $lib";
+}
+
if($ENV{JS_THREADSAFE}) {
$define .= " -DJS_THREADSAFE";
}
-my $lib = "-ljs";
#test for debian type libsmjs
#this could probably be done better, but I'm not sure how to
#get this platform independant
@@ -34,7 +40,6 @@
$lib = "-lsmjs";
}
-
WriteMakefile(
'NAME' => 'JavaScript',
'VERSION_FROM' => 'JavaScript.pm', # finds $VERSION