File builders/libX11-1.8.7/builder.sh added (mode: 100644) (index 0000000..c1c801e) |
|
1 |
|
src_name=libX11 |
|
2 |
|
version=${pkg_name##*-} |
|
3 |
|
slot=$version |
|
4 |
|
archive_name=$src_name-$version.tar.xz |
|
5 |
|
url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name |
|
6 |
|
|
|
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 |
|
12 |
|
tar xf $archive_name |
|
13 |
|
|
|
14 |
|
# install our build system |
|
15 |
|
cp -r $nyan_root/builders/$pkg_name/contrib $pkg_dir |
|
16 |
|
|
|
17 |
|
build_dir=$builds_dir_root/$pkg_name |
|
18 |
|
rm -Rf $build_dir |
|
19 |
|
mkdir -p $build_dir |
|
20 |
|
cd $build_dir |
|
21 |
|
|
|
22 |
|
cat >$build_dir/local_conf.sh <<EOF |
|
23 |
|
version=$version |
|
24 |
|
prefix=/usr |
|
25 |
|
pkgconf_inc_dir=/nyan/$src_name/$slot/include |
|
26 |
|
pkgconf_lib_dir=/nyan/$src_name/$slot/lib |
|
27 |
|
EOF |
|
28 |
|
|
|
29 |
|
$pkg_dir/contrib/binutils-gcc-glibc.sh |
|
30 |
|
|
|
31 |
|
# we did override the pkg-config file to put dev stuff here |
|
32 |
|
mkdir -p /nyan/$src_name/$slot/lib/pkgconfig |
|
33 |
|
cp -f $build_dir/fakeroot/usr/lib/libX11-xcb.so.1.0.0 $build_dir/fakeroot/usr/lib/libX11.so.6.4.0 /nyan/$src_name/$slot/lib |
|
34 |
|
ln -sTf libX11-xcb.so.1.0.0 /nyan/$src_name/$slot/lib/libX11-xcb.so |
|
35 |
|
ln -sTf libX11.so.6.4.0 /nyan/$src_name/$slot/lib/libX11.so |
|
36 |
|
cp -f $build_dir/fakeroot/usr/lib/pkgconfig/x11-xcb.pc $build_dir/fakeroot/usr/lib/pkgconfig/x11.pc /nyan/$src_name/$slot/lib/pkgconfig |
|
37 |
|
|
|
38 |
|
# include files |
|
39 |
|
rm -Rf /nyan/$src_name/$slot/include |
|
40 |
|
mkdir -p /nyan/$src_name/$slot |
|
41 |
|
cp -r $build_dir/fakeroot/usr/include /nyan/$src_name/$slot |
|
42 |
|
|
|
43 |
|
# we go for a mono block runtime, XXX:current not slot |
|
44 |
|
mkdir -p /usr/lib |
|
45 |
|
ln -sTf /nyan/$src_name/current/lib/libX11-xcb.so.1.0.0 /usr/lib/libX11-xcb.so.1 |
|
46 |
|
ln -sTf /nyan/$src_name/current/lib/libX11.so.6.4.0 /usr/lib/libX11.so.6 |
|
47 |
|
|
|
48 |
|
# xkb compose runtime data files, you can override this location with XLOCALEDIR environment variable |
|
49 |
|
# but invasive and trash software is unable to handle another location than /usr/share |
|
50 |
|
rm -Rf /nyan/$src_name/$slot/share/X11/locale |
|
51 |
|
mkdir -p /nyan/$src_name/$slot/share/X11 |
|
52 |
|
cp -r $build_dir/fakeroot/usr/share/X11/locale /nyan/$src_name/$slot/share/X11 |
|
53 |
|
mkdir -p /usr/share/X11 |
|
54 |
|
# XXX:current not slot |
|
55 |
|
ln -sTf /nyan/$src_name/current/share/X11/locale /usr/share/X11/locale |
|
56 |
|
|
|
57 |
|
rm -f $pkgs_dir_root/$archive_name |
|
58 |
|
rm -Rf $build_dir $pkg_dir |
File builders/libX11-1.8.7/contrib/binutils-gcc-glibc.sh copied from file builders/libX11-1.8.1/contrib/binutils-gcc-glibc.sh (similarity 98%) (mode: 100755) (index e3c2ffd..907a094) |
... |
... |
if test "${lib_dir-unset}" = unset; then |
47 |
47 |
lib_dir="$prefix/lib" |
lib_dir="$prefix/lib" |
48 |
48 |
fi |
fi |
49 |
49 |
#=================================================================================================== |
#=================================================================================================== |
|
50 |
|
if test "${pkgconf_inc_dir-unset}" = unset; then |
|
51 |
|
pkgconf_inc_dir="$inc_dir" |
|
52 |
|
fi |
|
53 |
|
#=================================================================================================== |
|
54 |
|
if test "${pkgconf_lib_dir-unset}" = unset; then |
|
55 |
|
pkgconf_lib_dir="$lib_dir" |
|
56 |
|
fi |
|
57 |
|
#=================================================================================================== |
50 |
58 |
if test "${xorgproto_inc_dir-unset}" = unset; then |
if test "${xorgproto_inc_dir-unset}" = unset; then |
51 |
59 |
xorgproto_inc_dir=/nyan/xorgproto/current/include |
xorgproto_inc_dir=/nyan/xorgproto/current/include |
52 |
60 |
fi |
fi |
|
... |
... |
if test "${cc-unset}" = unset; then |
68 |
76 |
cc="/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc -c \ |
cc="/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc -c \ |
69 |
77 |
-isystem /nyan/glibc/current/include \ |
-isystem /nyan/glibc/current/include \ |
70 |
78 |
-isystem /nyan/linux-headers/current/include \ |
-isystem /nyan/linux-headers/current/include \ |
71 |
|
-pipe -fPIC -O2 \ |
|
|
79 |
|
-pipe -fPIC -O2 -ftls-model=global-dynamic -fpic \ |
72 |
80 |
-static-libgcc" |
-static-libgcc" |
73 |
81 |
fi |
fi |
74 |
82 |
#=================================================================================================== |
#=================================================================================================== |
|
... |
... |
SED_CMD="\ |
1025 |
1033 |
sed -E \ |
sed -E \ |
1026 |
1034 |
-e \"s:@prefix@:$prefix:\" \ |
-e \"s:@prefix@:$prefix:\" \ |
1027 |
1035 |
-e \"s:@exec_prefix@:$prefix:\" \ |
-e \"s:@exec_prefix@:$prefix:\" \ |
1028 |
|
-e \"s:@libdir@:$lib_dir:\" \ |
|
1029 |
|
-e \"s:@includedir@:$inc_dir:\" \ |
|
|
1036 |
|
-e \"s:@libdir@:$pkgconf_lib_dir:\" \ |
|
1037 |
|
-e \"s:@includedir@:$pkgconf_inc_dir:\" \ |
1030 |
1038 |
-e \"s/@XTHREADLIB@/-lpthread/\" \ |
-e \"s/@XTHREADLIB@/-lpthread/\" \ |
1031 |
1039 |
-e \"s/@PACKAGE_VERSION@/$version/\" \ |
-e \"s/@PACKAGE_VERSION@/$version/\" \ |
1032 |
1040 |
-e \"s/@XKBPROTO_REQUIRES@/kbproto/\" \ |
-e \"s/@XKBPROTO_REQUIRES@/kbproto/\" \ |