2011-10-18 08:53:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Winexe < Formula
|
|
|
|
homepage 'http://sourceforge.net/projects/winexe/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/winexe/winexe-1.00.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'bdb598745953fcad3a9b6bba8f728c2b714a7aeb'
|
2011-10-18 08:53:04 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-03-11 16:21:59 +00:00
|
|
|
depends_on :autoconf
|
2011-10-18 08:53:04 +00:00
|
|
|
|
|
|
|
# This patch removes second definition of event context, which *should* break the build
|
|
|
|
# virtually everywhere, but for some reason it only breaks it on OS X.
|
|
|
|
# http://miskstuf.tumblr.com/post/6840077505/winexe-1-00-linux-macos-windows-7-finally-working
|
|
|
|
# Added by @vspy
|
2012-03-15 00:57:44 +00:00
|
|
|
def patches; DATA; end
|
2011-10-18 08:53:04 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
cd "source4" do
|
|
|
|
system "./autogen.sh"
|
|
|
|
system "./configure", "--enable-fhs"
|
|
|
|
system "make basics idl bin/winexe"
|
|
|
|
bin.install "bin/winexe"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff -Naur winexe-1.00-orig/source4/winexe/winexe.h winexe-1.00/source4/winexe/winexe.h
|
|
|
|
--- winexe-1.00-orig/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
|
|
|
|
+++ winexe-1.00/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
|
|
|
|
@@ -63,7 +63,7 @@
|
|
|
|
int async_write(struct async_context *c, const void *buf, int len);
|
|
|
|
int async_close(struct async_context *c);
|
|
|
|
|
|
|
|
-struct tevent_context *ev_ctx;
|
|
|
|
+extern struct tevent_context *ev_ctx;
|
|
|
|
|
|
|
|
/* winexesvc32_exe.c */
|
|
|
|
extern unsigned int winexesvc32_exe_len;
|