mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
phash: fix audit warnings
This commit is contained in:
1 parent
9f151dc1cf
commit
8d4a246e9b
1 file changed
+9
-13
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user