wok-next view cogl/receipt @ rev 21168
New package asciidoctor
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 25 12:22:25 2019 +0200 (2019-03-25) |
parents | 5669e8b3be70 |
children | 66d8e0d2caeb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cogl"
4 VERSION="1.22.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Object oriented GL/GLES abstraction/utility layer"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://developer.gnome.org/cogl/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/cogl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="glib-dev mesa-dev libxcomposite-dev libxrandr-dev \
16 gdk-pixbuf-dev gettext-dev cairo-dev pango-dev gobject-introspection-dev \
17 libxshmfence-dev expat-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c
23 # --enable-kms-egl-platform, --enable-wayland-egl-platform,
24 # --enable-wayland-egl-server: for GNOME Wayland support.
25 # This added mesa-libwayland-egl to DEPENDS.
26 # --enable-xlib-egl-platform is default option.
27 ./configure \
28 --enable-gles1 \
29 --enable-gles2 \
30 --enable-kms-egl-platform \
31 --enable-wayland-egl-platform \
32 --enable-xlib-egl-platform \
33 --enable-wayland-egl-server \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make &&
37 make install || return 1
39 # remove /usr/share/cogl/examples-data/crate.jpg with folder: no examples anyway
40 rm -r $install/usr/share/cogl
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 cogl)
46 copy @std
47 DEPENDS="libcairo gdk-pixbuf glib libdrm mesa-libegl mesa-libgbm \
48 mesa-libwayland-egl pango wayland libx11 libxdamage \
49 libxext libxfixes libxrandr"
50 ;;
51 cogl-dev)
52 copy @dev
53 DEPENDS="cogl cairo-dev gdk-pixbuf-dev glib-dev libdrm-dev \
54 mesa-dev wayland-dev libx11-dev libxcomposite-dev \
55 libxdamage-dev libxext-dev libxfixes-dev \
56 libxrandr-dev"
57 ;;
58 esac
59 }