mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Update imagemagick6 from 6.9.10-14 to 6.9.10-77 Update imagemagick7 from 7.0.8-14 to 7.0.9-7 Add flif and jbigkit dependencies Add decoder and viewflif to flif package Add libsdl2 dependency to flif package Add -fPIC switch option to jbigkit package Prevent simultaneous install of imagemagick6 and imagemagick7 Add pre-built binaries
69 lines
2.2 KiB
Ruby
69 lines
2.2 KiB
Ruby
require 'package'
|
|
|
|
class Imagemagick6 < Package
|
|
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
|
|
homepage 'http://www.imagemagick.org/script/index.php'
|
|
version '6.9.10-77'
|
|
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-6.9.10-77.tar.xz'
|
|
source_sha256 '55b3ef6281056c728a25e178434f1e7a2e491cbd99e44dc090a82967a2df6e11'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick6-6.9.10-77-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick6-6.9.10-77-chromeos-armv7l.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick6-6.9.10-77-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: 'e0eb87d09523ea2bfc111c1b8651958702ae7c6dd876f76d81dac71584e8203e',
|
|
armv7l: 'e0eb87d09523ea2bfc111c1b8651958702ae7c6dd876f76d81dac71584e8203e',
|
|
x86_64: '631ae6d92e7171e9ad1dc88cd81cd542764e4ef8363bdfa69d7e72f0d2ad3da0',
|
|
})
|
|
|
|
if ARGV[0] == 'install'
|
|
imver = `stream -version 2> /dev/null | head -1 | cut -d' ' -f3`.chomp
|
|
abort "ImageMagick version #{imver} already installed.".lightgreen unless "#{imver}" == ""
|
|
end
|
|
|
|
depends_on 'flif'
|
|
depends_on 'freetype'
|
|
depends_on 'ghostscript'
|
|
depends_on 'graphviz'
|
|
depends_on 'jbigkit'
|
|
depends_on 'jemalloc'
|
|
depends_on 'lzma'
|
|
depends_on 'libheif'
|
|
depends_on 'librsvg'
|
|
depends_on 'libwebp'
|
|
depends_on 'libwmf'
|
|
depends_on 'msttcorefonts'
|
|
depends_on 'openexr'
|
|
depends_on 'openjpeg'
|
|
depends_on 'pango'
|
|
depends_on 'python27'
|
|
depends_on 'zstd'
|
|
depends_on 'sommelier'
|
|
|
|
def self.patch
|
|
system 'filefix'
|
|
end
|
|
|
|
def self.build
|
|
system "CFLAGS=' -I#{CREW_PREFIX}/include/gdk-pixbuf-2.0 -I#{CREW_PREFIX}/include/c++/v1/support/xlocale' \
|
|
./configure \
|
|
--prefix=#{CREW_PREFIX} \
|
|
--libdir=#{CREW_LIB_PREFIX} \
|
|
--disable-dependency-tracking \
|
|
--with-windows-font-dir=#{CREW_PREFIX}/share/fonts/truetype/msttcorefonts \
|
|
--with-jemalloc \
|
|
--with-modules \
|
|
--enable-hdri \
|
|
--with-perl \
|
|
--with-rsvg \
|
|
--with-x"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|