Commit 958fa98f authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #483 from cstrouse/update-libgd

Update libgd from 2.0.33-1 to 2.2.4
parents b0645c41 d6c7ce2a
require 'package'
class Libgd < Package
version '2.0.33-1'
source_url 'https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz'
source_sha1 '489e25f18d3fc9d7f8b0e4889f98f5aa25363c3e'
version '2.2.4'
source_url 'https://github.com/libgd/libgd/archive/gd-2.2.4.tar.gz'
source_sha1 '630daec16fe06e4e916fd0fa8499c8fa5c0dcbca'
depends_on 'cmake'
depends_on 'libpng'
def self.build
FileUtils.cd('src') do
system "./configure CFLAGS=\" -fPIC\""
FileUtils.mkdir('build')
FileUtils.cd('build') do
system "cmake -DCMAKE_INCLUDE_PATH=/usr/local/include -DCMAKE_INSTALL_PREFIX=/usr/local .."
system "make"
end
end
def self.install
FileUtils.cd('src') do
FileUtils.cd('build') do
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