blob: a8a64ca559736786db27bcdffc9eda11d767b901 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
pkg:setup
if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0"
ENV["erl_cv_clock_gettime_monotonic_default_resolution"] = "no"
ENV["erl_cv_clock_gettime_monotonic_try_find_pthread_compatible"] = "no"
ENV["erl_cv_clock_gettime_wall_default_resolution"] = "no"
end
%w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete("ERL_#{k}") }
./otp_build autoconf if File.exist? "otp_build"
args = %W[--disable-debug --disable-silent-rules --prefix=#{prefix} --enable-kernel-poll --enable-threads --enable-sctp --enable-dynamic-ssl-lib --with-ssl=#{Formula["openssl"].opt_prefix} --enable-shared-zlib --enable-smp-support --enable-hipe --enable-wx --without-javac --enable-darwin-64bit ]
args << "--with-dynamic-trace=dtrace" if MacOS::CLT.installed?
pkg:configure *args
make
ENV.deparallelize
make DESTDIR=${PKG_DEST} install
(lib/"erlang").install resource("man").files("man")
doc.install resource("html")
|