# vim: syn=sh ft=sh et sw=2 sts=2 ts=2 tw=0: #Packager: Cyrille Pontvieux pkgname=farstream1 pkgver=0.2.3 pkgrel=1cp source=(http://freedesktop.org/software/farstream/releases/farstream/farstream-${pkgver}.tar.gz python-farstream.tar.xz) sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.freedesktop.org/wiki/Software/Farstream slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Audio/Video Communications Framework)" "The Farstream (formerly Farsight) project is an effort to create a" "framework to deal with all known audio/video conferencing protocols." "On one side it offers a generic API that makes it possible to write" "plugins for different streaming protocols, on the other side it" "offers an API for clients to use those plugins." "This version is built against GStreamer 1.0" ) build() { cd $SRC/farstream-$pkgver || return 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --build=$arch-slackware-linux \ --disable-static \ --disable-gupnp \ --with-plugins=fsrawconference,fsrtpconference,fsmsnconference,fsrtcpfilter,fsvideoanyrate \ --with-transmitter-plugins=rawudp,multicast,nice,shm \ || return 1 make -j $numjobs || return 1 make install DESTDIR=$PKG || return 1 # farstream 0.2.x is using gobject introspection but it is not always possible to use it # so we provide a compatibility python module cp -r $SRC/python . cd python ./rebuild-defs.sh || return 1 pygtk-codegen-2.0 \ --prefix fs \ --register $(pkg-config --variable=defsdir gst-python-0.10)/gst-types.defs \ --override pyfarstream.override \ pyfarstream.defs > pyfarstream.c || return 1 gcc \ $(pkg-config --cflags --libs python) \ $(pkg-config --cflags --libs pygobject-2.0) \ $(pkg-config --cflags --libs gst-python-0.10) \ -I.. -L../farstream/.libs -lfarstream-0.2 \ -fPIC \ -c *.c || return 1 gcc \ $(pkg-config --cflags --libs python) \ $(pkg-config --cflags --libs pygobject-2.0) \ $(pkg-config --cflags --libs gst-python-0.10) \ -I.. -L../farstream/.libs -lfarstream-0.2 \ -shared \ -o farstream1.so \ *.o || return 1 python_site=$(python -c 'import site; print(site.getsitepackages()[0])') mkdir -p $PKG$python_site cp farstream1.so $PKG$python_site/ }