build-directfb.sh

build-directfb.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c \
  http://www.directfb.org/downloads/Core/DirectFB-1.2/DirectFB-1.2.10.tar.gz
 
cd $BUILD
 
sed -i -e "s/^prefix=\"\/usr\"$/prefix=\$HOME\/staging\/usr/" \
  $STAGING/usr/bin/libpng-config 
sed -i -e "s/^prefix=\/usr$/prefix=\$HOME\/staging\/usr/" \
  $STAGING/usr/bin/freetype-config
 
rm -rf DirectFB-1.2.10/
tar -xf $SOURCES/DirectFB-1.2.10.tar.gz
cd DirectFB-1.2.10/
 
CPPFLAGS="-I$STAGING/usr/include $CF" \
LDFLAGS="-L$STAGING/usr/lib $LF -lz" \
FREETYPE_CFLAGS="-I$STAGING/usr/include/freetype2" \
FREETYPE_LIBS="-L$STAGING/usr/lib -lfreetype" \
PATH=$STAGING/usr/bin:$PATH \
./configure \
	--prefix=/usr \
	--host=$CROSS_COMPILE \
        --with-gfxdrivers=none \
        --with-inputdrivers=keyboard,linuxinput
 
make $J
make DESTDIR=$STAGING install
ostatnio zmienione: 2011/08/19 13:50