wok-next view cogl/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 66d8e0d2caeb
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cogl"
4 VERSION="1.22.8"
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="cairo-dev expat-dev gdk-pixbuf-dev gettext-dev glib-dev
16 gobject-introspection-dev libxcomposite-dev libxrandr-dev
17 libxshmfence-dev mesa-dev pango-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules()
21 {
22 sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c
24 # --enable-kms-egl-platform, --enable-wayland-egl-platform,
25 # --enable-wayland-egl-server: for GNOME Wayland support.
26 # This added mesa-libwayland-egl to DEPENDS.
27 # --enable-xlib-egl-platform is default option.
28 ./configure \
29 --enable-gles1 \
30 --enable-gles2 \
31 --enable-kms-egl-platform \
32 --enable-wayland-egl-platform \
33 --enable-wayland-egl-server \
34 --enable-xlib-egl-platform \
35 $CONFIGURE_ARGS &&
36 fix libtool &&
37 make &&
38 make install || return 1
40 # remove /usr/share/cogl/examples-data/crate.jpg with folder: no examples anyway
41 rm -r $install/usr/share/cogl
42 }
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 cogl)
48 copy @std
49 DEPENDS="gdk-pixbuf glib libcairo libdrm libx11 libxdamage
50 libxext libxfixes libxrandr mesa-libegl mesa-libgbm
51 mesa-libwayland-egl pango wayland"
52 ;;
53 cogl-dev)
54 copy @dev
55 DEPENDS="cairo-dev cogl gdk-pixbuf-dev glib-dev libdrm-dev
56 libx11-dev libxcomposite-dev libxdamage-dev libxext-dev
57 libxfixes-dev libxrandr-dev mesa-dev wayland-dev"
58 ;;
59 esac
60 }