aboutsummaryrefslogtreecommitdiffstats
path: root/main/cogl/APKBUILD
blob: 588785c65f3c6a79c7d2d0cf8527734f29357cd7 (plain)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cogl
pkgver=1.22.0
pkgrel=0
pkgdesc="An object oriented GL/GLES Abstraction/Utility Layer"
url="http://www.clutter-project.org/"
arch="all"
license="GPL2"
depends=""
depends_dev="glib-dev mesa-dev libdrm-dev libxdamage-dev libxcomposite-dev
	libxrandr-dev gdk-pixbuf-dev
	pango-dev cairo-dev gobject-introspection-dev libxext-dev eudev-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/cogl/${pkgver%.*}/cogl-$pkgver.tar.xz"

_builddir="$srcdir"/cogl-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gles2 \
		--enable-gles1 \
		--enable-kms-egl-platform \
		--enable-gl \
		--enable-gdk-pixbuf \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="ab684ec96848d79d22757fb3064820c8  cogl-1.22.0.tar.xz"
sha256sums="689dfb5d14fc1106e9d2ded0f7930dcf7265d0bc84fa846b4f03941633eeaa91  cogl-1.22.0.tar.xz"
sha512sums="b19edced4282bd2b828357391fd6175feb483acfec87e344b7719215924dc8996dc8162d7b39d62a108d4f3ebd426caeefeab4e16b6c1962cc3383c239d6c359  cogl-1.22.0.tar.xz"