aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-07-14 17:27:11 -0700
committerMisty De Meo2012-07-18 23:21:47 -0500
commit6fda99801435861326a6e8fe7c596a86329a5493 (patch)
treee2f672af7f3fc3040dc5b442a4012948f39981f0 /Library
parent847aba4459c69b7feacca89fc2148c5bd3386c70 (diff)
downloadhomebrew-6fda99801435861326a6e8fe7c596a86329a5493.tar.bz2
libdc1394 2.2.0
Upgrade libdc1394 to version 2.2.0. Add a dep on x11 so that it links against XQuartz if present. Disable the examples and sdltest. They cause build errors trying to find OpenGl. Move the `def patches` block to before `def install`. Tested on Lion with clang and llvm from XCode-4.3.3. Closes #13406. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libdc1394.rb19
1 files changed, 11 insertions, 8 deletions
diff --git a/Library/Formula/libdc1394.rb b/Library/Formula/libdc1394.rb
index cecf80524..0776f40dc 100644
--- a/Library/Formula/libdc1394.rb
+++ b/Library/Formula/libdc1394.rb
@@ -1,18 +1,13 @@
require 'formula'
class Libdc1394 < Formula
- url 'http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/2.1.4/libdc1394-2.1.4.tar.gz'
homepage 'http://damien.douxchamps.net/ieee1394/libdc1394/'
- md5 'a9c5306dfc17917872513355f87e8412'
+ url 'http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/2.2.0/libdc1394-2.2.0.tar.gz'
+ sha1 '7e831258a65e7e111a9d52d8062aec6d28a1e4c4'
depends_on 'pkg-config' => :build
depends_on 'libusb'
-
- def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
- system "make install"
- end
+ depends_on :x11
def patches
# fix issue due to bug in OSX Firewire stack
@@ -20,6 +15,14 @@ class Libdc1394 < Formula
# http://permalink.gmane.org/gmane.comp.multimedia.libdc1394.devel/517
DATA
end
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--disable-examples",
+ "--disable-sdltest"
+ system "make install"
+ end
end