CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xorg-xcb-utils: Initial import (verified compilation)
[attic/ports/xorg-cross.git] / xorg-xcb-util / Pkgfile
1 # Description: XCB utilities library
2 # URL: http://xcb.freedesktop.org
3 # Maintainer: Tilman Sauerbeck, tilman at crux dot nu
4 # Depends on: xorg-libxcb gperf
5
6 name=xorg-xcb-util
7 version=0.3.6
8 release=1
9 source=(http://xcb.freedesktop.org/dist/xcb-util-$version.tar.bz2)
10
11 build() {
12
13 cd xcb-util-$version
14 export XCB_LIBS="-L$CLFS/usr/lib -lxcb"
15 export XCB_CFLAGS="-I$CLFS/usr/include"
16 export XPROTO_LIBS="-L$CLFS/usr/lib"
17 export XPROTO_CFLAGS="-I$CLFS/usr/include"
18 export XCB_SHM_LIBS="-L$CLFS/usr/lib -lxcb-shm"
19 export XCB_SHM_CFLAGS="-I$CLFS/usr/include"
20 export XCB_RENDER_LIBS="-L$CLFS/usr/lib -lxcb-render"
21 export XCB_RENDER_CFLAGS="-I$CLFS/usr/include"
22
23 sed -e 's|`$PKG_CONFIG --variable=xcbproto_version xcb`|1.6|g' -i configure
24 ./configure --build=$CHOST \
25 --host=$CTARGET \
26 --prefix=/usr
27
28 make
29 make DESTDIR=$PKG install
30 }