mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
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.
25 lines
564 B
Ruby
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
|