6b46e6a57d
Closes Homebrew/homebrew#32455. Signed-off-by: Tim D. Smith <git@tim-smith.us>
35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Libgphoto2 < Formula
|
|
homepage 'http://www.gphoto.org/proj/libgphoto2/'
|
|
url "https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.5/libgphoto2-2.5.5.tar.bz2"
|
|
sha1 "9660c1ac44584badbf83511feeb808fb4519adc2"
|
|
|
|
bottle do
|
|
sha1 "45c15442854953c835979399360e112146f58a8a" => :mavericks
|
|
sha1 "00b4ebc61eb6737db77dc129031cd17ea73ef6f7" => :mountain_lion
|
|
sha1 "9b1526c2b00a0f33fe07354bd47142b4caa614ac" => :lion
|
|
end
|
|
|
|
option :universal
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libtool' => :run
|
|
depends_on 'libusb-compat'
|
|
depends_on 'gd'
|
|
depends_on 'libexif' => :optional
|
|
|
|
# Fixes build issues when using clang (bug #987).
|
|
# * http://sourceforge.net/p/gphoto/bugs/987/
|
|
patch :p0 do
|
|
url "http://sourceforge.net/p/gphoto/bugs/_discuss/thread/e52254c4/a5b3/attachment/xx.pat"
|
|
sha1 "da1cd2e0fcc49a0fe374739ee15b448e9c04428c"
|
|
end
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}", "CFLAGS=-D_DARWIN_C_SOURCE"
|
|
system "make install"
|
|
end
|
|
end
|