pkg:setup libffi = Formula["libffi"] ENV.prepend "CPPFLAGS", "-I#{libffi.opt_lib}/libffi-#{libffi.version}/include" configure_args = %W[--has-libatomic_ops --has-libffi --has-libtommath --has-libuv --optimize --prefix=#{prefix} ] perl Configure.pl *configure_args make realclean make make DESTDIR=${PKG_DEST} install