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