recipes

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

build (613B)


      1 #!/bin/sh -ex
      2 
      3 sed -r '
      4 	s,\$\(LIBREM_PATH\)/include$,&/rem,
      5 	s,\$\(LIBREM_PATH\)$,&/lib,
      6 	s,\) -lre,) -lresolv -lre,
      7 ' Makefile >$$
      8 mv $$ Makefile
      9 
     10 export 
     11 export LFLAGS='-static'
     12 export CFLAGS='-fPIC'
     13 
     14 export CFLAGS="${CFLAGS} -I${libalsa}/include"
     15 export LFLAGS="${LFLAGS} -L${libalsa}/lib"
     16 
     17 make \
     18 	STATIC=yes \
     19 	LIBRE_MK="$libre/share/re/re.mk" \
     20 	LIBRE_SO="$libre/lib" \
     21 	LIBRE_INC="$libre/include/re" \
     22 	LIBREM_PATH="$librem" \
     23 	USE_ALSA=yes \
     24 	PREFIX="${PREFIX}"
     25 
     26 mkdir -p "${PREFIX}/share/baresip" "${PREFIX}/bin"
     27 install -m 0644 share/* "${PREFIX}/share/baresip"
     28 install -m 0755 baresip "${PREFIX}/bin"