Commit 45c6b246 authored by Mia's avatar Mia Committed by GitHub

New Package: clutter & cogl (#4322)

parent e497c1ff
require 'package'
class Clutter < Package
description 'OpenGL based interactive canvas library'
homepage 'https://www.clutter-project.org'
version '1.26.4'
compatibility 'all'
source_url 'https://ftp.gnome.org/pub/GNOME/sources/clutter/1.26/clutter-1.26.4.tar.xz'
source_sha256 '8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6'
depends_on 'atk'
depends_on 'pango'
depends_on 'libxi'
depends_on 'libxcomposite'
depends_on 'json_glib'
depends_on 'libgudev'
depends_on 'libxkbcommon'
depends_on 'cogl'
depends_on 'libinput'
depends_on 'libevdev'
depends_on 'eudev'
depends_on 'pygtk'
depends_on 'glib'
depends_on 'xdg_base'
def self.patch
system "curl --ssl --progress-bar -o clutter-x11-startup-error.patch -L https://git.io/JU0yS"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('clutter-x11-startup-error.patch') ) == '8370bf0cf624c638edbd309d7dfc3922d726242312d7f217facff69135f56187'
system "patch -Np0 ./clutter-x11-startup-error.patch"
end
def self.build
system "./configure #{CREW_OPTIONS} --enable-evdev --enable-evdev-input --enable-wayland-backend --enable-egl-backend --enable-wayland-compositor --enable-gdk-backend"
system 'make'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
end
require 'package'
class Cogl < Package
description 'Library for using 3D graphics hardware for rendering'
homepage 'https://www.clutter-project.org'
version '1.22.8'
compatibility 'all'
source_url 'https://ftp.gnome.org/pub/GNOME/sources/cogl/1.22/cogl-1.22.8.tar.xz'
source_sha256 'a805b2b019184710ff53d0496f9f0ce6dcca420c141a0f4f6fcc02131581d759'
depends_on 'libxcomposite'
depends_on 'libxrandr'
depends_on 'mesa'
depends_on 'pango'
depends_on 'gdk_pixbuf'
depends_on 'gst_plugins_base'
depends_on 'wayland'
depends_on 'glib'
depends_on 'gobject_introspection'
def self.build
system "./configure #{CREW_OPTIONS} --enable-cairo=yes --enable-cogl-pango=yes --enable-gdk-pixbuf=yes --enable-cogl-gst=yes --enable-kms-egl-platform --enable-wayland-egl-platform --enable-wayland-egl-server"
system 'make'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
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