wok-next annotate cogl/receipt @ rev 20632
gegl: fix packing
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 10:53:56 2018 +0300 (2018-04-27) |
parents | c0521c689857 |
children | ee171d0eb294 |
rev | line source |
---|---|
al@20402 | 1 # SliTaz package receipt v2. |
al@20402 | 2 |
al@20402 | 3 PACKAGE="cogl" |
al@20402 | 4 VERSION="1.22.2" |
al@20402 | 5 CATEGORY="x-window" |
al@20402 | 6 SHORT_DESC="Object oriented GL/GLES abstraction/utility layer" |
al@20402 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@20402 | 8 LICENSE="GPL2" |
al@20402 | 9 WEB_SITE="https://blogs.gnome.org/clutter/" |
al@20402 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/cogl.html" |
al@20402 | 11 |
al@20402 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@20402 | 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
al@20402 | 14 |
al@20502 | 15 BUILD_DEPENDS="glib-dev mesa-dev xorg-libXcomposite-dev xorg-libXrandr-dev \ |
al@20471 | 16 gdk-pixbuf-dev gettext cairo-dev pango-dev gobject-introspection-dev \ |
al@20471 | 17 xorg-libxshmfence-dev expat-dev" |
al@20402 | 18 SPLIT="cogl cogl-dev" |
al@20402 | 19 |
al@20402 | 20 compile_rules() { |
al@20402 | 21 sed -i 's/^#if COGL/#ifdef COGL/' cogl/winsys/cogl-winsys-egl.c |
al@20402 | 22 |
al@20402 | 23 # --enable-kms-egl-platform, --enable-wayland-egl-platform, |
al@20402 | 24 # --enable-wayland-egl-server: for GNOME Wayland support. |
al@20502 | 25 # This added mesa-libwayland-egl to DEPENDS. |
al@20402 | 26 # --enable-xlib-egl-platform is default option. |
al@20402 | 27 ./configure \ |
al@20402 | 28 --enable-gles1 \ |
al@20402 | 29 --enable-gles2 \ |
al@20402 | 30 --enable-kms-egl-platform \ |
al@20402 | 31 --enable-wayland-egl-platform \ |
al@20402 | 32 --enable-xlib-egl-platform \ |
al@20402 | 33 --enable-wayland-egl-server \ |
al@20402 | 34 $CONFIGURE_ARGS && |
al@20569 | 35 fix libtool && |
al@20402 | 36 make && |
al@20402 | 37 make install || return 1 |
al@20402 | 38 |
al@20402 | 39 # remove /usr/share/cogl/examples-data/crate.jpg with folder: no examples anyway |
al@20402 | 40 rm -r $install/usr/share/cogl |
al@20402 | 41 } |
al@20402 | 42 |
al@20402 | 43 genpkg_rules() { |
al@20402 | 44 case $PACKAGE in |
al@20402 | 45 cogl) |
al@20402 | 46 copy @std |
al@20402 | 47 DEPENDS="bzlib cairo expat fontconfig freetype gdk-pixbuf glib \ |
al@20402 | 48 libatomic libdrm libffi libharfbuzz liblzma libpng16 libxml2 \ |
al@20502 | 49 mesa-libegl mesa-libgbm mesa-libwayland-egl pango pcre \ |
al@20402 | 50 util-linux-blkid util-linux-mount util-linux-uuid wayland \ |
al@20402 | 51 xorg-libX11 xorg-libXau xorg-libxcb xorg-libXcomposite \ |
al@20402 | 52 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
al@20402 | 53 xorg-libXrandr xorg-libXrender xorg-libxshmfence xorg-pixman zlib" |
al@20402 | 54 ;; |
al@20402 | 55 cogl-dev) |
al@20402 | 56 copy @dev |
al@20402 | 57 DEPENDS="cogl bzip2-dev cairo-dev expat-dev fontconfig-dev \ |
al@20402 | 58 freetype-dev gdk-pixbuf-dev glib-dev harfbuzz-dev libdrm-dev \ |
al@20502 | 59 libffi-dev libpng16-dev libxml2-dev mesa-dev pango-dev pcre-dev \ |
al@20402 | 60 util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \ |
al@20402 | 61 wayland-dev xorg-libX11-dev xorg-libXau-dev xorg-libxcb-dev \ |
al@20402 | 62 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXdmcp-dev \ |
al@20402 | 63 xorg-libXext-dev xorg-libXfixes-dev xorg-libXrandr-dev \ |
al@20402 | 64 xorg-libXrender-dev xorg-libxshmfence-dev xorg-pixman-dev xz-dev \ |
al@20402 | 65 zlib-dev" |
al@20402 | 66 ;; |
al@20402 | 67 esac |
al@20402 | 68 } |