summaryrefslogtreecommitdiff
path: root/homebrew/erlangat17/.make.sh-auto
blob: a929d35d8bc850e1e9e6d700646230e83a7891da (plain)
1
2
3
4
5
6
7
8
9
10
11
pkg:setup
%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-hipe --enable-shared-zlib --enable-smp-support --enable-wx --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")