File builders/links-1/builder.sh changed (mode: 100644) (index d87f944..2672983) |
1 |
1 |
src_name=links |
src_name=links |
2 |
|
version=2.17 |
|
|
2 |
|
version=2.21 |
3 |
3 |
archive_name=$src_name-$version.tar.bz2 |
archive_name=$src_name-$version.tar.bz2 |
4 |
4 |
url0=http://links.twibright.com/download/$src_name-$version.tar.bz2 |
url0=http://links.twibright.com/download/$src_name-$version.tar.bz2 |
5 |
5 |
|
|
|
6 |
|
slot=1 |
|
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 |
|
... |
... |
rm -Rf $build_dir |
13 |
15 |
mkdir -p $build_dir |
mkdir -p $build_dir |
14 |
16 |
cd $build_dir |
cd $build_dir |
15 |
17 |
|
|
16 |
|
# use openssl/libressl :( |
|
17 |
|
|
|
18 |
18 |
export "PKG_CONFIG_LIBDIR=\ |
export "PKG_CONFIG_LIBDIR=\ |
|
19 |
|
/nyan/expat/current/lib/pkgconfig:\ |
|
20 |
|
/nyan/nyanuuid/current/lib/pkgconfig:\ |
|
21 |
|
/nyan/fontconfig/current/lib/pkgconfig:\ |
|
22 |
|
/nyan/freetype/current/lib/pkgconfig:\ |
19 |
23 |
/nyan/libSM/current/lib/pkgconfig:\ |
/nyan/libSM/current/lib/pkgconfig:\ |
20 |
24 |
/nyan/libICE/current/lib/pkgconfig:\ |
/nyan/libICE/current/lib/pkgconfig:\ |
21 |
25 |
/nyan/libXt/current/lib/pkgconfig:\ |
/nyan/libXt/current/lib/pkgconfig:\ |
|
... |
... |
$(pkg-config --cflags-only-I x11 xt) \ |
35 |
39 |
-I/nyan/libressl/current/include" |
-I/nyan/libressl/current/include" |
36 |
40 |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -static-libgcc \ |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -static-libgcc \ |
37 |
41 |
-Wl,-rpath-link,\ |
-Wl,-rpath-link,\ |
|
42 |
|
/nyan/freetype/current/lib:\ |
|
43 |
|
/nyan/fontconfig/current/lib:\ |
38 |
44 |
/nyan/libICE/current/lib:\ |
/nyan/libICE/current/lib:\ |
39 |
45 |
/nyan/libSM/current/lib:\ |
/nyan/libSM/current/lib:\ |
40 |
46 |
/nyan/libXau/current/lib:\ |
/nyan/libXau/current/lib:\ |
|
... |
... |
$(pkg-config --libs-only-L x11 xau xcb xdmcp xt) \ |
50 |
56 |
-L/nyan/libevent/current/lib \ |
-L/nyan/libevent/current/lib \ |
51 |
57 |
-L/nyan/libressl/current/lib" |
-L/nyan/libressl/current/lib" |
52 |
58 |
export "LIBS=-lpthread" |
export "LIBS=-lpthread" |
53 |
|
$src_dir/configure \ |
|
54 |
|
--prefix=/nyan/links/1 \ |
|
|
59 |
|
$src_dir/configure \ |
|
60 |
|
--prefix=/nyan/links/$slot \ |
55 |
61 |
--enable-graphics |
--enable-graphics |
56 |
62 |
unset LIBS |
unset LIBS |
57 |
63 |
unset LDFLAGS |
unset LDFLAGS |
58 |
64 |
unset CFLAGS |
unset CFLAGS |
59 |
65 |
unset CC |
unset CC |
60 |
66 |
unset CPPFLAGS |
unset CPPFLAGS |
61 |
|
unset PKG_CONFIG_LIBDIR |
|
|
67 |
|
unset PKG_CONFIG_PATH |
62 |
68 |
|
|
63 |
69 |
make -j $threads_n |
make -j $threads_n |
64 |
70 |
make install |
make install |
65 |
71 |
|
|
66 |
72 |
# cleanup and tidying |
# cleanup and tidying |
67 |
|
rm -Rf /nyan/$src_name/1/man |
|
68 |
|
strip -s /nyan/$src_name/1/bin/$src_name |
|
|
73 |
|
rm -Rf /nyan/$src_name/$slot/man |
|
74 |
|
strip -s /nyan/$src_name/$slot/bin/$src_name |
69 |
75 |
|
|
70 |
76 |
rm -Rf $build_dir $src_dir |
rm -Rf $build_dir $src_dir |