Commit e5024a9f authored by Kriskras99's avatar Kriskras99 Committed by GitHub

Mayor update for mapserver

Update from 5.6.9 to 7.0.4
Change `configure` system to `cmake` system
Add dependencies
parent 3282ab3b
require 'package'
class Mapserver < Package
version '5.6.9-1'
source_url 'http://download.osgeo.org/mapserver/mapserver-5.6.9.tar.gz'
source_sha1 '3f05bf6c9a32b34408e36ddd32f61d68d65cf01c'
version '7.0.4'
source_url 'http://download.osgeo.org/mapserver/mapserver-7.0.4.tar.gz'
source_sha1 '8fb13c27da5902e6d9ad50f3eba550bd90750607'
depends_on 'cmake'
depends_on 'freetype'
depends_on 'cairo'
depends_on 'harfbuzz'
depends_on 'curl'
def self.build
system "./configure CFLAGS=\" -fPIC\" --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-png --with-jpeg --without-pdf --with-agg --with-proj --with-threads --with-geos=/usr/local/bin/geos-config --with-tiff --with-wfs --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-xml2-config=/usr/local/bin/xml2-config"
system "make"
system "mkdir build"
Dir.chdir "build" do
system "cmake -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=0 -DWITH_FCGI=0 -DWITH_POSTGIS=0 -DWITH_GIF=0 -DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DCMAKE_C_FLAGS=\" -fPIC\" -DCMAKE_INSTALL_PREFIX=/usr/local .. > ../configure.out.txt"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
Dir.chdir "build" do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment