wok-next view xorg-libxcb/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xorg-libxcb"
4 VERSION="1.12"
5 CATEGORY="x-window"
6 SHORT_DESC="A C binding to the X11 protocol"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://xcb.freedesktop.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="libxcb-$VERSION.tar.bz2"
13 WGET_URL="$XORG_MIRROR/xcb/$TARBALL"
15 BUILD_DEPENDS="libxslt-dev xorg-xcb-proto xorg-libXau-dev xorg-libXdmcp-dev \
16 autoconf automake libtool"
17 SPLIT="xorg-libxcb-dev"
18 PKG_RULE="std-dev"
20 # Handle SliTaz arch
21 case "$SLITAZ_ARCH" in
22 arm*) VERSION="1.9.1";;
23 esac
24 case "$ARCH" in
25 arm*) # We need host xcb-proto libxslt-dev file installed
26 VERSION="1.9.1"
27 TARBALL="libxcb-$VERSION.tar.bz2"
28 WGET_URL="https://xcb.freedesktop.org/dist/$TARBALL"
29 BUILD_DEPENDS="libxslt-dev xorg-xcb-proto xorg-libXau-dev xorg-libXdmcp-dev"
30 ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # Package "libpthread-stubs" no more needed:
37 # our platform already supply all the necessary pthread stubs.
38 sed -i "s|pthread-stubs||" $src/configure.ac
40 autoreconf -fi &&
41 ./configure \
42 --enable-xinput \
43 --enable-xprint \
44 --docdir='${datadir}'/doc/$PACKAGE-$VERSION \
45 $CONFIGURE_ARGS &&
46 make &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 case $PACKAGE in
54 *-libxcb)
55 copy @std
56 DEPENDS="xorg-libXau xorg-libXdmcp"
57 PROVIDE="libxcb"
58 ;;
59 *-dev)
60 copy @dev
61 DEPENDS="xorg-libxcb xorg-libXau-dev xorg-libXdmcp-dev"
62 PROVIDE="libxcb-dev"
63 ;;
64 esac
65 }