[GnomeMeeting-list]build script



In case it's useful for anyone, here's a little script to
build openh323 + pwlib + gnomemeeting from source. To use,
create an empty directory with this script in it, let's say
gm. cd gm;./build

Not tested much, so be careful.

Paul

#!/bin/sh
#OH323=openh323_1.7.3.tar.gz
#1.7.3 doesn't seem to work for me
OH323=openh323_1.7.2.tar.gz
PWLIB=pwlib_1.2.4.tar.gz

CVSDIR=gnomemeeting
CVSROOT=':pserver:anonymous anoncvs gnome org:/cvs/gnome'
OHTTP=http://www.openh323.org/bin
LIBDIR=/usr/local/lib

export PWLIBDIR=`pwd`/pwlib
export OPENH323DIR=`pwd`/openh323

# Get downloadable sources

[ -f $OH323 ] || wget $OHTTP/$OH323
[ -f $PWLIB ] || wget $OHTTP/$PWLIB

# Get cvs sources
# http://developer.gnome.org/tools/cvs.html

[ -d $CVSDIR ] || {
	echo Press return when prompted
	cvs login
	cvs -z3 co $CVSDIR
}

(cd $CVSDIR; cvs -z3 update)

# Compile pwlib
[ -d $PWLIBDIR ] || tar xzvf $PWLIB
(
	cd $PWLIBDIR
	make both
	cd lib
	LIBNAME=`ls -l libpt_linux_x86_r.so|sed 's/.*-> //'`
	echo Enter root password if prompted
	su root -c "tar cf - libpt*.so*|(cd $LIBDIR;tar xf -;ln -sf $LIBNAME libpt.so)"
)

# Compile openh323
[ -d $OPENH323DIR ] || tar xzvf $OH323
(
	cd $OPENH323DIR
	make opt
	cd lib
	LIBNAME=`ls -l libh323_linux_x86_r.so|sed 's/.*-> //'`
	echo Enter root password if prompted
	su root -c "tar cf - libh323*.so*|(cd $LIBDIR;tar xf -;ln -sf $LIBNAME liboh323.so)"
)

echo Enter root password if prompted
su root -c "grep -q $LIBDIR /etc/ld.so.conf || echo $LIBDIR >> /etc/ld.so.conf; ldconfig"

# Compile gnomemeeting
(
	cd $CVSDIR
	[ -f configure ] || ./autogen.sh
	[ -f config.h ] || ./configure --with-ptlib-includes=$PWLIBDIR/include/ptlib \
		--with-ptlib-libs=$LIBDIR  --with-openh323-libs=$LIBDIR
	cp /usr/include/ldap.h src
	make
	echo Enter root password if prompted
	su root -c "make install"
)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]