From fa30a230cc35ad39c2f01cc485b1a831fa714aa0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 11 Oct 2011 20:55:30 -0500 Subject: libgcrypt: apply clang fixes This is kind of hackish, but we can clean it up when we get the compiler selection code up to snuff again. Signed-off-by: Jack Nagel --- Library/Formula/libgcrypt.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/libgcrypt.rb b/Library/Formula/libgcrypt.rb index 4320bb679..954610387 100644 --- a/Library/Formula/libgcrypt.rb +++ b/Library/Formula/libgcrypt.rb @@ -7,9 +7,17 @@ class Libgcrypt < Formula depends_on 'libgpg-error' + def patches + if ENV.compiler == :clang + { :p0 => "https://trac.macports.org/export/85232/trunk/dports/devel/libgcrypt/files/clang-asm.patch" } + end + end + def install ENV.universal_binary # build fat so wine can use it + ENV.append 'CFLAGS', "-fheinous-gnu-extensions -std=gnu89" if ENV.compiler == :clang + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-asm", -- cgit v1.2.3