aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libgphoto2.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/libgphoto2.rb b/Library/Formula/libgphoto2.rb
index c10976f26..5356af4b8 100644
--- a/Library/Formula/libgphoto2.rb
+++ b/Library/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"