Commit 1dace4cf authored by lovedheart's avatar lovedheart Committed by Ed Reel

[openjpeg] upgrade to 2.3.0 with binaries (#2190)

parent a3ca4cb5
......@@ -3,31 +3,40 @@ require 'package'
class Openjpeg < Package
description 'OpenJPEG is an open-source JPEG 2000 codec written in C language.'
homepage 'https://github.com/uclouvain/openjpeg/'
version '2.1.2'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.1.2.tar.gz'
source_sha256 '4ce77b6ef538ef090d9bde1d5eeff8b3069ab56c4906f083475517c2c023dfa7'
version '2.3.0'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz'
source_sha256 '3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.1.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.1.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.1.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.1.2-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '5a757e5b3576e636c9b04def1784dab0d54fb2d2b397a8f41f96e973920b5dad',
armv7l: '5a757e5b3576e636c9b04def1784dab0d54fb2d2b397a8f41f96e973920b5dad',
i686: '023b8baa817e114c2fa97a5cc0a0e79728d3587c0fd8d385b13d1d5a0994470f',
x86_64: '218d4224019530780f6b739b4f28e3c3a29d04a0f471f49290961d3956d7d9aa',
aarch64: 'c02d6f58a4f3fe8c6b200e971e9e4f5864520b9e86eefbce779721bb98b6801d',
armv7l: 'c02d6f58a4f3fe8c6b200e971e9e4f5864520b9e86eefbce779721bb98b6801d',
i686: 'ccfce34e8b1fbcdad810c98bced4d84c311f8c1a2c3ab99504e8dfb0661ab791',
x86_64: 'e76d1c1a50876326b74096733f81a84eff68e979404f9a7ce584a9d040b05bef',
})
depends_on 'cmake'
depends_on 'cmake' => :build
def self.build
system "cmake ."
system "make"
system "mkdir -p builddir"
Dir.chdir("builddir") do
system "cmake",
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
"-DOPENJPEG_INSTALL_LIB_DIR=#{CREW_LIB_PREFIX}",
"-DCMAKE_BUILD_TYPE=Release",
".."
system "make"
end
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
Dir.chdir("builddir") do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
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