File builders/libxcb-1/builder.sh changed (mode: 100644) (index 4d01387..5381f9a) |
1 |
1 |
src_name=libxcb |
src_name=libxcb |
2 |
|
git_commit=8287ebd7b752c33b0cabc4982606fe4831106f7e |
|
|
2 |
|
git_commit=4cbcac4eca967abfbff7cf1ea473777c5e8c375c |
3 |
3 |
git_url0=git://anongit.freedesktop.org/xcb/$src_name |
git_url0=git://anongit.freedesktop.org/xcb/$src_name |
4 |
4 |
|
|
|
5 |
|
slot=1 |
|
6 |
|
|
5 |
7 |
pkg_dir=$pkgs_dir_root/$src_name |
pkg_dir=$pkgs_dir_root/$src_name |
6 |
8 |
src_dir=$src_dir_root/xcb/$src_name |
src_dir=$src_dir_root/xcb/$src_name |
7 |
9 |
rm -Rf $pkg_dir |
rm -Rf $pkg_dir |
|
... |
... |
cd $build_dir |
36 |
38 |
|
|
37 |
39 |
#configure script relies on pkgconfig to find the python plugin |
#configure script relies on pkgconfig to find the python plugin |
38 |
40 |
export "PKG_CONFIG_LIBDIR=\ |
export "PKG_CONFIG_LIBDIR=\ |
39 |
|
$sdk_python2_path/lib/pkgconfig:\ |
|
|
41 |
|
$sdk_python3_path/lib/pkgconfig:\ |
40 |
42 |
/nyan/util-macro/current/share/pkgconfig:\ |
/nyan/util-macro/current/share/pkgconfig:\ |
41 |
43 |
/nyan/libpthread-stubs/current/lib/pkgconfig:\ |
/nyan/libpthread-stubs/current/lib/pkgconfig:\ |
42 |
44 |
/nyan/xorgproto/current/share/pkgconfig:\ |
/nyan/xorgproto/current/share/pkgconfig:\ |
|
... |
... |
$sdk_python2_path/lib/pkgconfig:\ |
45 |
47 |
# at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option |
# at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option |
46 |
48 |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
47 |
49 |
export 'CFLAGS=-O2 -pipe -fPIC' |
export 'CFLAGS=-O2 -pipe -fPIC' |
48 |
|
export PYTHON=$sdk_python2_path/bin/python2 |
|
49 |
|
$pkg_dir/configure \ |
|
50 |
|
--prefix=/nyan/libxcb/1 \ |
|
51 |
|
--enable-shared \ |
|
52 |
|
--disable-static \ |
|
|
50 |
|
export PYTHON=$sdk_python3_path/bin/python3 |
|
51 |
|
$pkg_dir/configure \ |
|
52 |
|
--prefix=/nyan/libxcb/$slot \ |
|
53 |
|
--enable-shared \ |
|
54 |
|
--disable-static \ |
53 |
55 |
--disable-devel-docs |
--disable-devel-docs |
54 |
56 |
unset PYTHON |
unset PYTHON |
55 |
57 |
unset CFLAGS |
unset CFLAGS |
56 |
58 |
unset CC |
unset CC |
57 |
59 |
|
|
|
60 |
|
# it wants autoheader... :D |
|
61 |
|
PATH_SAVED=$PATH |
|
62 |
|
export PATH=$sdk_autoconf_path/bin:$PATH |
58 |
63 |
make -j $threads_n |
make -j $threads_n |
|
64 |
|
export PATH=$PATH_SAVED |
59 |
65 |
make install |
make install |
60 |
66 |
|
|
61 |
67 |
# cleanup and tidying |
# cleanup and tidying |
62 |
|
rm -Rf /nyan/$src_name/1/share |
|
63 |
|
rm -f /nyan/$src_name/1/lib/*.la |
|
64 |
|
find /nyan/$src_name/1/lib -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then strip -s $f; fi; done |
|
|
68 |
|
rm -Rf /nyan/$src_name/$slot/share |
|
69 |
|
rm -f /nyan/$src_name/$slot/lib/*.la |
|
70 |
|
find /nyan/$src_name/$slot/lib -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then strip -s $f; fi; done |
65 |
71 |
|
|
66 |
72 |
rm -Rf $build_dir $pkg_dir |
rm -Rf $build_dir $pkg_dir |