diff options
| author | Sergey Polovko | 2013-12-31 00:31:44 +0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-09 18:37:43 +0100 |
| commit | bbe6eb9cd58e73507147187ed555a2c955fcd9e6 (patch) | |
| tree | 08770b54c2ed14abc89b24cf3773a750840a397f /Library | |
| parent | 14a4a12861c8c366f6e224bf8d593578165a2b18 (diff) | |
| download | homebrew-bbe6eb9cd58e73507147187ed555a2c955fcd9e6.tar.bz2 | |
mcrypt: build mcrypt tool.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mcrypt.rb | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/Library/Formula/mcrypt.rb b/Library/Formula/mcrypt.rb index 2e97468f8..f71990912 100644 --- a/Library/Formula/mcrypt.rb +++ b/Library/Formula/mcrypt.rb @@ -1,17 +1,56 @@ -require 'formula' +require "formula" class Mcrypt < Formula - homepage 'http://mcrypt.sourceforge.net' - url 'https://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz' - sha1 '9a426532e9087dd7737aabccff8b91abf9151a7a' + homepage "http://mcrypt.sourceforge.net" + url "https://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz" + sha1 "8ae0e866714fbbb96a0a6fa9f099089dc93f1d86" + + depends_on "mhash" + + resource "libmcrypt" do + url "https://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz" + sha1 "9a426532e9087dd7737aabccff8b91abf9151a7a" + end option :universal + # Patch to correct inclusion of malloc function on OSX. + # Upstream: https://sourceforge.net/p/mcrypt/patches/14/ + def patches + DATA + end + def install ENV.universal_binary if build.universal? - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", + + resource("libmcrypt").stage do + system "./configure", "--prefix=#{prefix}", + "--mandir=#{man}" + system "make install" + end + + system "./configure", "--prefix=#{prefix}", + "--with-libmcrypt-prefix=#{prefix}", "--mandir=#{man}" system "make install" end end + +__END__ +diff --git a/src/rfc2440.c b/src/rfc2440.c +index 5a1f296..fe15198 100644 +--- a/src/rfc2440.c ++++ b/src/rfc2440.c +@@ -23,7 +23,12 @@ + #include <zlib.h> + #endif + #include <stdio.h> ++ ++#ifdef __APPLE__ ++#include <malloc/malloc.h> ++#else + #include <malloc.h> ++#endif + + #include "xmalloc.h" + #include "keys.h" |
