Revision
87278
Author
bfulgham@macports.org
Date
2011-11-15 21:35:14 -0800 (Tue, 15 Nov 2011)

Log Message

Revise build to account for pre-Lion operating system revisions.

Modified Paths

Diff

Modified: trunk/dports/lang/erlang/Portfile (87277 => 87278)


--- trunk/dports/lang/erlang/Portfile	2011-11-16 03:20:23 UTC (rev 87277)
+++ trunk/dports/lang/erlang/Portfile	2011-11-16 05:35:14 UTC (rev 87278)
@@ -73,6 +73,12 @@
 # ${prefix}/lib/erlang/erts-5.8.4/bin/beam.smp links with ncurses
 depends_lib     port:ncurses
 
+# Erlang seems to have an on-again/off-again relationship with Clang.
+# As of XCode 4.2, it's off again.
+if {${configure.compiler} == "clang"} { 
+    configure.compiler llvm-gcc-4.2 
+} 
+
 post-destroot   {
         system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}"
         system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}"
@@ -112,12 +118,6 @@
     # This is a workaround.
     #patchfiles-append   patch-erts_emulator_sys_unix_ddll.c.diff
     configure.ldflags-append -framework CoreFoundation
-
-    # Erlang seems to have an on-again/off-again relationship with Clang.
-    # As of XCode 4.2, it's off again.
-    if {${configure.compiler} == "clang"} { 
-        configure.compiler llvm-gcc-4.2 
-    } 
 }
 
 platform macosx {