From f497144ade9b2958890e3e8fa0639de87ed8b166 Mon Sep 17 00:00:00 2001 From: David Holm Date: Sat, 22 Jun 2013 14:33:49 +0200 Subject: [PATCH] libgphoto2: add universal option Required by Wine for Camera support. Closes Homebrew/homebrew#20686. Signed-off-by: Jack Nagel --- Formula/libgphoto2.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/libgphoto2.rb b/Formula/libgphoto2.rb index c10976f26d..5356af4b87 100644 --- a/Formula/libgphoto2.rb +++ b/Formula/libgphoto2.rb @@ -5,12 +5,15 @@ class Libgphoto2 < Formula url 'http://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.2/libgphoto2-2.5.2.tar.bz2' sha1 '6b70ff6feec62a955bef1fc9a2b16dd07f0e277a' + option :universal + depends_on 'pkg-config' => :build depends_on :libtool # Configure script uses this depends_on 'libusb-compat' depends_on 'libexif' => :optional def install + ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "CFLAGS=-D_DARWIN_C_SOURCE" system "make install"