build-tslib.sh

build-tslib.sh
#!/bin/bash
set -x
 
. $(dirname $0)/config 
 
cd $SOURCES
wget -c http://ftp.pl.debian.org/debian/pool/main/t/tslib/tslib_1.0.orig.tar.gz 
 
cd $BUILD 
 
rm -rf  tslib-1.0 
tar -xf $SOURCES/tslib_1.0.orig.tar.gz 
cd tslib-1.0 
 
./autogen.sh 
 
CPPFLAGS=$CF \ 
LDFLAGS=$LF \ 
./configure \ 
        --prefix=/usr \ 
        --sysconfdir=/etc \ 
        --host=$CROSS_COMPILE \ 
        --disable-ucb1x00 \ 
        --disable-corgi \ 
        --disable-collie \ 
        --disable-h3600 \ 
        --disable-mk712 \ 
        --disable-arctic2 
 
sed -i -e "s/HAVE_MALLOC 0/HAVE_MALLOC 1/" \
       -e "s/#define malloc rpl_malloc/\/* \0 *\//" \
       config.h 
 
make $J 
make DESTDIR=$STAGING install 
 
#Install to sysroot 
cp -v $STAGING/usr/include/tslib.h \
      $INC/$CROSS_COMPILE/sysroot/usr/include/ 
 
cp -v $STAGING/usr/lib/libts* \
      $INC/$CROSS_COMPILE/sysroot/usr/lib 
 
mkdir $INC/$CROSS_COMPILE/sysroot/usr/lib/ts 
 
cp -v $STAGING/usr/lib/ts/* \
      $INC/$CROSS_COMPILE/sysroot/usr/lib/ts 
ostatnio zmienione: 2011/08/19 13:50