sylware / nyanlinux (public) (License: AFFERO GPLv3) (since 2019-09-09) (hash sha1)
scripts for a lean, from scratch, amd hardware, linux distro
List of commits:
Subject Hash Author Date (UTC)
fontconfig update with new lean build system 0c6bc4799fea2a88efccc0f84ad6ff8805f88504 Sylvain BERTRAND 2019-12-12 23:08:17
gfx stack update b2f427e870c7d08306b85aa6554e2d0a537f626e Sylvain BERTRAND 2019-12-09 18:21:12
dosfstools for fat32 d6df64f27c7f25e8c36de1e8f6bb2d89c0605827 Sylvain BERTRAND 2019-12-09 11:27:51
gfx stack update 1745824d280d1a172f69f6e7141a34d83798c4ab Sylvain BERTRAND 2019-12-02 03:33:06
gfx stack update 53b14f9e2383f3c5b24ff5ba47a97295ad778389 Sylvain BERTRAND 2019-11-24 20:50:01
enable mplayer av1 decoding with ffmpeg c77b02db60e924fe8473827903712d6456d0e04b Sylvain BERTRAND 2019-11-19 23:31:12
remove old vulkan loader f6c3134c6c5603ef3c8ca628b0aae6cfe2aa806c Sylvain BERTRAND 2019-11-19 20:24:12
added ffmpeg av1 decoding using dav1d 656ff5ec5cd4f66ad3d26e81ca9fc62a4a24f056 Sylvain BERTRAND 2019-11-19 20:15:06
gfx stack update f504d662bcef4ea5ee49de01a312b2b6eead3a72 Sylvain BERTRAND 2019-11-18 15:56:11
significant gfx stack update 81b1641e4a68d13bdb3207958c1b61f5c9178110 Sylvain BERTRAND 2019-11-12 17:19:01
st with alpha 40c4dd0ba37efa471f371b5ebb2c700791cf2e41 Sylvain BERTRAND 2019-10-29 04:12:09
gfx stack update 2e34313ea063d321682a21a4d1b18b33fd1c08b2 Sylvain BERTRAND 2019-10-28 19:42:48
add a direct into steam startup 2f9f5cdf6cc52bd91252d3320e84a75b51e9ba29 Sylvain BERTRAND 2019-10-27 18:38:37
gfx stack update 7f8dbe3e5666565b1d7dbd593894440dce671843 Sylvain BERTRAND 2019-10-24 23:08:53
alsa 1.1.9 1962471fe6f6cbf49db17de01d37a0eb312c351a Sylvain BERTRAND 2019-10-16 19:48:29
gfx stack update (xserver broken) 24366ffbb58e6ab17e36fd7857d1740ea00e5c3f Sylvain BERTRAND 2019-10-14 22:57:04
gfx stack update 83dc9bfacd6249162046aadbc77c968955fa5036 Sylvain BERTRAND 2019-10-07 20:54:30
add x11 compositing 9308f9158cac1fef16bb64b105e7c9583a55b2b8 Sylvain BERTRAND 2019-10-02 20:48:29
gfx stack update 0fc55d155b358c036a3032d045c78e6f3adab111 Sylvain BERTRAND 2019-09-30 20:46:52
gfx stack update c8c3e4d0abe14e601250bccc72d0cd3423f16805 Sylvain BERTRAND 2019-09-25 21:05:20
Commit 0c6bc4799fea2a88efccc0f84ad6ff8805f88504 - fontconfig update with new lean build system
Author: Sylvain BERTRAND
Author date (UTC): 2019-12-12 23:08
Committer name: Sylvain BERTRAND
Committer date (UTC): 2019-12-12 23:08
Parent(s): b2f427e870c7d08306b85aa6554e2d0a537f626e
Signing key:
Tree: ddbe1f001349b5b914ee56cdf766ebc10bc1da8b
File Lines added Lines deleted
builders/fontconfig-1/builder.sh 41 0
builders/fontconfig-1/contrib/orth.sh 249 0
builders/fontconfig-1/contrib/x86_64-glibc-expat-gcc.sh 594 0
builders/st-0/config.h 1 1
builders/st-1/config.h 1 1
File builders/fontconfig-1/builder.sh added (mode: 100644) (index 0000000..800b08e)
1 src_name=fontconfig
2 git_commit=452be8125f0e2a18a7dfef469e05d19374d36307
3 git_url0=https://gitlab.freedesktop.org/$src_name/$src_name.git
4
5 slot=1
6
7 pkg_dir=$pkgs_dir_root/$src_name
8 src_dir=$src_dir_root/$src_name
9 rm -Rf $pkg_dir
10 mkdir -p $pkgs_dir_root
11 cp -r $src_dir $pkg_dir
12
13 cd $pkg_dir
14
15 git checkout --force $git_commit
16 git reset --hard
17
18 # install our canonical build system from the contrib dir
19 cp -rf $nyan_root/builders/$pkg_name/contrib $pkg_dir
20
21 build_dir=$builds_dir_root/$pkg_name
22 rm -Rf $build_dir
23 mkdir -p $build_dir
24 cd $build_dir
25
26 # create the build local configuration file
27 # the configuration can be augmented by fonts
28 # then must be shared
29 cat >$build_dir/local_conf.sh <<EOF
30 prefix=/nyan/fontconfig/$slot
31 default_fonts_dir=/share/fonts
32 EOF
33
34 $pkg_dir/contrib/x86_64-glibc-expat-gcc.sh
35
36 cp -rf $build_dir/fakeroot/* /
37
38 # cleanup and tidying
39 find /nyan/$src_name/$slot -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then strip -s $f; fi; done
40
41 rm -Rf $build_dir $pkg_dir
File builders/fontconfig-1/contrib/orth.sh added (mode: 100644) (index 0000000..0f9f7b3)
1 # ORDER DOES MATTER
2 ORTH="\
3 aa.orth \
4 ab.orth \
5 af.orth \
6 am.orth \
7 ar.orth \
8 as.orth \
9 ast.orth \
10 av.orth \
11 ay.orth \
12 az_az.orth \
13 az_ir.orth \
14 ba.orth \
15 bm.orth \
16 be.orth \
17 bg.orth \
18 bh.orth \
19 bho.orth \
20 bi.orth \
21 bin.orth \
22 bn.orth \
23 bo.orth \
24 br.orth \
25 bs.orth \
26 bua.orth \
27 ca.orth \
28 ce.orth \
29 ch.orth \
30 chm.orth \
31 chr.orth \
32 co.orth \
33 cs.orth \
34 cu.orth \
35 cv.orth \
36 cy.orth \
37 da.orth \
38 de.orth \
39 dz.orth \
40 el.orth \
41 en.orth \
42 eo.orth \
43 es.orth \
44 et.orth \
45 eu.orth \
46 fa.orth \
47 fi.orth \
48 fj.orth \
49 fo.orth \
50 fr.orth \
51 ff.orth \
52 fur.orth \
53 fy.orth \
54 ga.orth \
55 gd.orth \
56 gez.orth \
57 gl.orth \
58 gn.orth \
59 gu.orth \
60 gv.orth \
61 ha.orth \
62 haw.orth \
63 he.orth \
64 hi.orth \
65 ho.orth \
66 hr.orth \
67 hu.orth \
68 hy.orth \
69 ia.orth \
70 ig.orth \
71 id.orth \
72 ie.orth \
73 ik.orth \
74 io.orth \
75 is.orth \
76 it.orth \
77 iu.orth \
78 ja.orth \
79 ka.orth \
80 kaa.orth \
81 ki.orth \
82 kk.orth \
83 kl.orth \
84 km.orth \
85 kn.orth \
86 ko.orth \
87 kok.orth \
88 ks.orth \
89 ku_am.orth \
90 ku_ir.orth \
91 kum.orth \
92 kv.orth \
93 kw.orth \
94 ky.orth \
95 la.orth \
96 lb.orth \
97 lez.orth \
98 ln.orth \
99 lo.orth \
100 lt.orth \
101 lv.orth \
102 mg.orth \
103 mh.orth \
104 mi.orth \
105 mk.orth \
106 ml.orth \
107 mn_cn.orth \
108 mo.orth \
109 mr.orth \
110 mt.orth \
111 my.orth \
112 nb.orth \
113 nds.orth \
114 ne.orth \
115 nl.orth \
116 nn.orth \
117 no.orth \
118 nr.orth \
119 nso.orth \
120 ny.orth \
121 oc.orth \
122 om.orth \
123 or.orth \
124 os.orth \
125 pa.orth \
126 pl.orth \
127 ps_af.orth \
128 ps_pk.orth \
129 pt.orth \
130 rm.orth \
131 ro.orth \
132 ru.orth \
133 sa.orth \
134 sah.orth \
135 sco.orth \
136 se.orth \
137 sel.orth \
138 sh.orth \
139 shs.orth \
140 si.orth \
141 sk.orth \
142 sl.orth \
143 sm.orth \
144 sma.orth \
145 smj.orth \
146 smn.orth \
147 sms.orth \
148 so.orth \
149 sq.orth \
150 sr.orth \
151 ss.orth \
152 st.orth \
153 sv.orth \
154 sw.orth \
155 syr.orth \
156 ta.orth \
157 te.orth \
158 tg.orth \
159 th.orth \
160 ti_er.orth \
161 ti_et.orth \
162 tig.orth \
163 tk.orth \
164 tl.orth \
165 tn.orth \
166 to.orth \
167 tr.orth \
168 ts.orth \
169 tt.orth \
170 tw.orth \
171 tyv.orth \
172 ug.orth \
173 uk.orth \
174 ur.orth \
175 uz.orth \
176 ve.orth \
177 vi.orth \
178 vo.orth \
179 vot.orth \
180 wa.orth \
181 wen.orth \
182 wo.orth \
183 xh.orth \
184 yap.orth \
185 yi.orth \
186 yo.orth \
187 zh_cn.orth \
188 zh_hk.orth \
189 zh_mo.orth \
190 zh_sg.orth \
191 zh_tw.orth \
192 zu.orth \
193 ak.orth \
194 an.orth \
195 ber_dz.orth \
196 ber_ma.orth \
197 byn.orth \
198 crh.orth \
199 csb.orth \
200 dv.orth \
201 ee.orth \
202 fat.orth \
203 fil.orth \
204 hne.orth \
205 hsb.orth \
206 ht.orth \
207 hz.orth \
208 ii.orth \
209 jv.orth \
210 kab.orth \
211 kj.orth \
212 kr.orth \
213 ku_iq.orth \
214 ku_tr.orth \
215 kwm.orth \
216 lg.orth \
217 li.orth \
218 mai.orth \
219 mn_mn.orth \
220 ms.orth \
221 na.orth \
222 ng.orth \
223 nv.orth \
224 ota.orth \
225 pa_pk.orth \
226 pap_an.orth \
227 pap_aw.orth \
228 qu.orth \
229 quz.orth \
230 rn.orth \
231 rw.orth \
232 sc.orth \
233 sd.orth \
234 sg.orth \
235 sid.orth \
236 sn.orth \
237 su.orth \
238 ty.orth \
239 wal.orth \
240 za.orth \
241 lah.orth \
242 nqo.orth \
243 brx.orth \
244 sat.orth \
245 doi.orth \
246 mni.orth \
247 und_zsye.orth \
248 und_zmth.orth \
249 "
File builders/fontconfig-1/contrib/x86_64-glibc-expat-gcc.sh added (mode: 100755) (index 0000000..9fbf18f)
1 #/bin/sh
2
3 # Look for "unset", you'll find the values you can override in $1 or
4 # $build_dir/local_conf.sh file, that in order to tune the script for your
5 # specific distro/needs.
6
7
8 #===============================================================================
9 set -e
10 version=2.13.91
11 # current = 13
12 # revision = 0
13 # age = 12
14 soname=libfontconfig.so.1
15 lib_name=$soname.13.0
16 #===============================================================================
17
18
19 #===============================================================================
20 # build dir and src dir
21 build_dir=$(readlink -e .)
22 echo "build_dir=$build_dir"
23 # we are in contrib
24 src_dir=$(readlink -e $(dirname $0)/..)
25 echo "src_dir=$src_dir"
26 #===============================================================================
27
28
29 #===============================================================================
30 # the current configur-able variables may be individually overridden with the
31 # content of the file in $1 or $build_dir/local_conf.sh. Look for "unset"
32 # in those scripts to find what you can override to tune the build.
33 if test -f "$1"; then
34 . "$1"
35 else
36 if test -f $build_dir/local_conf.sh; then
37 . $build_dir/local_conf.sh
38 fi
39 fi
40 #===============================================================================
41
42
43 #===============================================================================
44 # expat (static)
45 if test "${expat_cppflags-unset}" = unset; then
46 expat_cppflags='-I/nyan/expat/current/include'
47 fi
48 if test "${expat_archives-unset}" = unset; then
49 expat_archives=libexpat.a
50 fi
51 if test "${expat_ldflags-unset}" = unset; then
52 expat_ldflags="/nyan/expat/current/lib/$expat_archives"
53 fi
54 #===============================================================================
55
56
57 #===============================================================================
58 # freetype (shared)
59 if test "${freetype_cppflags-unset}" = unset; then
60 freetype_cppflags="\
61 -I/nyan/freetype/current/include/freetype2 \
62 \
63 -DHAVE_FT_GET_X11_FONT_FORMAT \
64 -DHAVE_FT_GET_BDF_PROPERTY \
65 -DHAVE_FT_GET_PS_FONT_INFO \
66 -DHAVE_FT_DONE_MM_VAR \
67 "
68 fi
69 if test "${freetype_ldflags-unset}" = unset; then
70 freetype_ldflags="/nyan/freetype/current/lib/libfreetype.so"
71 fi
72 #===============================================================================
73
74
75 #===============================================================================
76 if test "${prefix-unset}" = unset; then
77 prefix=/usr
78 fi
79 exec_prefix=$prefix
80 echo prefix=$prefix
81 echo exec_prefix=$exec_prefix
82 #-------------------------------------------------------------------------------
83 if test "${bin_dir-unset}" = unset; then
84 bin_dir=$prefix/bin
85 fi
86 echo bin_dir=$bin_dir
87 #-------------------------------------------------------------------------------
88 if test "${lib_dir-unset}" = unset; then
89 lib_dir=$prefix/lib
90 fi
91 echo lib_dir=$lib_dir
92 #-------------------------------------------------------------------------------
93 if test "${include_dir-unset}" = unset; then
94 include_dir=$prefix/include
95 fi
96 echo include_dir=$include_dir
97 #-------------------------------------------------------------------------------
98 if test "${sysconf_dir-unset}" = unset; then
99 if test $prefix = /usr; then
100 sysconf_dir=/etc
101 else
102 sysconf_dir=$prefix/etc
103 fi
104 fi
105 echo sysconf_dir=$sysconf_dir
106 #-------------------------------------------------------------------------------
107 if test "${localstate_dir-unset}" = unset; then
108 if test $prefix = /usr; then
109 localstate_dir=/var
110 else
111 localstate_dir=$prefix/var
112 fi
113 fi
114 echo localstate_dir=$localstate_dir
115 #-------------------------------------------------------------------------------
116 if test "${default_fonts_dir-unset}" = unset; then
117 default_fonts_dir=$prefix/share/fonts
118 fi
119 echo default_fonts_dir=$default_fonts_dir
120 #-------------------------------------------------------------------------------
121 if test "${default_cache_dir-unset}" = unset; then
122 default_cache_dir=$localstate_dir/cache/fontconfig
123 fi
124 echo default_cache_dir=$default_cache_dir
125 #-------------------------------------------------------------------------------
126 if test "${template_dir-unset}" = unset; then
127 template_dir=$prefix/share/fontconfig/conf.avail
128 fi
129 echo template_dir=$template_dir
130 #-------------------------------------------------------------------------------
131 if test "${base_config_dir-unset}" = unset; then
132 base_config_dir=$sysconf_dir/fonts
133 fi
134 echo base_config_dir=$base_config_dir
135 #===============================================================================
136
137
138 #===============================================================================
139 # meh
140 mkdir -p $build_dir
141 echo '#include <stdint.h>' >$build_dir/fcstdint.h
142 #===============================================================================
143
144
145 #===============================================================================
146 /bin/sh $src_dir/src/makealias $src_dir/src $build_dir/fcalias.h $build_dir/fcaliastail.h \
147 $src_dir/fontconfig/fontconfig.h \
148 $src_dir/src/fcdeprecate.h \
149 $src_dir/fontconfig/fcprivate.h
150 #-------------------------------------------------------------------------------
151 /bin/sh $src_dir/src/makealias $src_dir/src $build_dir/fcftalias.h $build_dir/fcftaliastail.h \
152 $src_dir/fontconfig/fcfreetype.h
153 #===============================================================================
154
155
156 #===============================================================================
157 if test "${host_cc-unset}" = unset; then
158 host_cc="gcc -pipe -fPIC -O2 -c -static-libgcc \
159 -I/nyan/glibc/current/include-linux"
160 fi
161
162 if test "${host_ccld-unset}" = unset; then
163 host_ccld="gcc -pipe -fPIC -static-libgcc \
164 -B/nyan/glibc/current/lib"
165 fi
166
167 if test "${host_rpath_link-unset}" = unset; then
168 host_rpath_link="/nyan/glibc/current/lib:/nyan/freetype/current/lib"
169 fi
170 #===============================================================================
171
172
173 #===============================================================================
174 if test "${build_ccld-unset}" = unset; then
175 build_ccld="gcc -pipe -O2 -static-libgcc \
176 -I/nyan/glibc/current/include-linux \
177 -DFLEXIBLE_ARRAY_MEMBER \
178 -B/nyan/glibc/current/lib"
179 fi
180 #===============================================================================
181
182
183 #===============================================================================
184 if test "${cpp-unset}" = unset; then
185 cpp="cpp"
186 fi
187 #===============================================================================
188
189
190 #===============================================================================
191 if test "${gperf-unset}" = unset; then
192 gperf="/nyan/gperf/current/bin/gperf"
193 gperf_cppflags="\
194 -DFC_GPERF_SIZE_T=size_t \
195 "
196 fi
197 #===============================================================================
198
199
200 #===============================================================================
201 if test "${awk-unset}" = unset; then
202 awk="/nyan/gawk/current/bin/awk"
203 fi
204 #===============================================================================
205
206
207 #===============================================================================
208 # fccase.h generation
209 mkdir -p $build_dir/fc-case
210 #-------------------------------------------------------------------------------
211 echo "BUILD_CC fc-case.c"
212 $build_ccld -o $build_dir/fc-case/fc-case $src_dir/fc-case/fc-case.c \
213 -I$build_dir \
214 -I$src_dir/src \
215 -I$src_dir
216 #-------------------------------------------------------------------------------
217 echo "GEN fccase.h"
218 $build_dir/fc-case/fc-case $src_dir/fc-case/CaseFolding.txt \
219 <$src_dir/fc-case/fccase.tmpl.h \
220 >$build_dir/fc-case/fccase.h
221 #===============================================================================
222
223
224 #===============================================================================
225 # fclang.h generation
226 mkdir -p $build_dir/fc-lang
227 #-------------------------------------------------------------------------------
228 # meh...
229 mkdir -p $build_dir/src
230 OLD_PWD=$PWD
231 cd $build_dir/src
232
233 echo "BUILD_CC fc-lang.c"
234 $build_ccld -o $build_dir/fc-lang/fc-lang $src_dir/fc-lang/fc-lang.c \
235 -I$build_dir \
236 -I$src_dir/src \
237 -I$src_dir \
238 -I.
239
240 cd $OLD_PWD
241 #-------------------------------------------------------------------------------
242 . $src_dir/contrib/orth.sh
243
244 echo "GEN fclang.h"
245 $build_dir/fc-lang/fc-lang -d $src_dir/fc-lang $ORTH \
246 <$src_dir/fc-lang/fclang.tmpl.h \
247 >$build_dir/fc-lang/fclang.h
248 #===============================================================================
249
250
251 #===============================================================================
252 # fcobjshash.h generation (should code one a cheap one, not expansive like this
253 # one
254 echo "GEN fcobjshash.h"
255 $cpp -I$src_dir -I$src_dir/src <$src_dir/src/fcobjshash.gperf.h \
256 | sed 's/^ *//;s/ *, */,/' \
257 | $awk ' \
258 /CUT_OUT_BEGIN/ { no_write=1; next; }; \
259 /CUT_OUT_END/ { no_write=0; next; }; \
260 /^$/||/^#/ { next; }; \
261 { if (!no_write) print; next; }; \
262 ' - >$build_dir/fcobjshash.gperf
263 $gperf --pic -m 100 $build_dir/fcobjshash.gperf >$build_dir/fcobjshash.h
264 #===============================================================================
265
266
267 #===============================================================================
268 # fontconfig.map generation
269 echo "GEN fontconfig.map"
270 echo '{ global:' >$build_dir/fontconfig.map
271 cat $src_dir/fontconfig/fontconfig.h \
272 $src_dir/src/fcdeprecate.h \
273 $src_dir/fontconfig/fcprivate.h \
274 $src_dir/fontconfig/fcfreetype.h \
275 | grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$/;/' -e 's/^/ /' | sort \
276 >>$build_dir/fontconfig.map
277 echo ' local: *; };' >>$build_dir/fontconfig.map
278 #===============================================================================
279
280
281 #===============================================================================
282 glibc_cppflags="\
283 -D_GNU_SOURCE \
284 -DHAVE_SYS_VFS_H \
285 -DHAVE_SYS_STATVFS_H \
286 -DHAVE_SYS_STATFS_H \
287 -DHAVE_SYS_PARAM_H \
288 -DHAVE_SYS_MOUNT_H \
289 -DHAVE_SYS_TYPES_H \
290 -DHAVE_SCHED_H \
291 -DHAVE_FCNTL_H \
292 -DHAVE_UNISTD_H \
293 \
294 -DHAVE_STRERROR_R \
295 -DHAVE_LINK \
296 -DHAVE_MMAP \
297 -DHAVE_POSIX_FADVISE -DPOSIX_FADV_WILLNEED \
298 -DHAVE_MKOSTEMP \
299 -DHAVE_MKSTEMP \
300 -DHAVE_RANDOM_R \
301 -DHAVE_READLINK \
302 -DHAVE_LSTAT \
303 -DHAVE_SCHED_YIELD \
304 \
305 -DHAVE_STRUCT_STATFS_F_FLAGS \
306 -DHAVE_STRUCT_DIRENT_D_TYPE \
307 -DHAVE_STRUCT_STAT_ST_MTIM \
308 \
309 -DUSE_ICONV \
310 -DHAVE_PTHREAD \
311 "
312
313 gcc_cppflags="\
314 -DPIC \
315 -DHAVE_INTEL_ATOMIC_PRIMITIVES \
316 -DFLEXIBLE_ARRAY_MEMBER \
317 -DSIZEOF_VOID_P=8 \
318 -DALIGNOF_VOID_P=8 \
319 "
320
321 fontconfig_cppflags="\
322 -DFC_DEFAULT_FONTS=\"$default_fonts_dir\" \
323 -DFC_CACHEDIR=\"$default_cache_dir\" \
324 -DFC_TEMPLATEDIR=\"$template_dir\" \
325 -DFONTCONFIG_PATH=\"$base_config_dir\" \
326 "
327
328 cppflags="\
329 $glibc_cppflags \
330 $freetype_cppflags \
331 $gcc_cppflags \
332 $fontconfig_cppflags \
333 \
334 $gperf_cppflags \
335 \
336 $expat_cppflags \
337 $freetype_cppflags \
338 "
339 #===============================================================================
340
341
342 #===============================================================================
343 libfontconfig_c_files="\
344 $src_dir/src/fcatomic.c \
345 $src_dir/src/fccache.c \
346 $src_dir/src/fccfg.c \
347 $src_dir/src/fccharset.c \
348 $src_dir/src/fccompat.c \
349 $src_dir/src/fcdbg.c \
350 $src_dir/src/fcdefault.c \
351 $src_dir/src/fcdir.c \
352 $src_dir/src/fcformat.c \
353 $src_dir/src/fcfreetype.c \
354 $src_dir/src/fcfs.c \
355 $src_dir/src/fcptrlist.c \
356 $src_dir/src/fchash.c \
357 $src_dir/src/fcinit.c \
358 $src_dir/src/fclang.c \
359 $src_dir/src/fclist.c \
360 $src_dir/src/fcmatch.c \
361 $src_dir/src/fcmatrix.c \
362 $src_dir/src/fcname.c \
363 $src_dir/src/fcobjs.c \
364 $src_dir/src/fcpat.c \
365 $src_dir/src/fcrange.c \
366 $src_dir/src/fcserialize.c \
367 $src_dir/src/fcstat.c \
368 $src_dir/src/fcstr.c \
369 $src_dir/src/fcweight.c \
370 $src_dir/src/fcxml.c \
371 $src_dir/src/ftglue.c \
372 "
373
374 # meh...
375 mkdir -p $build_dir/src
376 OLD_PWD=$PWD
377 cd $build_dir/src
378
379 for f in $libfontconfig_c_files
380 do
381 libfontconfig_c_obj=$build_dir/$(basename $f .c).o
382 libfontconfig_c_objs="$libfontconfig_c_obj $libfontconfig_c_objs"
383
384 echo "CC $f"
385 $host_cc $cppflags $f -o $libfontconfig_c_obj \
386 -I$build_dir \
387 -I$src_dir/src \
388 -I$src_dir \
389 -I. &
390 done
391
392 cd $OLD_PWD
393 #===============================================================================
394
395
396 #===============================================================================
397 wait
398
399 echo "CCLD $lib_name"
400 mkdir -p $build_dir/fakeroot$lib_dir
401
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 \
405 -Wl,-rpath-link,$host_rpath_link \
406 -Wl,--no-undefined,--gc-sections,--version-script=$build_dir/fontconfig.map \
407 $libfontconfig_c_objs \
408 $expat_ldflags \
409 -Wl,--as-needed \
410 $freetype_ldflags \
411 -lpthread \
412 -Wl,--no-as-needed
413
414 ln -sTf $lib_name $build_dir/fakeroot$lib_dir/$soname
415 ln -sTf $soname $build_dir/fakeroot$lib_dir/libfontconfig.so
416 #===============================================================================
417
418
419 #===============================================================================
420 mkdir -p $build_dir/fakeroot$bin_dir
421
422 tools="\
423 cache \
424 cat \
425 conflist \
426 list \
427 match \
428 pattern \
429 query \
430 scan \
431 validate"
432
433 for t in $tools
434 do
435 (echo "CC $t";
436 $host_cc $src_dir/fc-$t/fc-$t.c -o $build_dir/fc-$t.o \
437 -DHAVE_GETOPT=1 -DHAVE_GETOPT_LONG=1 \
438 $cppflags \
439 -I$build_dir \
440 -I$src_dir;
441
442 echo "CCLD $t";
443 $host_ccld -o $build_dir/fakeroot$bin_dir/fc-$t \
444 $build_dir/fakeroot$lib_dir/$soname \
445 fc-$t.o \
446 -Wl,-rpath-link,$host_rpath_link \
447 -Wl,--as-needed \
448 $freetype_ldflags \
449 -lpthread \
450 -Wl,--no-as-needed;) &
451 done
452 #===============================================================================
453
454
455 #===============================================================================
456 echo "generate 35-lang-normalize.conf"
457
458 echo "<fontconfig>" >$build_dir/35-lang-normalize.conf
459 for i in $(echo $ORTH | sed -e 's/ /\n/g' | grep -v _ | sed -e 's/\.orth$//g' | sort)
460 do
461 echo " <!-- $i* -> $i -->" >>$build_dir/35-lang-normalize.conf
462 echo " <match>" >>$build_dir/35-lang-normalize.conf
463 echo " <test name=\"lang\" compare=\"contains\"><string>$i</string></test>" >>$build_dir/35-lang-normalize.conf
464 echo " <edit name=\"lang\" mode=\"assign\" binding=\"same\"><string>$i</string></edit>" >>$build_dir/35-lang-normalize.conf
465 echo " </match>" >>$build_dir/35-lang-normalize.conf
466 done
467 echo "</fontconfig>" >>$build_dir/35-lang-normalize.conf
468 #===============================================================================
469
470
471 #===============================================================================
472 echo "installing xml configuration files in fakeroot"
473 mkdir -p $build_dir/fakeroot$template_dir
474
475 cp -f \
476 $src_dir/conf.d/05-reset-dirs-sample.conf \
477 $src_dir/conf.d/09-autohint-if-no-hinting.conf \
478 $src_dir/conf.d/10-autohint.conf \
479 $src_dir/conf.d/10-hinting-full.conf \
480 $src_dir/conf.d/10-hinting-medium.conf \
481 $src_dir/conf.d/10-hinting-none.conf \
482 $src_dir/conf.d/10-hinting-slight.conf \
483 $src_dir/conf.d/10-no-sub-pixel.conf \
484 $src_dir/conf.d/10-scale-bitmap-fonts.conf \
485 $src_dir/conf.d/10-sub-pixel-bgr.conf \
486 $src_dir/conf.d/10-sub-pixel-rgb.conf \
487 $src_dir/conf.d/10-sub-pixel-vbgr.conf \
488 $src_dir/conf.d/10-sub-pixel-vrgb.conf \
489 $src_dir/conf.d/10-unhinted.conf \
490 $src_dir/conf.d/11-lcdfilter-default.conf \
491 $src_dir/conf.d/11-lcdfilter-legacy.conf \
492 $src_dir/conf.d/11-lcdfilter-light.conf \
493 $src_dir/conf.d/20-unhint-small-vera.conf \
494 $src_dir/conf.d/25-unhint-nonlatin.conf \
495 $src_dir/conf.d/30-metric-aliases.conf \
496 $build_dir/35-lang-normalize.conf \
497 $src_dir/conf.d/40-nonlatin.conf \
498 $src_dir/conf.d/45-generic.conf \
499 $src_dir/conf.d/45-latin.conf \
500 $src_dir/conf.d/49-sansserif.conf \
501 $src_dir/conf.d/50-user.conf \
502 $src_dir/conf.d/51-local.conf \
503 $src_dir/conf.d/60-generic.conf \
504 $src_dir/conf.d/60-latin.conf \
505 $src_dir/conf.d/65-fonts-persian.conf \
506 $src_dir/conf.d/65-khmer.conf \
507 $src_dir/conf.d/65-nonlatin.conf \
508 $src_dir/conf.d/69-unifont.conf \
509 $src_dir/conf.d/70-no-bitmaps.conf \
510 $src_dir/conf.d/70-yes-bitmaps.conf \
511 $src_dir/conf.d/80-delicious.conf \
512 $src_dir/conf.d/90-synthetic.conf \
513 $build_dir/fakeroot$template_dir
514
515 default_links="\
516 10-hinting-full.conf \
517 10-scale-bitmap-fonts.conf \
518 20-unhint-small-vera.conf \
519 30-metric-aliases.conf \
520 40-nonlatin.conf \
521 45-generic.conf \
522 45-latin.conf \
523 49-sansserif.conf \
524 50-user.conf \
525 51-local.conf \
526 60-generic.conf \
527 60-latin.conf \
528 65-fonts-persian.conf \
529 65-nonlatin.conf \
530 69-unifont.conf \
531 80-delicious.conf \
532 90-synthetic.conf"
533
534 mkdir -p $build_dir/fakeroot$base_config_dir/conf.d
535 for l in $default_links
536 do
537 ln -sTf $template_dir/$l $build_dir/fakeroot$base_config_dir/conf.d/$l &
538 done
539 #===============================================================================
540
541
542 #===============================================================================
543 echo "generate fonts.conf"
544 mkdir -p $build_dir/fakeroot$base_config_dir
545
546 sed \
547 -e "s:@FC_CACHEDIR@:$default_cache_dir:g" \
548 -e "s:@FC_DEFAULT_FONTS@:$default_fonts_dir:g" \
549 -e "s:@FC_FONTPATH@::g" \
550 -e "s:@CONFIGDIR@:conf.d:g" \
551 -e "s:@PACKAGE@:fontconfig:g" \
552 -e "s:@VERSION@:$version:g" \
553 $src_dir/fonts.conf.in >$build_dir/fakeroot$base_config_dir/fonts.conf &
554 #===============================================================================
555
556
557 #===============================================================================
558 echo "include files"
559 mkdir -p $build_dir/fakeroot$include_dir/fontconfig
560
561 cp -f \
562 $src_dir/fontconfig/fcfreetype.h \
563 $src_dir/fontconfig/fcprivate.h \
564 $src_dir/fontconfig/fontconfig.h \
565 $build_dir/fakeroot$include_dir/fontconfig &
566 #===============================================================================
567
568
569 #===============================================================================
570 echo "generate fontconfig.pc (the pkgconfig file)"
571 mkdir -p $build_dir/fakeroot$lib_dir/pkgconfig
572
573 pc=$build_dir/fakeroot$lib_dir/pkgconfig/fontconfig.pc
574 cp -f $src_dir/fontconfig.pc.in $pc
575 # we presume expat and freetype are using pkgconfig
576 sed \
577 -e "s:@prefix@:$prefix:g" \
578 -e "s:@exec_prefix@:$exec_prefix:g" \
579 -e "s:@libdir@:$lib_dir:g" \
580 -e "s:@includedir@:$include_dir:g" \
581 -e "s:@sysconfdir@:$sysconf_dir:g" \
582 -e "s:@localstatedir@:$localstate_dir:g" \
583 -e "s:@PACKAGE@:fontconfig:g" \
584 -e "s:@BASECONFIGDIR@:$base_config_dir:g" \
585 -e "s:@fc_cachedir@:$default_cache_dir:g" \
586 -e "s:@VERSION@:$version:g" \
587 -e "s:@PKGCONFIG_REQUIRES@:freetype2:g" \
588 -e "s:@PKGCONFIG_REQUIRES_PRIVATELY@:expat:g" \
589 -e '/^Libs\.private/ d' \
590 -e "s:@ICONV_CFLAGS@::g" \
591 -e "s:@PKG_EXPAT_CFLAGS@::g" \
592 -i $pc &
593 #===============================================================================
594 wait
File builders/st-0/config.h changed (mode: 100644) (index 64b943d..5dbad7e)
5 5 * *
6 6 * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
7 7 */ */
8 static char *font = "mono:pixelsize=12:antialias=true:autohint=false";
8 static char *font = "dejavu sans mono:antialias=true:autohint=false";
9 9 static int borderpx = 0; static int borderpx = 0;
10 10
11 11 /* /*
File builders/st-1/config.h changed (mode: 100644) (index a30d42b..ca68881)
5 5 * *
6 6 * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
7 7 */ */
8 static char *font = "mono:pixelsize=12:antialias=true:autohint=false";
8 static char *font = "dejavu sans mono:antialias=true:autohint=false";
9 9 static int borderpx = 0; static int borderpx = 0;
10 10
11 11 /* /*
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyanlinux

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyanlinux

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyanlinux

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main