summaryrefslogtreecommitdiff
path: root/user/cogl
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-07 07:54:53 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-07 09:23:52 -0500
commit3d1efe895ea74ec2a9e23726c36eafae8827731d (patch)
treebdec9e36e4bdaa3c4ad5f48518de3c4c1f9eac5e /user/cogl
parent351ccea78c30990a17c2e27def8831a0b39f853e (diff)
downloadpackages-3d1efe895ea74ec2a9e23726c36eafae8827731d.tar.gz
packages-3d1efe895ea74ec2a9e23726c36eafae8827731d.tar.bz2
packages-3d1efe895ea74ec2a9e23726c36eafae8827731d.tar.xz
packages-3d1efe895ea74ec2a9e23726c36eafae8827731d.zip
user/cogl: new package
Diffstat (limited to 'user/cogl')
-rw-r--r--user/cogl/APKBUILD42
-rw-r--r--user/cogl/fix-wayland-egl-check.patch12
2 files changed, 54 insertions, 0 deletions
diff --git a/user/cogl/APKBUILD b/user/cogl/APKBUILD
new file mode 100644
index 000000000..4f1b2202f
--- /dev/null
+++ b/user/cogl/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=cogl
+pkgver=1.22.2
+pkgrel=0
+pkgdesc="GObject-based GL/GLES abstraction library"
+url="https://gnome.org"
+arch="all"
+options="!check" # broken testsuite, no logs/messages to determine why
+license="MIT AND SGI-B-2.0 AND BSD-3-Clause AND Public-Domain AND LGPL-2.0+ AND Apache-2.0"
+makedepends="glib-dev libxcomposite-dev libxrandr-dev mesa-dev cairo-dev
+ pango-dev vala gobject-introspection-dev gdk-pixbuf-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.gnome.org/sources/cogl/1.22/cogl-$pkgver.tar.xz
+ fix-wayland-egl-check.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-kms-egl-platform=yes \
+ --enable-xlib-egl-platform=yes
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2ec99f5ff22683d12925b9a1f748387b47c4506aaf3c5afec851b3b6fe6b7cdfd211fb7e4359bd7a1d1b7cb3cb7fbd257efbcb7d2941d0f133a60bad1c9645e3 cogl-1.22.2.tar.xz
+73fa3a7258e2624d13abfe36259bef1a28e993653f0fdebfb4b0822752fa40a95399f4f9cd707873938bc6b8edcc7db46228247851471899f05a7e7132af58c7 fix-wayland-egl-check.patch"
diff --git a/user/cogl/fix-wayland-egl-check.patch b/user/cogl/fix-wayland-egl-check.patch
new file mode 100644
index 000000000..72ec484e5
--- /dev/null
+++ b/user/cogl/fix-wayland-egl-check.patch
@@ -0,0 +1,12 @@
+diff -Nurd cogl-1.22.2/cogl/winsys/cogl-winsys-egl.c cogl-1.22.2.new/cogl/winsys/cogl-winsys-egl.c
+--- cogl-1.22.2/cogl/winsys/cogl-winsys-egl.c 2016-08-26 11:18:16.000000000 -0500
++++ cogl-1.22.2.new/cogl/winsys/cogl-winsys-egl.c 2018-09-07 08:28:36.950138458 -0500
+@@ -1029,7 +1029,7 @@
+ egl_ctx = EGL_NO_CONTEXT;
+ else
+ #endif
+-#if COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
++#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
+ /* The WL_bind_wayland_display spec states that EGL_NO_CONTEXT is to be used
+ * in conjunction with the EGL_WAYLAND_BUFFER_WL target */
+ if (target == EGL_WAYLAND_BUFFER_WL)