summaryrefslogtreecommitdiff
path: root/pkg/freetype
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-09-17 00:03:34 -0700
committerMichael Forney <mforney@mforney.org>2017-09-25 19:23:06 -0700
commitba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch)
tree48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/freetype
parentcb362b531d79708a259bbf070dee5104fd63df08 (diff)
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/freetype')
-rw-r--r--pkg/freetype/gen.lua51
-rw-r--r--pkg/freetype/gen.rc46
2 files changed, 51 insertions, 46 deletions
diff --git a/pkg/freetype/gen.lua b/pkg/freetype/gen.lua
new file mode 100644
index 00000000..41c8a990
--- /dev/null
+++ b/pkg/freetype/gen.lua
@@ -0,0 +1,51 @@
+cflags{
+ '-Wall',
+ '-D FT2_BUILD_LIBRARY',
+ '-D FT_CONFIG_OPTION_SYSTEM_ZLIB',
+ '-D HAVE_FCNTL_H',
+ '-D HAVE_STDINT_H',
+ '-D HAVE_UNISTD_H',
+ '-I $srcdir/builds/unix',
+ '-I $srcdir/include/freetype/config',
+ '-I $srcdir/include',
+ '-I $builddir/pkg/zlib/include',
+}
+
+cc('src/gzip/ftgzip.c', {'pkg/zlib/headers'})
+lib('libfreetype.a', [[
+ builds/unix/ftsystem.c
+ src/(
+ base/(
+ ftdebug.c ftinit.c ftbase.c
+ ftbbox.c ftbdf.c ftbitmap.c ftcid.c ftfntfmt.c ftfstype.c
+ ftgasp.c ftglyph.c ftgxval.c ftlcdfil.c ftmm.c ftotval.c
+ ftpatent.c ftpfr.c ftstroke.c ftsynth.c fttype1.c ftwinfnt.c
+ )
+ truetype/truetype.c
+ type1/type1.c
+ cff/cff.c
+ cid/type1cid.c
+ pfr/pfr.c
+ type42/type42.c
+ winfonts/winfnt.c
+ pcf/pcf.c
+ bdf/bdf.c
+ sfnt/sfnt.c
+
+ autofit/autofit.c
+ pshinter/pshinter.c
+
+ raster/raster.c
+ smooth/smooth.c
+
+ cache/ftcache.c
+ gzip/ftgzip.c.o
+ lzw/ftlzw.c
+ bzip2/ftbzip2.c
+ psaux/psaux.c
+ psnames/psnames.c
+ )
+ $builddir/pkg/zlib/libz.a
+]])
+
+fetch 'git'
diff --git a/pkg/freetype/gen.rc b/pkg/freetype/gen.rc
deleted file mode 100644
index ab4c1f49..00000000
--- a/pkg/freetype/gen.rc
+++ /dev/null
@@ -1,46 +0,0 @@
-cflags\
- -Wall\
- -D FT2_BUILD_LIBRARY\
- -D FT_CONFIG_OPTION_SYSTEM_ZLIB\
- -D HAVE_FCNTL_H\
- -D HAVE_STDINT_H\
- -D HAVE_UNISTD_H\
- -I '$srcdir'/builds/unix\
- -I '$srcdir'/include/freetype/config\
- -I '$srcdir'/include\
- -I '$builddir'/pkg/zlib/include
-
-cc src/gzip/ftgzip.c '||' pkg/zlib/headers
-lib libfreetype.a builds/unix/ftsystem.c src/^(\
- base/^(\
- ftdebug.c ftinit.c ftbase.c\
- ftbbox.c ftbdf.c ftbitmap.c ftcid.c ftfntfmt.c ftfstype.c\
- ftgasp.c ftglyph.c ftgxval.c ftlcdfil.c ftmm.c ftotval.c\
- ftpatent.c ftpfr.c ftstroke.c ftsynth.c fttype1.c ftwinfnt.c\
- )\
- truetype/truetype.c\
- type1/type1.c\
- cff/cff.c\
- cid/type1cid.c\
- pfr/pfr.c\
- type42/type42.c\
- winfonts/winfnt.c\
- pcf/pcf.c\
- bdf/bdf.c\
- sfnt/sfnt.c\
- \
- autofit/autofit.c\
- pshinter/pshinter.c\
- \
- raster/raster.c\
- smooth/smooth.c\
- \
- cache/ftcache.c\
- gzip/ftgzip.c.o\
- lzw/ftlzw.c\
- bzip2/ftbzip2.c\
- psaux/psaux.c\
- psnames/psnames.c\
-) '$builddir'/pkg/zlib/libz.a
-
-fetch git