Commit 589ab471 authored by Michał Siwek's avatar Michał Siwek

Merge pull request #89 from lagerratrobe/master

Multiple new packages
parents f07c6608 c012c0e2
require 'package'
class Bc < Package
version '1.06'
source_url 'http://ftp.gnu.org/gnu/bc/bc-1.06.tar.gz'
source_sha1 'c8f258a7355b40a485007c40865480349c157292'
depends_on 'flex'
def self.build
system "./configure --libdir=/usr/local/lib64/"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Flex < Package
version '2.5.39'
source_url 'http://fossies.org/linux/misc/flex-2.5.39.tar.gz'
source_sha1 '40866373afd3ab88a7f7fe26c9b27b035aa1f2a9'
depends_on 'm4'
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 Fontconfig < Package
version '2.11.94'
source_url 'http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.94.tar.gz'
source_sha1 '3748d8a2b9cf8052dbd003f524d829157f1ead83'
depends_on 'pkgconfig'
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 Freetype < Package
version '2.6'
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.6.tar.gz'
source_sha1 '12dd3267af62cccc32045ed99984f3d8a8ddbf90'
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 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"
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 Libjpeg < Package
version '6.3'
source_url 'http://www.ijg.org/files/jpegsrc.v6b.tar.gz'
source_sha1 '7079f0d6c42fad0cfba382cf6ad322add1ace8f9'
def self.build
system "./configure --includedir=/usr/local/include --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 Libpng < Package
version '1.5.22'
source_url 'http://www.mirrorservice.org/sites/downloads.sourceforge.net/l/li/libpng/libpng15/1.5.22/libpng-1.5.22.tar.gz'
source_sha1 'e912df0826dd6fb74f579ba60bf05c99807548ac'
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 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 Mapserver < Package
version '5.6.9'
source_url 'http://download.osgeo.org/mapserver/mapserver-5.6.9.tar.gz'
source_sha1 '3f05bf6c9a32b34408e36ddd32f61d68d65cf01c'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" 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"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Openconnect < Package
version '7.06'
source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz'
source_sha1 '2351408693aab0c6bc97d37e68b4a869fbb217ed'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\" --without-gnutls"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Pkgconfig < Package
version '0.28'
source_url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz'
source_sha1 '71853779b12f958777bffcb8ca6d849b4d3bed46'
def self.build
system "./configure --with-internal-glib --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
require 'package'
class Thttpd < Package
version '2.25'
source_url 'https://www.dropbox.com/s/sckekosjqtde5rt/thttpd-2.25b.tar.gz?dl=0'
source_sha1 '5c2d37ad4291e262b33588375810deb1d48a37ed'
def self.build
system "./configure"
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