wok-next view cogl/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | 0a97a00fbc28 |
children | 835b3b8ce6ac |
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://blogs.gnome.org/clutter/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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 cairo-dev pango-dev gobject-introspection-dev \
17 xorg-libxshmfence-dev expat-dev"
18 SPLIT="cogl cogl-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 make &&
36 make install || return 1
38 # remove /usr/share/cogl/examples-data/crate.jpg with folder: no examples anyway
39 rm -r $install/usr/share/cogl
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 cogl)
45 copy @std
46 DEPENDS="bzlib cairo expat fontconfig freetype gdk-pixbuf glib \
47 libatomic libdrm libffi libharfbuzz liblzma libpng16 libxml2 \
48 mesa-libegl mesa-libgbm mesa-libwayland-egl pango pcre \
49 util-linux-blkid util-linux-mount util-linux-uuid wayland \
50 xorg-libX11 xorg-libXau xorg-libxcb xorg-libXcomposite \
51 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
52 xorg-libXrandr xorg-libXrender xorg-libxshmfence xorg-pixman zlib"
53 ;;
54 cogl-dev)
55 copy @dev
56 DEPENDS="cogl bzip2-dev cairo-dev expat-dev fontconfig-dev \
57 freetype-dev gdk-pixbuf-dev glib-dev harfbuzz-dev libdrm-dev \
58 libffi-dev libpng16-dev libxml2-dev mesa-dev pango-dev pcre-dev \
59 util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \
60 wayland-dev xorg-libX11-dev xorg-libXau-dev xorg-libxcb-dev \
61 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXdmcp-dev \
62 xorg-libXext-dev xorg-libXfixes-dev xorg-libXrandr-dev \
63 xorg-libXrender-dev xorg-libxshmfence-dev xorg-pixman-dev xz-dev \
64 zlib-dev"
65 ;;
66 esac
67 }