opkg

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

gen.lua (941B)


      1 cflags({
      2 	'-I $dir',
      3 	'-I $outdir/include',
      4 	'-I $srcdir/include',
      5 	'-isystem $builddir/pkg/sys/openbsd/include',
      6 })
      7 
      8 build('sed', '$outdir/include/event2/event-config.h', {'$dir/config.h', '|', '$srcdir/make-event-config.sed'}, {
      9 	expr='-f $srcdir/make-event-config.sed',
     10 })
     11 
     12 pkg.hdrs = {
     13 	copy('$outdir/include/event2', '$srcdir/include/event2', {
     14 		'buffer.h',
     15 		'bufferevent.h',
     16 		'dns.h',
     17 		'event.h',
     18 		'http.h',
     19 		'http_struct.h',
     20 		'util.h',
     21 		'visibility.h',
     22 	}),
     23 	'$outdir/include/event2/event-config.h',
     24 }
     25 pkg.deps = {
     26 	'$gendir/headers',
     27 	'pkg/sys/openbsd/headers',
     28 }
     29 
     30 lib('libevent.a', {
     31 	'buffer.c',
     32 	'bufferevent.c',
     33 	'bufferevent_filter.c',
     34 	'bufferevent_pair.c',
     35 	'bufferevent_ratelim.c',
     36 	'bufferevent_sock.c',
     37 	'event.c',
     38 	'evmap.c',
     39 	'evthread.c',
     40 	'evutil.c',
     41 	'evutil_rand.c',
     42 	'evutil_time.c',
     43 	'listener.c',
     44 	'log.c',
     45 
     46 	'evdns.c',
     47 	'event_tagging.c',
     48 	'evrpc.c',
     49 	'http.c',
     50 
     51 	'epoll.c',
     52 	'signal.c',
     53 })
     54 
     55 fetch('git')