1cflags{
2 '-std=c99', '-Wall', '-Wpedantic',
3 '-D FT2_BUILD_LIBRARY',
4 '-D FT_CONFIG_OPTION_SYSTEM_ZLIB',
5 '-D HAVE_FCNTL_H',
6 '-D HAVE_UNISTD_H',
7 '-I $srcdir/builds/unix',
8 '-I $srcdir/include/freetype/config',
9 '-I $srcdir/include',
10 '-isystem $builddir/pkg/zlib/include',
11}
12
13pkg.hdrs = copy('$outdir/include', '$srcdir/include', paths[[
14 ft2build.h
15 freetype/(
16 freetype.h
17 ftadvanc.h
18 ftbdf.h
19 ftbitmap.h
20 ftcache.h
21 ftcolor.h
22 fterrdef.h
23 fterrors.h
24 ftfntfmt.h
25 ftglyph.h
26 ftimage.h
27 ftmm.h
28 ftmodapi.h
29 ftmoderr.h
30 ftoutln.h
31 ftparams.h
32 ftsizes.h
33 ftsnames.h
34 ftstroke.h
35 ftsynth.h
36 ftsystem.h
37 fttrigon.h
38 fttypes.h
39 t1tables.h
40 ttnameid.h
41 tttables.h
42 tttags.h
43 config/(
44 ftconfig.h
45 ftheader.h
46 ftoption.h
47 ftstdlib.h
48 integer-types.h
49 mac-support.h
50 public-macros.h
51 )
52 )
53]])
54
55cc('src/gzip/ftgzip.c', {'pkg/zlib/headers'})
56lib('libfreetype.a', [[
57 builds/unix/ftsystem.c
58 src/(
59 base/(
60 ftdebug.c ftinit.c ftbase.c
61 ftbbox.c ftbdf.c ftbitmap.c ftcid.c ftfstype.c ftgasp.c
62 ftglyph.c ftgxval.c ftmm.c ftotval.c ftpatent.c ftpfr.c
63 ftstroke.c ftsynth.c fttype1.c ftwinfnt.c
64 )
65 truetype/truetype.c
66 type1/type1.c
67 cff/cff.c
68 cid/type1cid.c
69 pfr/pfr.c
70 type42/type42.c
71 winfonts/winfnt.c
72 pcf/pcf.c
73 bdf/bdf.c
74 sfnt/sfnt.c
75
76 autofit/autofit.c
77 pshinter/pshinter.c
78
79 smooth/smooth.c
80 raster/raster.c
81 sdf/sdf.c
82
83 cache/ftcache.c
84 gzip/ftgzip.c.o
85 lzw/ftlzw.c
86 bzip2/ftbzip2.c
87 psaux/psaux.c
88 psnames/psnames.c
89 )
90 $builddir/pkg/zlib/libz.a
91]])
92
93fetch 'git'