aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/jpeg-turbo.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/jpeg-turbo.rb b/Library/Formula/jpeg-turbo.rb
index abbaaaf8e..302dc145f 100644
--- a/Library/Formula/jpeg-turbo.rb
+++ b/Library/Formula/jpeg-turbo.rb
@@ -5,14 +5,15 @@ class JpegTurbo < Formula
url 'https://downloads.sourceforge.net/project/libjpeg-turbo/1.3.1/libjpeg-turbo-1.3.1.tar.gz'
sha1 '5fa19252e5ca992cfa40446a0210ceff55fbe468'
+ depends_on "libtool" => :build
depends_on 'nasm' => :build if MacOS.prefer_64_bit?
keg_only "libjpeg-turbo is not linked to prevent conflicts with the standard libjpeg."
def install
+ cp Dir["#{Formula["libtool"].opt_share}/libtool/config/config.*"], buildpath
args = ["--disable-dependency-tracking", "--prefix=#{prefix}", "--with-jpeg8", "--mandir=#{man}"]
if MacOS.prefer_64_bit?
- args << "--host=x86_64-apple-darwin"
# Auto-detect our 64-bit nasm
args << "NASM=#{Formula["nasm"].bin}/nasm"
end