wok-next annotate cairo/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 4d9f82dabdbb |
rev | line source |
---|---|
al@19737 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="cairo" |
al@20542 | 4 VERSION="1.14.12" |
pankso@22 | 5 CATEGORY="x-window" |
al@19250 | 6 SHORT_DESC="2D graphics library" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15022 | 8 LICENSE="MPL LGPL2.1" |
al@19250 | 9 WEB_SITE="https://www.cairographics.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/cairo.html" |
pankso@16083 | 11 |
al@19737 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19737 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
al@19737 | 14 |
al@20640 | 15 BUILD_DEPENDS="zlib-dev xorg-libX11-dev xorg-libXext-dev xorg-libICE-dev \ |
al@20640 | 16 xorg-libXrender-dev xorg-libxcb-dev libpng16-dev freetype-dev fontconfig-dev \ |
al@21017 | 17 libspectre-dev poppler-dev librsvg-dev gtk2-dev xorg-pixman-dev" |
al@21020 | 18 SPLIT="$PACKAGE-tools $PACKAGE-dev" |
pankso@16083 | 19 |
al@20640 | 20 # use --nogl to disable building cairo-gl* packages |
al@20640 | 21 if [ -z "$nogl" ]; then |
al@20640 | 22 BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \ |
al@20640 | 23 libdrm-dev mesa-libegl xorg-libxshmfence-dev" |
al@20640 | 24 SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl" |
al@20640 | 25 fi |
al@20542 | 26 COOKOPTS="skip-log-errors" |
pankso@22 | 27 |
al@20443 | 28 compile_rules() { |
al@20443 | 29 case "$SET" in |
al@20443 | 30 gl) SET_ARGS='--enable-gl';; |
al@20443 | 31 *) SET_ARGS='--disable-gl';; |
al@20443 | 32 esac |
al@20443 | 33 |
pankso@1999 | 34 ./configure \ |
pankso@5336 | 35 --enable-xcb \ |
al@19250 | 36 --enable-xlib-xcb \ |
slaxemulator@9383 | 37 --enable-tee \ |
slaxemulator@6628 | 38 --disable-static \ |
al@20542 | 39 $SET_ARGS \ |
al@20542 | 40 $CONFIGURE_ARGS && |
al@20443 | 41 fix libtool && |
slaxemulator@13171 | 42 make $MAKEFLAGS && |
al@21020 | 43 make DESTDIR=$install install |
pankso@22 | 44 } |
pankso@22 | 45 |
al@20443 | 46 genpkg_rules() { |
al@19737 | 47 case $PACKAGE in |
al@19737 | 48 cairo) |
al@19737 | 49 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so* |
al@20504 | 50 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \ |
al@20504 | 51 xorg-pixman zlib" |
al@19737 | 52 ;; |
al@19737 | 53 cairo-tools) |
al@19737 | 54 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so* |
al@19737 | 55 CAT="development|development tools" |
al@20504 | 56 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \ |
al@20504 | 57 xorg-pixman zlib" |
al@19737 | 58 ;; |
al@19737 | 59 cairo-dev) |
al@19737 | 60 copy @dev |
al@20504 | 61 DEPENDS="cairo cairo-tools \ |
al@20504 | 62 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \ |
al@20504 | 63 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \ |
al@20504 | 64 xorg-pixman-dev zlib-dev" |
al@19737 | 65 ;; |
al@20443 | 66 |
al@20443 | 67 cairo-gl) |
al@20443 | 68 copy usr/lib/*.so* |
al@20443 | 69 CAT="x-window|with GL support" |
al@20504 | 70 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \ |
al@20504 | 71 xorg-libX11 xorg-libxcb xorg-pixman zlib" |
al@20640 | 72 PROVIDE="cairo:mesa" |
al@20443 | 73 ;; |
al@20443 | 74 cairo-gl-tools) |
al@20443 | 75 copy usr/bin/ usr/lib/cairo/*.so* |
al@20443 | 76 CAT="development|development tools with GL support" |
al@20504 | 77 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \ |
al@20504 | 78 xorg-libXrender xorg-libxcb xorg-pixman zlib" |
al@20640 | 79 PROVIDE="cairo-tools:mesa cairo-tools:cairo-gl" |
al@20443 | 80 ;; |
al@20443 | 81 cairo-gl-dev) |
al@20443 | 82 copy @dev |
al@20443 | 83 CAT="development|development files with GL support" |
al@20504 | 84 DEPENDS="cairo-gl cairo-gl-tools \ |
al@20504 | 85 fontconfig-dev freetype-dev glib-dev libpng16-dev mesa-dev \ |
al@20504 | 86 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev \ |
al@20504 | 87 xorg-libxcb-dev xorg-pixman-dev zlib-dev" |
al@20443 | 88 ;; |
al@19737 | 89 esac |
pankso@22 | 90 } |