From 13592dc3828334fac6b75ecea47f89f8587b2c43 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 24 Aug 2014 19:46:33 -0500 Subject: phash: define options before dependencies --- Library/Formula/phash.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/phash.rb b/Library/Formula/phash.rb index bbb837eb0..49dd75a45 100644 --- a/Library/Formula/phash.rb +++ b/Library/Formula/phash.rb @@ -5,6 +5,10 @@ class Phash < Formula url 'http://phash.org/releases/pHash-0.9.6.tar.gz' sha1 '26f4c1e7ca6b77e6de2bdfce490b2736d4b63753' + option "disable-image-hash", "Disable image hash" + option "disable-video-hash", "Disable video hash" + option "disable-audio-hash", "Disable audio hash" + depends_on 'cimg' unless build.include? "disable-image-hash" and build.include? "disable-video-hash" depends_on 'ffmpeg' unless build.include? "disable-video-hash" @@ -14,10 +18,6 @@ class Phash < Formula depends_on 'mpg123' end - option "disable-image-hash", "Disable image hash" - option "disable-video-hash", "Disable video hash" - option "disable-audio-hash", "Disable audio hash" - fails_with :clang do build 318 cause "configure: WARNING: CImg.h: present but cannot be compiled" -- cgit v1.2.3