wok annotate cairo/receipt @ rev 25759
ristretto: added mkdir command
author | Hans-G?nter Theisgen |
---|---|
date | Sun Sep 01 14:55:10 2024 +0100 (7 weeks ago) |
parents | 2f031a8d4c0b |
children |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="cairo" |
Hans-G?nter@20760 | 4 VERSION="1.16.0" |
pankso@22 | 5 CATEGORY="x-window" |
al@19250 | 6 SHORT_DESC="2D graphics library" |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="MPL LGPL2.1" |
Hans-G?nter@20760 | 9 WEB_SITE="https://www.cairographics.org/" |
Hans-G?nter@20760 | 10 |
pankso@16083 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19250 | 12 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pankso@16083 | 13 |
Hans-G?nter@24747 | 14 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz libffi libpng |
Hans-G?nter@24747 | 15 libxcb libxml2 pcre pixman xorg-libX11 xorg-libXau xorg-libXdmcp |
Hans-G?nter@24747 | 16 xorg-libXext xorg-libXrender zlib" |
Hans-G?nter@24747 | 17 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev glib-dev libpng-dev |
Hans-G?nter@24747 | 18 pixman-dev pkg-config libxcb-dev libxml2-dev util-linux-uuid-dev |
Hans-G?nter@24747 | 19 xcb-util-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev |
Hans-G?nter@24747 | 20 xorg-libXrender-dev zlib-dev" |
al@19250 | 21 SPLIT="cairo-tools" |
al@19250 | 22 SIBLINGS="cairo-gl" |
Hans-G?nter@24747 | 23 |
Hans-G?nter@20760 | 24 HOST_ARCH="i486 arm" |
pankso@16083 | 25 |
pankso@16083 | 26 # Handle cross compilation |
pankso@16083 | 27 case "$ARCH" in |
pankso@16083 | 28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16083 | 29 esac |
pankso@22 | 30 |
pascal@24066 | 31 current_version() |
pascal@24066 | 32 { |
pascal@24066 | 33 wget -O - https://www.cairographics.org/releases/ 2>/dev/null | \ |
pascal@24066 | 34 sed '/cairo-/!d;s|.*cairo-||;s|.tar.*||' | sed '$!d' |
pascal@24066 | 35 } |
pascal@24066 | 36 |
pankso@22 | 37 # Rules to configure and make the package. |
pankso@22 | 38 compile_rules() |
pankso@22 | 39 { |
Hans-G?nter@24749 | 40 # modify lookup-symbol.c for binutils-2.37 |
Hans-G?nter@24749 | 41 patch --strip=0 --input=$stuff/patches/lookup-symbol.c-1.16.0 && |
Hans-G?nter@24749 | 42 sed -i '/index.sgml/d' doc/public/Makefile* && |
Hans-G?nter@24747 | 43 |
Hans-G?nter@24747 | 44 ./configure \ |
Hans-G?nter@24747 | 45 --prefix=/usr \ |
Hans-G?nter@24747 | 46 --disable-gl \ |
Hans-G?nter@24747 | 47 --disable-static \ |
Hans-G?nter@24747 | 48 --enable-tee \ |
Hans-G?nter@24747 | 49 --enable-xcb \ |
Hans-G?nter@24747 | 50 --enable-xlib-xcb \ |
al@19250 | 51 $CONFIGURE_ARGS && |
slaxemulator@13171 | 52 make $MAKEFLAGS && |
Hans-G?nter@24747 | 53 make install DESTDIR=$DESTDIR |
pankso@22 | 54 } |
pankso@22 | 55 |
pankso@22 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 57 genpkg_rules() |
pankso@22 | 58 { |
al@19250 | 59 mkdir -p $fs/usr/lib |
Hans-G?nter@24747 | 60 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 61 } |