wok-next annotate cogl/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | ee171d0eb294 |
children | d5aab818505e |
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@20641 | 9 WEB_SITE="https://developer.gnome.org/cogl/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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@20641 | 47 DEPENDS="cairo gdk-pixbuf glib libdrm mesa-libegl mesa-libgbm \ |
al@20641 | 48 mesa-libwayland-egl pango wayland xorg-libX11 xorg-libXdamage \ |
al@20641 | 49 xorg-libXext xorg-libXfixes xorg-libXrandr" |
al@20402 | 50 ;; |
al@20402 | 51 cogl-dev) |
al@20402 | 52 copy @dev |
al@20641 | 53 DEPENDS="cogl cairo-dev gdk-pixbuf-dev glib-dev libdrm-dev \ |
al@20641 | 54 mesa-dev wayland-dev xorg-libX11-dev xorg-libXcomposite-dev \ |
al@20641 | 55 xorg-libXdamage-dev xorg-libXext-dev xorg-libXfixes-dev \ |
al@20641 | 56 xorg-libXrandr-dev" |
al@20402 | 57 ;; |
al@20402 | 58 esac |
al@20402 | 59 } |