homebrew-core/Formula/libgphoto2.rb
Ralph Schindler edd6fc078b gphoto2 2.5.2
Closes Homebrew/homebrew#19954.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-22 20:48:17 -07:00

18 lines
584 B
Ruby

require 'formula'
class Libgphoto2 < Formula
homepage 'http://www.gphoto.org/proj/libgphoto2/'
url 'http://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.2/libgphoto2-2.5.2.tar.bz2'
sha1 '6b70ff6feec62a955bef1fc9a2b16dd07f0e277a'
depends_on 'pkg-config' => :build
depends_on :libtool # Configure script uses this
depends_on 'libusb-compat'
depends_on 'libexif' => :optional
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "CFLAGS=-D_DARWIN_C_SOURCE"
system "make install"
end
end