pkg:setup ENV["LIBTOOL"] = "glibtool" args = %W[--prefix=#{prefix} --cc=#{ENV.cc} --host-cc=#{ENV.cc} --disable-bsd-user --disable-guest-agent --enable-curses --enable-libssh2 --enable-vde --extra-cflags=-DNCURSES_WIDECHAR=1 --enable-cocoa --disable-sdl --disable-gtk ] args << "--smbd=#{HOMEBREW_PREFIX}/sbin/samba-dot-org-smbd" pkg:configure *args make V=1 DESTDIR=${PKG_DEST} install