# $Id$ PNAME="tigervnc" PVER="1.0.90_svn4242" PBUILD="r1" PCATEGORIE="net-misc" STATE="unstable" DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality." HOMEPAGE="http://www.tigervnc.com/" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" XORG_PVER="1.9.3" XORG="xorg-server-${XORG_PVER}.tar.bz2" XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}" XORGDDIR="${SRCDIR}/unix/xserver" DEPEND=">= virtual/x11" SDEPEND=">= dev-lang/nasm-2" SRC_URI=( http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} http://ftp.x.org/pub/individual/xserver/${XORG} mirror://xorg-server/${XORG} mirror://${PNAME}/tigervnc_48.png mirror://${PNAME}/${PNAME}-1.0.90-102434.patch mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch ) src_prepare() { munpack ${SRCFILE} || die munpack ${XORG} || die cp -r ${XORGSDIR}/* ${XORGDDIR} || die cd ${SRCDIR} # patchwork # force vncviewer to read password from stdin mpatch ${PNAME}-1.0.90-102434.patch || die # create X server cookie via mcookie mpatch ${PNAME}-1.0.90-cookie.patch || die # add reparent support for x window mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup mpatch ${PNAME}-1.0.90-ldnow.patch || die # apply the included xorg patch cd ${XORGDDIR} local xorg_patch_ver="${XORG_PVER//.}" xorg_patch_ver="${xorg_patch_ver:0:2}" patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die cd ${SRCDIR} # reconfigure everything cd ${XORGDDIR} libtoolize --copy --force || die autoreconf --verbose --install --force || die cd ${SRCDIR} libtoolize --copy --force || die autoreconf --verbose --install --force || die } src_compile() { cd ${SRCDIR} mconfigure --disable-static || die # only build neccessary things # fix broken libtool: it calles sed and it ends in an infinite loop mmake -j1 -C ../common LIBTOOL="$(which libtool)" || die mmake -j1 -C vncpasswd LIBTOOL="$(which libtool)" || die # fix build issues export CFLAGS="$(pkg-config --cflags libdrm)" # build the x11 module cd ${XORGDDIR} mconfigure \ --prefix=/usr/X11R6 \ --datadir=/usr/X11R6/share \ --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ --with-rgb-path=/usr/X11R6/share/X11/rgb.txt \ --with-xkb-output=/usr/X11R6/share/X11/xkb \ --with-pic \ --disable-xorg \ --disable-composite \ --enable-xtrap \ --enable-glx \ --disable-xnest \ --disable-xvfb \ --disable-dmx \ --disable-xwin \ --disable-xephyr \ --disable-kdrive \ --disable-xorgcfg \ --disable-xprint \ --disable-static \ --disable-xevie \ --disable-dri \ --disable-dri2 \ --disable-config-dbus \ --disable-config-hal \ --enable-install-libxf86config \ --disable-shave \ || die # fix broken libtool: it calles sed and it ends in an infinite loop mmake -j1 LIBTOOL="$(which libtool)" || die } src_install() { cd ${SRCDIR} # fix broken libtool: it calles sed and it ends in an infinite loop mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die cd ${XORGDDIR}/hw/vnc # fix broken libtool: it calles sed and it ends in an infinite loop mmake DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die }