aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pil.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/pil.rb')
-rw-r--r--Library/Formula/pil.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/pil.rb b/Library/Formula/pil.rb
index 96f363dc1..607625901 100644
--- a/Library/Formula/pil.rb
+++ b/Library/Formula/pil.rb
@@ -5,6 +5,7 @@ class Pil < Formula
homepage 'http://www.pythonware.com/products/pil/'
md5 'fc14a54e1ce02a0225be8854bfba478e'
+ depends_on :x11
depends_on 'jpeg' => :recommended
depends_on 'little-cms' => :optional
@@ -21,10 +22,10 @@ class Pil < Formula
inreplace "setup.py" do |s|
# Tell setup where Freetype2 is on 10.5/10.6
s.gsub! 'add_directory(include_dirs, "/sw/include/freetype2")',
- 'add_directory(include_dirs, "/usr/X11/include")'
+ 'add_directory(include_dirs, "#{MacOS.x11_prefix}/include")'
s.gsub! 'add_directory(include_dirs, "/sw/lib/freetype2/include")',
- 'add_directory(library_dirs, "/usr/X11/lib")'
+ 'add_directory(library_dirs, "#{MacOS.x11_prefix}/lib")'
# Tell setup where our stuff is
s.gsub! 'add_directory(library_dirs, "/sw/lib")',