2010-11-08 22:50:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mcpp < Formula
|
2010-11-08 22:50:27 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mcpp/mcpp/V.2.7.2/mcpp-2.7.2.tar.gz'
|
|
|
|
homepage 'http://mcpp.sourceforge.net/'
|
|
|
|
md5 '512de48c87ab023a69250edc7a0c7b05'
|
|
|
|
|
2012-04-28 22:27:49 +00:00
|
|
|
# stpcpy is a macro on OS X; trying to define it as an extern is invalid.
|
|
|
|
def patches; DATA; end
|
|
|
|
|
2010-11-08 22:50:27 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2010-11-25 14:53:26 +00:00
|
|
|
"--prefix=#{prefix}", "--enable-mcpplib"
|
2010-11-08 22:50:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-04-28 22:27:49 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff -ur mcpp-2.7.2-orig/src/internal.H mcpp-2.7.2/src/internal.H
|
|
|
|
--- mcpp-2.7.2-orig/src/internal.H 2008-08-27 08:01:16.000000000 -0500
|
|
|
|
+++ mcpp-2.7.2/src/internal.H 2010-11-08 15:53:38.000000000 -0600
|
|
|
|
@@ -557,6 +557,6 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if HOST_HAVE_STPCPY
|
|
|
|
+#if HOST_HAVE_STPCPY && !defined(stpcpy)
|
|
|
|
extern char * stpcpy( char * dest, const char * src);
|
|
|
|
#endif
|