kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

build (669B)


      1 #!/bin/sh -e
      2 
      3 (
      4     cd termkey
      5 
      6     make termkey.h libtermkey.la
      7 
      8     mkdir -p "../usr/lib" \
      9              "../usr/include"
     10 
     11     mv termkey.h "../usr/include"
     12     mv .libs/*.a "../usr/lib"
     13 
     14 )
     15 
     16 (
     17     # Lpeg doesn't have an option to create static libraries.
     18     cd lpeg
     19     for obj in lpcap lpcode lpprint lptree lpvm; do
     20         "${CC:-cc}" $CFLAGS -c -o $obj.o $obj.c
     21     done
     22     ar rcs ../usr/lib/liblpeg.a ./*.o
     23 )
     24 
     25 (
     26     cd vis
     27 
     28     export CFLAGS="$CFLAGS -static -I../usr/include"
     29     export LDFLAGS="$LDFLAGS -L../usr/lib"
     30 
     31     ./configure \
     32         --prefix=/usr \
     33         --enable-lua \
     34         --enable-liblpeg-static
     35 
     36     make
     37     make DESTDIR="$1" install
     38 )