wok-next annotate libxcb/receipt @ rev 19766
Up cookutils.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 12 11:40:38 2017 +0300 (2017-06-12) |
parents | e6bbb8cc0677 |
children | f463de72afe3 |
rev | line source |
---|---|
mallory@2685 | 1 # SliTaz package receipt. |
mallory@2685 | 2 |
mallory@2685 | 3 PACKAGE="libxcb" |
al@19634 | 4 VERSION="1.12" |
al@19634 | 5 VERSION_arm="1.9.1" |
mallory@2685 | 6 CATEGORY="x-window" |
al@14595 | 7 SHORT_DESC="A C binding to the X11 protocol" |
pankso@15969 | 8 MAINTAINER="pankso@slitaz.org" |
al@14595 | 9 LICENSE="other" |
al@19634 | 10 WEB_SITE="https://xcb.freedesktop.org/" |
al@19634 | 11 HOST_ARCH="i486 arm" |
al@19634 | 12 |
mallory@2685 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@14595 | 14 WGET_URL="${WEB_SITE}dist/$TARBALL" |
al@19634 | 15 TARBALL_arm="$PACKAGE-$VERSION_arm.tar.bz2" |
al@19634 | 16 WGET_URL_arm="${WEB_SITE}dist/$TARBALL_arm" |
al@14595 | 17 |
al@14595 | 18 DEPENDS="glibc-base xorg-libXau xorg-libXdmcp" |
al@14604 | 19 BUILD_DEPENDS="libxslt-dev xcb-proto xorg-libXau-dev xorg-libXdmcp-dev \ |
al@14604 | 20 autoconf automake libtool" |
al@19634 | 21 BUILD_DEPENDS_arm="libxslt-dev xcb-proto xorg-libXau-dev xorg-libXdmcp-dev" |
mallory@2685 | 22 |
pankso@16194 | 23 # Handle SliTaz arch |
pankso@16194 | 24 case "$SLITAZ_ARCH" in |
al@19634 | 25 arm*) VERSION="$VERSION_arm" ;; |
pankso@16194 | 26 esac |
pankso@16194 | 27 |
pankso@15969 | 28 case "$ARCH" in |
pankso@16194 | 29 arm*) |
pankso@16021 | 30 # We need host xcb-proto libxslt-dev file installed |
al@19634 | 31 VERSION="$VERSION_arm" |
al@19634 | 32 TARBALL="$TARBALL_arm" |
al@19634 | 33 WGET_URL="$WGET_URL_arm" |
al@19634 | 34 BUILD_DEPENDS="$BUILD_DEPENDS_arm" |
al@19634 | 35 ;; |
pankso@15969 | 36 esac |
pankso@15969 | 37 |
mallory@2685 | 38 # Rules to configure and make the package. |
mallory@2685 | 39 compile_rules() |
mallory@2685 | 40 { |
al@19634 | 41 # Package "libpthread-stubs" no more needs: |
al@19634 | 42 # our platform already supply all the necessary pthread stubs. |
al@19634 | 43 sed -i "s|pthread-stubs||" $src/configure.ac |
al@19634 | 44 |
al@14604 | 45 autoreconf -fi && |
pascal@12942 | 46 ./configure \ |
slaxemulator@12932 | 47 --enable-xinput \ |
al@19634 | 48 --enable-xprint \ |
al@14604 | 49 --disable-static \ |
al@19634 | 50 --docdir='${datadir}'/doc/$PACKAGE-$VERSION \ |
mallory@2685 | 51 $CONFIGURE_ARGS && |
al@14595 | 52 make && |
al@14595 | 53 make DESTDIR=$DESTDIR install |
mallory@2685 | 54 } |
mallory@2685 | 55 |
mallory@2685 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2685 | 57 genpkg_rules() |
mallory@2685 | 58 { |
al@19634 | 59 cook_copy_files *.so* |
mallory@2685 | 60 } |