aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/p5-Alien-wxWidgets
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-08 12:22:24 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-08 12:22:24 +0000
commitbb8712438db5fbe304104f7db72e14eabdcddf94 (patch)
treef01ebd6634a5f1aceb0369f04375d9e1f3b2fa52 /x11-toolkits/p5-Alien-wxWidgets
parenta9a1405c7bb0abad8532d0511e9face1b2850b3c (diff)
downloadports-bb8712438db5fbe304104f7db72e14eabdcddf94.tar.gz
ports-bb8712438db5fbe304104f7db72e14eabdcddf94.zip
Notes
Diffstat (limited to 'x11-toolkits/p5-Alien-wxWidgets')
-rw-r--r--x11-toolkits/p5-Alien-wxWidgets/files/patch-lib__Alien__wxWidgets__Utility.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-toolkits/p5-Alien-wxWidgets/files/patch-lib__Alien__wxWidgets__Utility.pm b/x11-toolkits/p5-Alien-wxWidgets/files/patch-lib__Alien__wxWidgets__Utility.pm
new file mode 100644
index 000000000000..0934a86652d4
--- /dev/null
+++ b/x11-toolkits/p5-Alien-wxWidgets/files/patch-lib__Alien__wxWidgets__Utility.pm
@@ -0,0 +1,18 @@
+--- ./lib/Alien/wxWidgets/Utility.pm.orig 2014-03-08 15:04:14.000000000 +0100
++++ ./lib/Alien/wxWidgets/Utility.pm 2014-04-08 12:40:05.980551105 +0200
+@@ -81,6 +81,7 @@
+ my( $cc ) = @_;
+
+ return scalar( awx_capture( "$cc --version" ) =~ m/g(cc|\+\+)/i ) # 3.x
++ || scalar( awx_capture( "$cc --version" ) =~ m/clang/i) # clang
+ || scalar( awx_capture( "$cc" ) =~ m/gcc/i ); # 2.95
+ }
+
+@@ -115,6 +116,7 @@
+
+ if( $is_gcc ) {
+ my $ver = awx_capture( "$cc --version" );
++ return 3.4 if ($ver =~ m/clang/i);
+ $ver =~ m/(\d+\.\d+)(?:\.\d+)?/ or return 0;
+ return $1;
+ } elsif( $is_msvc ) {