build-directfb-examples.sh

build-directfb-examples.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c \
  http://www.directfb.org/downloads/Extras/DirectFB-examples-1.2.0.tar.gz
 
cd $BUILD
 
rm -rf DirectFB-examples-1.2.0/
tar -xf $SOURCES/DirectFB-examples-1.2.0.tar.gz
cd DirectFB-examples-1.2.0/
 
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" \
DIRECTFB_CFLAGS="-I$STAGING/usr/include/directfb" \
DIRECTFB_LIBS="-L$STAGING/usr/lib -ldirectfb -lfusion -ldirect -lpthread" \
PATH=$STAGING/usr/bin:$PATH \
./configure \
	--prefix=/usr \
	--host=$CROSS_COMPILE
 
make $J
make DESTDIR=$STAGING install
ostatnio zmienione: 2011/08/19 13:50