wok-6.x view libxcb/receipt @ rev 24124
updated transfig (3.2.5d -> 3.2.8b)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 06 10:26:09 2021 +0100 (2021-10-06) |
parents | 9c0c1fdfe763 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libxcb"
4 VERSION="1.14"
5 ARM_VERSION="1.9.1"
6 CATEGORY="x-window"
7 SHORT_DESC="A C binding to the X11 protocol."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://xcb.freedesktop.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}dist/$TARBALL"
15 DEPENDS="glibc-base xorg-libXau xorg-libXdmcp"
16 BUILD_DEPENDS="autoconf automake libtool libxslt-dev xcb-proto xorg-libXau-dev
17 xorg-libXdmcp-dev"
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Handle SliTaz arch
28 case "$SLITAZ_ARCH" in
29 arm*) VERSION="$ARM_VERSION" ;;
30 esac
32 case "$ARCH" in
33 arm*)
34 # We need host xcb-proto libxslt-dev file installed
35 VERSION="$ARM_VERSION"
36 TARBALL="$PACKAGE-$VERSION.tar.bz2"
37 WGET_URL="${WEB_SITE}dist/$TARBALL"
38 BUILD_DEPENDS="libxslt-dev xcb-proto xorg-libXau-dev xorg-libXdmcp-dev" ;;
39 esac
41 # Rules to configure and make the package.
42 compile_rules()
43 {
44 # http://www.linuxfromscratch.org/blfs/view/svn/x/libxcb.html
45 sed -i "s|pthread-stubs||" $src/configure.ac &&
46 autoreconf -fi &&
47 ./configure \
48 --enable-xinput \
49 --enable-xkb \
50 --disable-build-docs \
51 --disable-static \
52 $CONFIGURE_ARGS &&
53 make &&
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib
61 mkdir -p $fs/usr/share/licenses
63 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt
65 }