2010-05-21 18:53:53 +00:00
|
|
|
|
require 'formula'
|
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
|
class Tnef < Formula
|
2010-05-21 18:53:53 +00:00
|
|
|
|
homepage 'http://sourceforge.net/projects/tnef/'
|
2013-04-24 09:49:47 +00:00
|
|
|
|
url 'http://downloads.sourceforge.net/project/tnef/tnef/tnef-1.4.9.tar.gz'
|
|
|
|
|
sha1 'd42ccbe3d41e797fb4133f2e01120680101e8782'
|
|
|
|
|
|
|
|
|
|
# LLVM gets confused without a function prototype
|
|
|
|
|
def patches; DATA; end
|
2010-05-21 18:53:53 +00:00
|
|
|
|
|
|
|
|
|
def install
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
|
system "make install"
|
|
|
|
|
end
|
|
|
|
|
end
|
2013-04-24 09:49:47 +00:00
|
|
|
|
|
|
|
|
|
__END__
|
|
|
|
|
diff --git a/src/tnef.c b/src/tnef.c
|
|
|
|
|
index 1cb46d1..86aa214 100644
|
|
|
|
|
--- a/src/tnef.c
|
|
|
|
|
+++ b/src/tnef.c
|
|
|
|
|
@@ -57,6 +57,9 @@ typedef enum
|
|
|
|
|
RTF = 'r'
|
|
|
|
|
} MessageBodyTypes;
|
|
|
|
|
|
|
|
|
|
+// Quick fix for compiling on MacOSX 10.8
|
|
|
|
|
+void free_bodies(VarLenData **bodies, int len);
|
|
|
|
|
+
|
|
|
|
|
/* Reads and decodes a object from the stream */
|
|
|
|
|
|
|
|
|
|
static Attr*
|