wok-next view cogl/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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 xorg-libXcomposite-dev xorg-libXrandr-dev \
16 gdk-pixbuf-dev gettext-dev cairo-dev pango-dev gobject-introspection-dev \
17 xorg-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="cairo gdk-pixbuf glib libdrm mesa-libegl mesa-libgbm \
48 mesa-libwayland-egl pango wayland xorg-libX11 xorg-libXdamage \
49 xorg-libXext xorg-libXfixes xorg-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 xorg-libX11-dev xorg-libXcomposite-dev \
55 xorg-libXdamage-dev xorg-libXext-dev xorg-libXfixes-dev \
56 xorg-libXrandr-dev"
57 ;;
58 esac
59 }