File builders/libX11-0/builder.sh copied from file builders/libX11-1/builder.sh (similarity 60%) (mode: 100644) (index 0680bd6..74e2507) |
1 |
1 |
src_name=libX11 |
src_name=libX11 |
2 |
|
version=1.6.7 |
|
|
2 |
|
version=1.7.0 |
3 |
3 |
archive_name=$src_name-$version.tar.bz2 |
archive_name=$src_name-$version.tar.bz2 |
4 |
4 |
url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name |
url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name |
5 |
5 |
|
|
|
6 |
|
slot=0 |
|
7 |
|
|
6 |
8 |
src_dir=$src_dir_root/$src_name-$version |
src_dir=$src_dir_root/$src_name-$version |
7 |
9 |
cd $src_dir_root |
cd $src_dir_root |
8 |
10 |
rm -Rf $src_name-$version |
rm -Rf $src_name-$version |
|
... |
... |
export "PKG_CONFIG_LIBDIR=\ |
28 |
30 |
# 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 |
29 |
31 |
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" |
30 |
32 |
export 'CFLAGS=-O2 -pipe -fPIC' |
export 'CFLAGS=-O2 -pipe -fPIC' |
31 |
|
$src_dir/configure \ |
|
32 |
|
--prefix=/nyan/libX11/1 \ |
|
33 |
|
--enable-shared \ |
|
34 |
|
--disable-static \ |
|
35 |
|
--disable-tcp-transport \ |
|
36 |
|
--disable-loadable-i18n \ |
|
37 |
|
--enable-loadable-xcursor \ |
|
38 |
|
--disable-xlocaledir \ |
|
39 |
|
--without-xmlto \ |
|
40 |
|
--without-fop \ |
|
41 |
|
--without-xsltproc \ |
|
42 |
|
--without-perl \ |
|
43 |
|
--with-keysymdefdir=$(pkg-config --variable=includedir xproto)/X11 \ |
|
|
33 |
|
$src_dir/configure \ |
|
34 |
|
--prefix=/nyan/libX11/$slot \ |
|
35 |
|
--enable-shared \ |
|
36 |
|
--disable-static \ |
|
37 |
|
--disable-specs \ |
|
38 |
|
--disable-tcp-transport \ |
|
39 |
|
--disable-loadable-i18n \ |
|
40 |
|
--enable-loadable-xcursor \ |
|
41 |
|
--disable-xlocaledir \ |
|
42 |
|
--without-xmlto \ |
|
43 |
|
--without-fop \ |
|
44 |
|
--without-xsltproc \ |
|
45 |
|
--without-perl \ |
|
46 |
|
--with-keysymdefdir=/nyan/xorgproto/current/include/X11 \ |
44 |
47 |
xorg_cv_malloc0_returns_null=no |
xorg_cv_malloc0_returns_null=no |
45 |
48 |
unset CFLAGS |
unset CFLAGS |
46 |
49 |
unset CC |
unset CC |
|
... |
... |
make -j $threads_n |
49 |
52 |
make install |
make install |
50 |
53 |
|
|
51 |
54 |
# cleanup and tidying |
# cleanup and tidying |
52 |
|
rm -Rf $target_sysroot/nyan/$src_name/1/share/doc |
|
53 |
|
rm -Rf $target_sysroot/nyan/$src_name/1/share/man |
|
54 |
|
rm -f $target_sysroot/nyan/$src_name/1/lib/*.la |
|
55 |
|
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 |
|
|
55 |
|
rm -Rf $target_sysroot/nyan/$src_name/$slot/share/doc |
|
56 |
|
rm -Rf $target_sysroot/nyan/$src_name/$slot/share/man |
|
57 |
|
rm -f $target_sysroot/nyan/$src_name/$slot/lib/*.la |
|
58 |
|
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 |
56 |
59 |
|
|
57 |
60 |
rm -Rf $build_dir $src_dir |
rm -Rf $build_dir $src_dir |
58 |
61 |
OLD_PATH=$PATH |
OLD_PATH=$PATH |