aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlex Morega2011-06-27 18:24:13 +0300
committerAdam Vandenberg2011-07-07 16:43:38 -0700
commit213009add3ca159d486c1dc9882a8072fbac1ad9 (patch)
treeee5e7f98d916cfdbaf2170136cd28b2e61251970 /Library/Formula
parent85a84f2271aee280b5595da816059becae99fa47 (diff)
downloadhomebrew-213009add3ca159d486c1dc9882a8072fbac1ad9.tar.bz2
MapServer 6.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mapserver.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/mapserver.rb b/Library/Formula/mapserver.rb
new file mode 100644
index 000000000..6908ffccc
--- /dev/null
+++ b/Library/Formula/mapserver.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class Mapserver < Formula
+ url 'http://download.osgeo.org/mapserver/mapserver-6.0.0.tar.gz'
+ homepage 'http://mapserver.org/'
+ md5 '5bcb1a6fb4a743e9f069466fbdf4ab76'
+
+ depends_on 'gd'
+ depends_on 'proj'
+ depends_on 'gdal'
+ depends_on 'libagg'
+
+ def patches
+ # http://trac.osgeo.org/mapserver/ticket/3877 (patch from the 6.0 release branch)
+ { :p4 => "http://trac.osgeo.org/mapserver/changeset/11714?format=diff&new=11714" }
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--with-png=/usr/X11",
+ "--with-proj", "--with-gdal", "--with-agg"
+ system "make"
+ bin.install "mapserv"
+ end
+end