aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/jasper.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/jasper.rb b/Library/Formula/jasper.rb
index 27d982917..be695a17f 100644
--- a/Library/Formula/jasper.rb
+++ b/Library/Formula/jasper.rb
@@ -5,6 +5,8 @@ class Jasper < Formula
url 'http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip'
sha1 '9c5735f773922e580bf98c7c7dfda9bbed4c5191'
+ option :universal
+
depends_on 'jpeg'
fails_with :llvm do
@@ -12,10 +14,6 @@ class Jasper < Formula
cause "Undefined symbols when linking"
end
- def options
- [["--universal", "Build a universal binary."]]
- end
-
# The following patch fixes a bug (still in upstream as of jasper 1.900.1)
# where an assertion fails when Jasper is fed certain JPEG-2000 files with
# an alpha channel. See:
@@ -23,7 +21,7 @@ class Jasper < Formula
def patches; DATA; end
def install
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-shared",