freebsd-ports/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL
Koop Mast b56e9c435e Move spidermonkey17's headers out of LOCALBASE and in there own subdir. [1]
This fixes build issues with other spidermonkey using ports when
SM 1.7 is installed, due to SM 1.7's headers being found first. [2]

Update SM 1.7 users to take this change into account.

PR:		219761 [1], 214724 [2], 202246 [2]
Approved by:	maintainer timeout (nearly 2 months)
2017-07-30 14:34:27 +00:00

17 lines
732 B
Perl

--- Makefile.PL.orig 2011-10-23 12:27:21.000000000 +0200
+++ Makefile.PL 2017-06-03 21:50:44.801687000 +0200
@@ -68,13 +68,8 @@
next if ! -f $libfile;
my $include_path = $possible_install_paths{$install_path};
foreach my $c_header(@c_header_files) {
- if (-f "$include_path/$c_header") {
+ if (-f "$include_path/js-1.7/$c_header") {
my $include_dir = "$include_path/$c_header";
- $include_dir =~ s/$c_header$//;
- push @JS_INCL_DIRS, $include_dir;
- }
- foreach my $headerfile(glob "$include_path/*/$c_header") {
- my $include_dir = $headerfile;
$include_dir =~ s/$c_header$//;
push @JS_INCL_DIRS, $include_dir;
}