aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-05-02 10:22:47 -0700
committerAdam Vandenberg2011-05-04 09:13:16 -0700
commita5454a71ba4059fdf4e619adb5a59f39e6042d46 (patch)
tree9e153ea5e66cb3d7e48ba2feef3c4cbe137bc7cb /Library
parentf5594fb398a5b8f00c53ff93a951889a2541189e (diff)
downloadhomebrew-a5454a71ba4059fdf4e619adb5a59f39e6042d46.tar.bz2
GRASS 6.4.1
Also enable support for FFMPEG and GEOS. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/grass.rb17
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Formula/grass.rb b/Library/Formula/grass.rb
index 28ebe8c55..95a62012d 100644
--- a/Library/Formula/grass.rb
+++ b/Library/Formula/grass.rb
@@ -10,8 +10,8 @@ end
class Grass < Formula
homepage 'http://grass.osgeo.org/'
- url 'http://grass.osgeo.org/grass64/source/grass-6.4.0.tar.gz'
- md5 'ac3233aa3351f8e060ea48246aa01c7f'
+ url 'http://grass.osgeo.org/grass64/source/grass-6.4.1.tar.gz'
+ md5 'd8ca83d416b5b0cf2aa9d36c81a77b23'
depends_on "pkg-config" => :build
depends_on "gettext"
@@ -20,6 +20,7 @@ class Grass < Formula
depends_on "libtiff"
depends_on "unixodbc"
depends_on "fftw"
+ depends_on "ffmpeg"
depends_on "cairo" if MacOS.leopard?
@@ -35,8 +36,12 @@ class Grass < Formula
end
def install
- readline = Formula.factory( 'readline' )
- gettext = Formula.factory( 'gettext' )
+ readline = Formula.factory('readline')
+ gettext = Formula.factory('gettext')
+ ffmpeg = Formula.factory('ffmpeg')
+ ffmpeg_includes = ffmpeg.include.subdirs.map do |dir|
+ dir.to_s.gsub(ffmpeg.prefix, HOMEBREW_PREFIX) + " "
+ end
args = [
"--disable-debug", "--disable-dependency-tracking",
@@ -54,6 +59,7 @@ class Grass < Formula
"--with-lapack",
"--with-sqlite",
"--with-odbc",
+ "--with-geos=#{HOMEBREW_PREFIX}/bin/geos-config",
"--with-png-includes=/usr/X11/include",
"--with-png",
"--with-readline-includes=#{readline.include}",
@@ -64,7 +70,8 @@ class Grass < Formula
"--with-nls",
"--with-freetype-includes=/usr/X11/include /usr/X11/include/freetype2",
"--with-freetype",
- "--without-ffmpeg", # Disabled because NVIZ needs Tcl and wxNVIZ is not shipping yet.
+ "--with-ffmpeg-includes=#{ffmpeg_includes}",
+ "--with-ffmpeg",
"--without-tcltk" # Disabled due to compatibility issues with OS X Tcl/Tk
]