Revision
148926
Author
jeremyhu@macports.org
Date
2016-05-22 18:35:58 -0700 (Sun, 22 May 2016)

Log Message

openexr: Fix some build failures

Modified Paths

Added Paths

Diff

Modified: trunk/dports/graphics/openexr/Portfile (148925 => 148926)


--- trunk/dports/graphics/openexr/Portfile	2016-05-23 01:11:33 UTC (rev 148925)
+++ trunk/dports/graphics/openexr/Portfile	2016-05-23 01:35:58 UTC (rev 148926)
@@ -107,6 +107,10 @@
     patchfiles-append   patch-fltk.diff
 }
 
+# The bundled libtool doesn't support -stdlib=...
+patchfiles-append \
+    patch-ltmain.sh.diff 
+
 test.run        yes
 test.target     check
 

Added: trunk/dports/graphics/openexr/files/patch-ltmain.sh.diff (0 => 148926)


--- trunk/dports/graphics/openexr/files/patch-ltmain.sh.diff	                        (rev 0)
+++ trunk/dports/graphics/openexr/files/patch-ltmain.sh.diff	2016-05-23 01:35:58 UTC (rev 148926)
@@ -0,0 +1,12 @@
+--- ltmain.sh.orig	2016-05-22 18:07:05.000000000 -0700
++++ ltmain.sh	2016-05-22 18:14:50.000000000 -0700
+@@ -4765,7 +4765,8 @@ func_mode_link ()
+       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+       # @file GCC response files
+       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
++      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
++      -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
+         func_quote_for_eval "$arg"
+ 	arg="$func_quote_for_eval_result"
+         func_append compile_command " $arg"