File builders/fontconfig-452be8125f0e2a18a7dfef469e05d19374d36307/builder.sh added (mode: 100644) (index 0000000..9069740) |
|
1 |
|
src_name=fontconfig |
|
2 |
|
git_commit=${pkg_name##*-} |
|
3 |
|
slot=$git_commit |
|
4 |
|
git_url0=https://gitlab.freedesktop.org/$src_name/$src_name.git |
|
5 |
|
|
|
6 |
|
pkg_dir=$pkgs_dir_root/$src_name |
|
7 |
|
src_dir=$src_dir_root/$src_name |
|
8 |
|
rm -Rf $pkg_dir |
|
9 |
|
mkdir -p $pkgs_dir_root |
|
10 |
|
cp -r $src_dir $pkg_dir |
|
11 |
|
|
|
12 |
|
|
|
13 |
|
PATH_SAVED=$PATH |
|
14 |
|
export PATH="\ |
|
15 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\ |
|
16 |
|
/nyan/make/current/bin:\ |
|
17 |
|
/nyan/git/current/bin:\ |
|
18 |
|
$PATH\ |
|
19 |
|
" |
|
20 |
|
target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)") |
|
21 |
|
target_gnu_triple=${target_gnu_triple%-gcc} |
|
22 |
|
|
|
23 |
|
if test x$git_commit != x; then |
|
24 |
|
git checkout --force $git_commit |
|
25 |
|
git reset --hard |
|
26 |
|
fi |
|
27 |
|
|
|
28 |
|
cd $pkg_dir |
|
29 |
|
|
|
30 |
|
# install our canonical build system from the contrib dir |
|
31 |
|
cp -rf $nyan_root/builders/$pkg_name/contrib $pkg_dir |
|
32 |
|
|
|
33 |
|
build_dir=$builds_dir_root/$pkg_name |
|
34 |
|
rm -Rf $build_dir |
|
35 |
|
mkdir -p $build_dir |
|
36 |
|
cd $build_dir |
|
37 |
|
|
|
38 |
|
# create the build local configuration file |
|
39 |
|
# the configuration can be augmented by fonts |
|
40 |
|
# then must be shared |
|
41 |
|
cat >$build_dir/local_conf.sh <<EOF |
|
42 |
|
prefix=/nyan/fontconfig/$slot |
|
43 |
|
default_fonts_dir=/share/fonts |
|
44 |
|
|
|
45 |
|
expat_cppflags=-I/nyan/expat/current/include |
|
46 |
|
expat_archives=libexpat.a |
|
47 |
|
expat_ldflags=/nyan/expat/current/lib/libexpat.a |
|
48 |
|
|
|
49 |
|
freetype_cppflags="\ |
|
50 |
|
-I/nyan/freetype/current/include/freetype2 \ |
|
51 |
|
\ |
|
52 |
|
-DHAVE_FT_GET_X11_FONT_FORMAT \ |
|
53 |
|
-DHAVE_FT_GET_BDF_PROPERTY \ |
|
54 |
|
-DHAVE_FT_GET_PS_FONT_INFO \ |
|
55 |
|
-DHAVE_FT_DONE_MM_VAR \ |
|
56 |
|
" |
|
57 |
|
freetype_ldflags=/nyan/freetype/current/lib/libfreetype.so |
|
58 |
|
|
|
59 |
|
host_cc="$target_gnu_triple-gcc -pipe -fPIC -O2 -c -static-libgcc \ |
|
60 |
|
-isystem /nyan/glibc/current/include \ |
|
61 |
|
-isystem /nyan/linux-headers/current/include" |
|
62 |
|
|
|
63 |
|
host_ccld="$target_gnu_triple-gcc -pipe -fPIC -static-libgcc \ |
|
64 |
|
-B/nyan/glibc/current/lib -Wl,-s" |
|
65 |
|
host_rpath_link=/nyan/glibc/current/lib:/nyan/freetype/current/lib |
|
66 |
|
|
|
67 |
|
build_ccld="$target_gnu_triple-gcc -pipe -O2 -static-libgcc \ |
|
68 |
|
-isystem /nyan/glibc/current/include \ |
|
69 |
|
-isystem /nyan/linux-headers/current/include \ |
|
70 |
|
-B/nyan/glibc/current/lib \ |
|
71 |
|
-DFLEXIBLE_ARRAY_MEMBER" |
|
72 |
|
|
|
73 |
|
cpp="$target_gnu_triple-gcc -E \ |
|
74 |
|
-isystem /nyan/glibc/current/include \ |
|
75 |
|
-isystem /nyan/linux-headers/current/include" |
|
76 |
|
|
|
77 |
|
gperf="/nyan/gperf/current/bin/gperf" |
|
78 |
|
gperf_cppflags="\ |
|
79 |
|
-DFC_GPERF_SIZE_T=size_t \ |
|
80 |
|
" |
|
81 |
|
|
|
82 |
|
awk=/nyan/busybox/current/bin/awk |
|
83 |
|
EOF |
|
84 |
|
|
|
85 |
|
$pkg_dir/contrib/x86_64-glibc-expat-gcc.sh |
|
86 |
|
|
|
87 |
|
cp -rf $build_dir/fakeroot/* / |
|
88 |
|
|
|
89 |
|
export PATH=$PATH_SAVED |
|
90 |
|
unset PATH_SAVED |
|
91 |
|
unset target_gnu_triple |
|
92 |
|
rm -Rf $build_dir $pkg_dir |
File builders/fontconfig-452be8125f0e2a18a7dfef469e05d19374d36307/contrib/x86_64-glibc-expat-gcc.sh copied from file builders/fontconfig-1/contrib/x86_64-glibc-expat-gcc.sh (similarity 96%) (mode: 100755) (index 457200f..9adbec8) |
6 |
6 |
|
|
7 |
7 |
|
|
8 |
8 |
#=============================================================================== |
#=============================================================================== |
9 |
|
set -e |
|
10 |
9 |
version=2.13.91 |
version=2.13.91 |
11 |
10 |
# current = 13 |
# current = 13 |
12 |
11 |
# revision = 0 |
# revision = 0 |
|
... |
... |
echo '#include <stdint.h>' >$build_dir/fcstdint.h |
155 |
154 |
|
|
156 |
155 |
#=============================================================================== |
#=============================================================================== |
157 |
156 |
if test "${host_cc-unset}" = unset; then |
if test "${host_cc-unset}" = unset; then |
158 |
|
host_cc="gcc -pipe -fPIC -O2 -c -static-libgcc \ |
|
159 |
|
-I/nyan/glibc/current/include-linux" |
|
|
157 |
|
host_cc="gcc -pipe -fPIC -O2 -c -static-libgcc" |
160 |
158 |
fi |
fi |
161 |
159 |
|
|
162 |
160 |
if test "${host_ccld-unset}" = unset; then |
if test "${host_ccld-unset}" = unset; then |
163 |
|
host_ccld="gcc -pipe -fPIC -static-libgcc \ |
|
164 |
|
-B/nyan/glibc/current/lib" |
|
|
161 |
|
host_ccld="gcc -pipe -fPIC -static-libgcc" |
165 |
162 |
fi |
fi |
166 |
163 |
|
|
167 |
164 |
if test "${host_rpath_link-unset}" = unset; then |
if test "${host_rpath_link-unset}" = unset; then |
|
... |
... |
fi |
173 |
170 |
#=============================================================================== |
#=============================================================================== |
174 |
171 |
if test "${build_ccld-unset}" = unset; then |
if test "${build_ccld-unset}" = unset; then |
175 |
172 |
build_ccld="gcc -pipe -O2 -static-libgcc \ |
build_ccld="gcc -pipe -O2 -static-libgcc \ |
176 |
|
-I/nyan/glibc/current/include-linux \ |
|
177 |
|
-DFLEXIBLE_ARRAY_MEMBER \ |
|
178 |
|
-B/nyan/glibc/current/lib" |
|
|
173 |
|
-DFLEXIBLE_ARRAY_MEMBER" |
179 |
174 |
fi |
fi |
180 |
175 |
#=============================================================================== |
#=============================================================================== |
181 |
176 |
|
|
|
... |
... |
fi |
199 |
194 |
|
|
200 |
195 |
#=============================================================================== |
#=============================================================================== |
201 |
196 |
if test "${awk-unset}" = unset; then |
if test "${awk-unset}" = unset; then |
202 |
|
awk="/nyan/gawk/current/bin/awk" |
|
|
197 |
|
awk="/nyan/busybox/current/bin/awk" |
203 |
198 |
fi |
fi |
204 |
199 |
#=============================================================================== |
#=============================================================================== |
205 |
200 |
|
|
|
... |
... |
$build_dir/fc-lang/fc-lang -d $src_dir/fc-lang $ORTH \ |
249 |
244 |
|
|
250 |
245 |
|
|
251 |
246 |
#=============================================================================== |
#=============================================================================== |
252 |
|
# fcobjshash.h generation (should code one a cheap one, not expansive like this |
|
253 |
|
# one |
|
254 |
247 |
echo "GEN fcobjshash.h" |
echo "GEN fcobjshash.h" |
255 |
|
$cpp -I$src_dir -I$src_dir/src <$src_dir/src/fcobjshash.gperf.h \ |
|
|
248 |
|
$cpp -I$src_dir -I$src_dir/src - <$src_dir/src/fcobjshash.gperf.h \ |
256 |
249 |
| sed 's/^ *//;s/ *, */,/' \ |
| sed 's/^ *//;s/ *, */,/' \ |
257 |
250 |
| $awk ' \ |
| $awk ' \ |
258 |
251 |
/CUT_OUT_BEGIN/ { no_write=1; next; }; \ |
/CUT_OUT_BEGIN/ { no_write=1; next; }; \ |
|
... |
... |
$cpp -I$src_dir -I$src_dir/src <$src_dir/src/fcobjshash.gperf.h \ |
260 |
253 |
/^$/||/^#/ { next; }; \ |
/^$/||/^#/ { next; }; \ |
261 |
254 |
{ if (!no_write) print; next; }; \ |
{ if (!no_write) print; next; }; \ |
262 |
255 |
' - >$build_dir/fcobjshash.gperf |
' - >$build_dir/fcobjshash.gperf |
263 |
|
$gperf --pic -m 100 $build_dir/fcobjshash.gperf >$build_dir/fcobjshash.h |
|
|
256 |
|
$gperf -d --pic -m 100 $build_dir/fcobjshash.gperf >$build_dir/fcobjshash.h 2>/run/e |
264 |
257 |
#=============================================================================== |
#=============================================================================== |
265 |
258 |
|
|
266 |
259 |
|
|
|
... |
... |
wait |
399 |
392 |
echo "CCLD $lib_name" |
echo "CCLD $lib_name" |
400 |
393 |
mkdir -p $build_dir/fakeroot$lib_dir |
mkdir -p $build_dir/fakeroot$lib_dir |
401 |
394 |
|
|
402 |
|
gcc -o $build_dir/fakeroot$lib_dir/$lib_name -Wl,-soname=$soname \ |
|
403 |
|
-shared -static-libgcc \ |
|
404 |
|
-B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \ |
|
|
395 |
|
$host_ccld -o $build_dir/fakeroot$lib_dir/$lib_name -Wl,-soname=$soname \ |
|
396 |
|
-shared \ |
405 |
397 |
-Wl,-rpath-link,$host_rpath_link \ |
-Wl,-rpath-link,$host_rpath_link \ |
406 |
398 |
-Wl,--no-undefined,--gc-sections,--version-script=$build_dir/fontconfig.map \ |
-Wl,--no-undefined,--gc-sections,--version-script=$build_dir/fontconfig.map \ |
407 |
399 |
$libfontconfig_c_objs \ |
$libfontconfig_c_objs \ |