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")