aboutsummaryrefslogtreecommitdiffstats
path: root/community/cogl/APKBUILD
blob: 8245fe3385d1c54ddf02e3dad9ee73f8295e7299 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=cogl
pkgver=1.22.6
pkgrel=0
pkgdesc="An object oriented GL/GLES Abstraction/Utility Layer"
options="!check" # All tests fail for unknown reasons
url="https://gitlab.gnome.org/GNOME/cogl"
arch="all"
license="MIT"
makedepends="
	automake
	autoconf
	libtool
	libxcomposite-dev
	libxrandr-dev
	mesa-dev
	gdk-pixbuf-dev
	wayland-dev
	pango-dev
	cairo-dev
	gobject-introspection-dev
	gtk-doc
	"
#	gstreamer-dev
#	gst-plugins-base-dev
#	"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/cogl/${pkgver%.*}/cogl-$pkgver.tar.xz
	17.patch"

prepare() {
	default_prepare

	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gles2 \
		--disable-gles1 \
		--enable-kms-egl-platform \
		--enable-gl \
		--enable-gdk-pixbuf \
		--enable-introspection \
		--enable-cairo \
		--enable-wayland-egl-platform \
		--enable-wayland-egl-server
	make -j1 # fails to link cogl-gst into itself otherwise...
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b3475fa4fff3b6725f643b0d17d2de242fce1503cd83bd18031d98495501917bf5173152fb1aba7f2614fcf6553029fbb6f26bda5a497f5f12e2849ed301a483  cogl-1.22.6.tar.xz
5320cfe16eaa419aac155d86f77826076b3dfe3a018d7173220c35ba2f1a4f15254bab7336229349aa25e708f0792132572d166de5745992a4e98f662b6df0fc  17.patch"