aboutsummaryrefslogtreecommitdiff
path: root/cogl/Pkgfile
blob: f23e76658d2435162cd8c699b381e95c8210c1dd (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
# Description: An object oriented GL/GLES Abstraction/Utility Layer
# URL: https://blogs.gnome.org/clutter/
# Maintainer: mac-a-r0ni, j at lngn dot net
# Depends on: mesa xorg-libxcomposite gdk-pixbuf pango
# Optional: egl-wayland

name=cogl
version=1.22.8
release=2
source=(https://download.gnome.org/sources/cogl/1.22/$name-$version.tar.xz)

build() {

  prt-get isinst egl-wayland && PKGMK_COGL+=' --enable-gles2 --enable-wayland-egl-server --enable-kms-egl-platform --enable-wayland-egl-platform ' || PKGMK_COGL+=' --disable-gles2 --disable-wayland-egl-server --disable-kms-egl-platform --disable-wayland-egl-platform '

  cd $name-$version
  ./configure $PKGMK_COGL --prefix=/usr \
    --disable-nls \
    --disable-static \
    --disable-debug \
    --enable-gtk-doc=no \
    --enable-introspection=no

  make
  make DESTDIR="$PKG" install

  rm -f $PKG/usr/lib/*.la
  rm -rf $PKG/usr/share
}