[83556] trunk/dports/lang/erlang/Portfile
bfulgham at macports.org
bfulgham at macports.org
Mon Sep 5 16:13:30 PDT 2011
Revision: 83556
http://trac.macports.org/changeset/83556
Author: bfulgham at macports.org
Date: 2011-09-05 16:13:28 -0700 (Mon, 05 Sep 2011)
Log Message:
-----------
Update to allow wxWidgets version of Erlang to be built and run under
64-bit OS.
Note you must build libxml2 and libxslt as universal libraries for this
to work properly. Unfortunately, there is no way to specify that Erlang
depends on a specific variant of another port.
Modified Paths:
--------------
trunk/dports/lang/erlang/Portfile
Modified: trunk/dports/lang/erlang/Portfile
===================================================================
--- trunk/dports/lang/erlang/Portfile 2011-09-05 21:50:44 UTC (rev 83555)
+++ trunk/dports/lang/erlang/Portfile 2011-09-05 23:13:28 UTC (rev 83556)
@@ -4,7 +4,7 @@
PortSystem 1.0
name erlang
version R14B03
-revision 3
+revision 4
categories lang erlang
maintainers bfulgham
platforms darwin
@@ -90,10 +90,6 @@
foreach x {dialyzer ear ecc elink epmd erl erlc escript run_erl start to_erl typer} { file delete -force ${destroot}${prefix}/bin/${x} }
foreach x {dialyzer erl erlc escript run_erl start to_erl typer} { system "ln -s ../lib/erlang/bin/${x} ${destroot}${prefix}/bin/${x}" }
- xinstall -d -m 0755 ${destroot}${prefix}/lib/erlang/lib/${wx_dir}/priv
- eval xinstall -m 0755 [glob ${worksrcpath}/lib/wx/priv/*] \
- ${destroot}${prefix}/lib/erlang/lib/${wx_dir}/priv
-
file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd
system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd"
system "ln -s ../lib/erlang/lib/${erl_interface_dir}/bin/erl_call ${destroot}${prefix}/bin/erl_call"
@@ -137,7 +133,16 @@
platform darwin {
if {${configure.build_arch} == "x86_64" || ${configure.build_arch} == "ppc64"} {
- configure.args-append --enable-darwin-64bit
+ if {[variant_isset wxwidgets]} {
+ configure.args-append --disable-darwin-64-bit
+ if {${configure.build_arch} == "x86_64"i} {
+ configure.build_arch = i386
+ } else if {${configure.build_arch} == "ppc"} {
+ configure.build_arch = ppc
+ }
+ } else {
+ configure.args-append --enable-darwin-64bit
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110905/ce0451e9/attachment-0001.html>
More information about the macports-changes
mailing list