File builders/libX11-1.7.1/builder.sh copied from file builders/libX11-0/builder.sh (similarity 50%) (mode: 100644) (index 74e2507..ecdf282) |
1 |
1 |
src_name=libX11 |
src_name=libX11 |
2 |
|
version=1.7.0 |
|
|
2 |
|
version=${pkg_name##*-} |
|
3 |
|
slot=$version |
3 |
4 |
archive_name=$src_name-$version.tar.bz2 |
archive_name=$src_name-$version.tar.bz2 |
4 |
5 |
url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name |
url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name |
5 |
6 |
|
|
6 |
|
slot=0 |
|
7 |
|
|
|
8 |
|
src_dir=$src_dir_root/$src_name-$version |
|
9 |
|
cd $src_dir_root |
|
10 |
|
rm -Rf $src_name-$version |
|
|
7 |
|
pkg_dir=$pkgs_dir_root/$src_name-$version |
|
8 |
|
rm -Rf $pkg_dir |
|
9 |
|
mkdir -p $pkgs_dir_root |
|
10 |
|
cp -f $src_dir_root/$archive_name $pkgs_dir_root |
|
11 |
|
cd $pkgs_dir_root |
11 |
12 |
tar xf $archive_name |
tar xf $archive_name |
12 |
13 |
|
|
13 |
|
build_dir=$builds_dir_root/$pkg_name-$version |
|
|
14 |
|
build_dir=$builds_dir_root/$pkg_name |
14 |
15 |
rm -Rf $build_dir |
rm -Rf $build_dir |
15 |
16 |
mkdir -p $build_dir |
mkdir -p $build_dir |
16 |
17 |
cd $build_dir |
cd $build_dir |
17 |
18 |
|
|
18 |
|
OLD_PATH=$PATH |
|
19 |
|
export PATH=$cross_toolchain_dir_root/bin:$PATH |
|
20 |
|
|
|
21 |
19 |
export "PKG_CONFIG_LIBDIR=\ |
export "PKG_CONFIG_LIBDIR=\ |
22 |
20 |
/nyan/libxcb/current/lib/pkgconfig:\ |
/nyan/libxcb/current/lib/pkgconfig:\ |
23 |
21 |
/nyan/xtrans/current/share/pkgconfig:\ |
/nyan/xtrans/current/share/pkgconfig:\ |
|
... |
... |
export "PKG_CONFIG_LIBDIR=\ |
26 |
24 |
/nyan/libXau/current/lib/pkgconfig:\ |
/nyan/libXau/current/lib/pkgconfig:\ |
27 |
25 |
/nyan/xorgproto/current/share/pkgconfig" |
/nyan/xorgproto/current/share/pkgconfig" |
28 |
26 |
|
|
29 |
|
# the xlocale system is mandatory for the xresource manager... |
|
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 |
|
31 |
|
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
|
|
27 |
|
export "CC=gcc \ |
|
28 |
|
-isystem /nyan/glibc/current/include \ |
|
29 |
|
-isystem /nyan/linux-headers/current/include \ |
|
30 |
|
-B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
|
31 |
|
-Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
32 |
32 |
export 'CFLAGS=-O2 -pipe -fPIC' |
export 'CFLAGS=-O2 -pipe -fPIC' |
33 |
|
$src_dir/configure \ |
|
|
33 |
|
$pkg_dir/configure \ |
34 |
34 |
--prefix=/nyan/libX11/$slot \ |
--prefix=/nyan/libX11/$slot \ |
35 |
35 |
--enable-shared \ |
--enable-shared \ |
36 |
36 |
--disable-static \ |
--disable-static \ |
37 |
37 |
--disable-specs \ |
--disable-specs \ |
38 |
38 |
--disable-tcp-transport \ |
--disable-tcp-transport \ |
39 |
|
--disable-loadable-i18n \ |
|
40 |
|
--enable-loadable-xcursor \ |
|
41 |
|
--disable-xlocaledir \ |
|
42 |
39 |
--without-xmlto \ |
--without-xmlto \ |
43 |
40 |
--without-fop \ |
--without-fop \ |
44 |
41 |
--without-xsltproc \ |
--without-xsltproc \ |
45 |
42 |
--without-perl \ |
--without-perl \ |
46 |
|
--with-keysymdefdir=/nyan/xorgproto/current/include/X11 \ |
|
47 |
|
xorg_cv_malloc0_returns_null=no |
|
|
43 |
|
--with-keysymdefdir=/nyan/xorgproto/current/include/X11 |
48 |
44 |
unset CFLAGS |
unset CFLAGS |
49 |
45 |
unset CC |
unset CC |
50 |
46 |
|
|
|
... |
... |
make -j $threads_n |
52 |
48 |
make install |
make install |
53 |
49 |
|
|
54 |
50 |
# cleanup and tidying |
# cleanup and tidying |
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 |
|
|
51 |
|
rm -Rf /nyan/$src_name/$slot/share/doc |
|
52 |
|
rm -Rf /nyan/$src_name/$slot/share/man |
|
53 |
|
rm -f /nyan/$src_name/$slot/lib/*.la |
58 |
54 |
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 |
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 |
59 |
55 |
|
|
60 |
|
rm -Rf $build_dir $src_dir |
|
61 |
|
OLD_PATH=$PATH |
|
|
56 |
|
rm -Rf $build_dir $pkg_dir |