phash: fix audit warnings

This commit is contained in:
Adam Vandenberg committed 2012-10-27 14:44:03 -07:00
1 parent 9f151dc1cf
commit 8d4a246e9b
1 file changed
+9 -13
+9 -13
View File
@@ -5,22 +5,18 @@ class Phash < Formula
url 'http://www.phash.org/releases/pHash-0.9.4.tar.gz'
sha1 '9710b8a1d4d24e7fc3ac43c33eac8e89d9e727d7'
depends_on 'cimg' unless ARGV.include? "--disable-image-hash" and ARGV.include? "--disable-video-hash"
depends_on 'ffmpeg' unless ARGV.include? "--disable-video-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"
unless ARGV.include? "--disable-audio-hash"
unless build.include? "disable-audio-hash"
depends_on 'libsndfile'
depends_on 'libsamplerate'
depends_on 'mpg123'
end
def options
[
["--disable-image-hash", "Disable image hash"],
["--disable-video-hash", "Disable video hash"],
["--disable-audio-hash", "Disable audio hash"]
]
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
@@ -42,9 +38,9 @@ class Phash < Formula
]
# disable specific hashes if specified as an option
args << "--disable-image-hash" if ARGV.include? "--disable-image-hash"
args << "--disable-video-hash" if ARGV.include? "--disable-video-hash"
args << "--disable-audio-hash" if ARGV.include? "--disable-audio-hash"
args << "--disable-image-hash" if build.include? "disable-image-hash"
args << "--disable-video-hash" if build.include? "disable-video-hash"
args << "--disable-audio-hash" if build.include? "disable-audio-hash"
system "./configure", *args
system "make install"