Files
chromebrew/packages/libgd.rb
Casey Strouse d6c7ce2a19 Update libgd from 2.0.33-1 to 2.2.4
This release addresses a security issue in regards to loading external
resource. It's recommended that all users of this library update to this
version. The project has also transitioned to cmake.

Refs CVE-2016-9317 and CVE-2016-6912.

Tested as working on Samung XE50013-K01US (x86_64). Test harness does
not build.
2017-02-03 15:00:57 -07:00

25 lines
564 B
Ruby

require 'package'
class Libgd < Package
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.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('build') do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end