recipes

packages recipes for the <noname> package manager
Log | Files | Refs

build (815B)


      1 #!/bin/sh -ex
      2 
      3 export CFLAGS="-D_BSD_SOURCE"
      4 
      5 for f in \
      6 	libcurses/get_wstr.c \
      7 	libcurses/getstr.c \
      8 	libcurses/in_wchstr.c \
      9 	libcurses/inchstr.c \
     10 	libcurses/inchstr.c \
     11 	libcurses/instr.c \
     12 	libcurses/inwstr.c \
     13 	libcurses/printw.c \
     14 	libcurses/scanw.c \
     15 	libterminfo/cdbr.c \
     16 	libterminfo/cdbr.c \
     17 	libterminfo/mi_vector_hash.c \
     18 	libterminfo/mi_vector_hash.c \
     19 	nbperf/mi_vector_hash.c \
     20 	nbperf/mi_vector_hash.c \
     21 	netbsd_sys/cdefs.h \
     22 	tic/cdbw.c \
     23 	tic/cdbw.c \
     24 	tic/mi_vector_hash.c \
     25 	tic/mi_vector_hash.c
     26 do
     27 	grep -v \
     28 		-e '^__[a-z]*_alias' \
     29 		-e 'warning: this program uses .*, which is unsafe.' \
     30 		-e '__warn_references' \
     31 		"$f" >$$
     32 	mv "$$" "$f"
     33 done
     34 
     35 sed -r 's,^static (int fpurge),\1,' libcurses/tty.c >libcurses/tty.c.sed
     36 mv libcurses/tty.c.sed libcurses/tty.c
     37 
     38 make PREFIX="$PREFIX" install