gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / xprop-0 / builder.sh
blob37d0ec548ba2b9f8f768bbe96b5c4d381a87bd04
1 src_name=xprop
2 version=1.2.3
3 archive_name=$src_name-$version.tar.bz2
4 url0=http://xorg.freedesktop.org/releases/individual/app/$archive_name
6 src_dir=$src_dir_root/$src_name-$version
7 cd $src_dir_root
8 rm -Rf $src_name-$version
9 tar xf $archive_name
11 build_dir=$builds_dir_root/$pkg_name-$version
12 rm -Rf $build_dir
13 mkdir -p $build_dir
14 cd $build_dir
16 export "PKG_CONFIG_PATH=\
17 /nyan/libpthread-stubs/current/lib/pkgconfig:\
18 /nyan/libXau/current/lib/pkgconfig:\
19 /nyan/libXext/current/lib/pkgconfig:\
20 /nyan/libxcb/current/lib/pkgconfig:\
21 /nyan/libX11/current/lib/pkgconfig:\
22 /nyan/xorgproto/current/share/pkgconfig:\
23 /nyan/util-macro/current/share/pkgconfig:\
24 /nyan/libXrandr/current/lib/pkgconfig:\
25 /nyan/libXrender/current/lib/pkgconfig"
27 export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -static-libgcc \
28 -Wl,-rpath-link,\
29 /nyan/libXrandr/current/lib:\
30 /nyan/libXext/current/lib:\
31 /nyan/libxcb/current/lib:\
32 /nyan/libXau/current/lib:\
33 /nyan/glibc/current/lib"
34 export 'CFLAGS=-O2 -pipe -fPIC'
35 $src_dir/configure --prefix=/nyan/xprop/0
36 unset CFLAGS
37 unset CC
38 unset PKG_CONFIG_PATH
40 make -j $threads_n
41 make install
43 # cleanup and tidying
44 rm -Rf /nyan/$src_name/0/share
45 strip -s /nyan/$src_name/0/bin/$src_name
47 rm -Rf $build_dir $src_dir