Commit f0b072e0 authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2622 from uberhacker/update-libmypaint-package

Update libmypaint so it can compile with gegl support
parents 3de8cf2b a144fadb
require 'package'
class Libmypaint < Package
description 'Libmypaint is MyPaints brushstroke rendering code, in a form that can be used by other programs.'
description 'Libmypaint is MyPaint\'s brushstroke rendering code, in a form that can be used by other programs.'
homepage 'http://mypaint.org/'
version '1.3.0'
source_url 'https://github.com/mypaint/libmypaint/releases/download/v1.3.0/libmypaint-1.3.0.tar.xz'
source_sha256 '6a07d9d57fea60f68d218a953ce91b168975a003db24de6ac01ad69dcc94a671'
depends_on 'jsonc'
depends_on 'gobject_introspection'
depends_on 'glib'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libmypaint-1.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libmypaint-1.3.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libmypaint-1.3.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libmypaint-1.3.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '29ba70ec439d8b183f2986bb9e876da62efa9f7b82341965b94e0bcec684708a',
armv7l: '29ba70ec439d8b183f2986bb9e876da62efa9f7b82341965b94e0bcec684708a',
i686: 'aed779ae7fe6f2ed39d5001d11a805fb9bcd7c555881cec7d66a6c3b3a350474',
x86_64: '40f0a303a68f4ff29f5754440a41e24ea48de87a410a2aedb9f84925094fe24e',
})
depends_on 'gegl'
depends_on 'jsonc'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "sed -i 's,gegl-0.3,gegl-0.4,' gegl/Makefile.am"
system "sed -i 's,Gegl-0.3,Gegl-0.4,' gegl/Makefile.am"
system "sed -i 's,gegl-0.3,gegl-0.4,' gegl/Makefile.in"
system "sed -i 's,Gegl-0.3,Gegl-0.4,' gegl/Makefile.in"
system "GEGL_LIBS=\"#{CREW_LIB_PREFIX}/gegl-0.4\" \
GEGL_CFLAGS=\"-I#{CREW_PREFIX}/include/gegl-0.4 \
-I#{CREW_PREFIX}/include/babl-0.1 \
-I#{CREW_PREFIX}/include/glib-2.0\" \
./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--disable-maintainer-mode \
--enable-openmp \
--enable-gegl"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "ldconfig"
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