build-libvncserver.sh

build-libvncserver.sh
#!/bin/bash
. $(dirname $0)/config 
 
cd $SOURCES 
wget -c http://downloads.sourceforge.net/project/libvncserver/libvncserver/0.9.7/LibVNCServer-0.9.7.tar.gz 
 
cd $BUILD 
 
rm -rf LibVNCServer-0.9.7 
tar -xf $SOURCES/LibVNCServer-0.9.7.tar.gz 
cd LibVNCServer-0.9.7 
 
CPPFLAGS="-I$STAGING/usr/include $CF" \ 
LDFLAGS="-L$STAGING/usr/lib $LF -ljpeg" \ 
./configure \ 
        --prefix=/usr \ 
        --host=$CROSS_COMPILE 
 
sed -i -e "s%libdir='/usr/lib'%libdir=\'$STAGING/usr/lib\'%" $STAGING/usr/lib/libjpeg.la 
 
make $J 
make DESTDIR=$STAGING install 
 
#Instalacja w systemie docelowym pliku z klientem uruchamianym w przeglądarce WWW.
[ -e $STAGING/var/www ] || mkdir -p $STAGING/var/www 
cp -a classes/VncViewer.jar $STAGING/var/www 
 
chrpath -d $STAGING/usr/lib/libvnc{server,client}.so.0.0.0 
ostatnio zmienione: 2011/08/19 13:50