Commit da478f1b authored by system_user's avatar system_user

Added proj4, geos and gdal packages

parent 8b407534
require 'package'
class Gdal < Package
version '1.11.2'
source_url 'http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz'
source_sha1 '6f3ccbe5643805784812072a33c25be0bbff00db'
depends_on 'python27'
depends_on 'curl'
depends_on 'geos'
depends_on 'proj4'
depends_on 'libxml2'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\" --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-curl=/usr/local/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-static-proj4=/usr/local/share/proj --with-python --with-mrsid=/home/chronos/user/Downloads/mrsid/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc44/Raster_DSDK"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Geos < Package
version '3.4.2'
source_url 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2'
source_sha1 'b8aceab04dd09f4113864f2d12015231bb318e9a'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libgd < Package
version '2.0.33'
source_url 'https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz'
source_sha1 '489e25f18d3fc9d7f8b0e4889f98f5aa25363c3e'
def self.build
FileUtils.cd('src') do
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxml2 < Package
version '2.9.2'
source_url 'http://xmlsoft.org/sources/libxml2-2.9.2.tar.gz'
source_sha1 'f46a37ea6d869f702e03f393c376760f3cbee673'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Proj4 < Package
version '4.9.1'
source_url 'http://download.osgeo.org/proj/proj-4.9.1.tar.gz'
source_sha1 '0bc63a41f1bdcff600d076c056f796007abf3f2f'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
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