opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (868B)


      1 cflags({
      2 	'-D HAVE_CONFIG_H',
      3 	'-I $dir',
      4 	'-I $srcdir',
      5 	'-I $outdir/include',
      6 })
      7 
      8 build('sed', '$outdir/include/pcre.h', '$srcdir/pcre.h.in', {
      9 	expr={
     10 		'-e s,@PCRE_MAJOR@,8,',
     11 		'-e s,@PCRE_MINOR@,43,',
     12 		'-e s,@PCRE_PRERELEASE@,,',
     13 		'-e s,@PCRE_DATE@,2019-02-23,',
     14 	},
     15 })
     16 pkg.hdrs = {'$outdir/include/pcre.h'}
     17 
     18 build('copy', '$outdir/pcre_chartables.c', '$srcdir/pcre_chartables.c.dist')
     19 lib('libpcre.a', {
     20 	'pcre_byte_order.c',
     21 	'pcre_compile.c',
     22 	'pcre_config.c',
     23 	'pcre_dfa_exec.c',
     24 	'pcre_exec.c',
     25 	'pcre_fullinfo.c',
     26 	'pcre_get.c',
     27 	'pcre_globals.c',
     28 	'pcre_jit_compile.c',
     29 	'pcre_maketables.c',
     30 	'pcre_newline.c',
     31 	'pcre_ord2utf8.c',
     32 	'pcre_refcount.c',
     33 	'pcre_string_utils.c',
     34 	'pcre_study.c',
     35 	'pcre_tables.c',
     36 	'pcre_ucd.c',
     37 	'pcre_valid_utf8.c',
     38 	'pcre_version.c',
     39 	'pcre_xclass.c',
     40 	'$outdir/pcre_chartables.c',
     41 }, {'$gendir/headers'})
     42 
     43 fetch('curl')