build-uuid.sh

build-uuid.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES 
wget -c http://downloads.sourceforge.net/project/e2fsprogs/\ 
e2fsprogs/1.41.12/e2fsprogs-1.41.12.tar.gz 
 
cd $BUILD 
 
rm -rf e2fsprogs-1.41.12 uuid-tmpinstall 
tar -xf $SOURCES/e2fsprogs-1.41.12.tar.gz 
cd e2fsprogs-1.41.12 
 
CPPFLAGS="$CF" \ 
LDFLAGS="$LF" \ 
./configure \ 
        --prefix=/usr \ 
        --host=$CROSS_COMPILE \ 
        --disable-rpath \ 
        --enable-elf-shlibs 
 
make $J 
make DESTDIR=$BUILD/uuid-tmpinstall install 
make DESTDIR=$BUILD/uuid-tmpinstall install-libs 
 
#Install to sysroot 
mkdir $INC/$CROSS_COMPILE/sysroot/usr/include/uuid 
cp -v $BUILD/uuid-tmpinstall/usr/include/uuid/uuid.h \
      $INC/$CROSS_COMPILE/sysroot/usr/include/uuid 
 
cp -v $BUILD/uuid-tmpinstall/usr/lib/libuuid.* \
      $INC/$CROSS_COMPILE/sysroot/usr/lib
ostatnio zmienione: 2011/08/19 13:50