# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxcomp/nxcomp-1.3.2-r1.ebuild,v 1.2 2004/07/15 03:13:25 agriffis Exp $ inherit eutils MY_P="${PN}-1.3.2-23" DESCRIPTION="X11 protocol compression library - server core components" HOMEPAGE="http://www.nomachine.com/" SRC_URI="http://freedesktop.org/~mornfall/debian/pool/n/nx/nx_1.3.99.1-0pre1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc" IUSE="" #DEPEND=">=media-libs/jpeg-6b-r3 #>=media-libs/libpng-1.2.5-r4 #>=sys-devel/gcc-3.2.3-r2 #>=sys-libs/glibc-2.3.2-r3 #>=sys-libs/zlib-1.1.4-r2 DEPEND="virtual/x11" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" S=${WORKDIR}/nx src_compile() { echo "Unpacking archives.." tar xjpf nx-X11-1.4.0-1.tar.bz2 tar xjpf nxagent-1.4.0-33.tar.bz2 tar xjpf nxauth-1.4.0-1.tar.bz2 tar xjpf nxcomp-1.3.2-4.tar.bz2 tar xjpf nxcompext-1.4.0-2.tar.bz2 tar xjpf nxproxy-1.3.2-1.tar.bz2 tar xjpf nxssh-1.4.0-2.tar.bz2 echo "Patching.." cd $S epatch $S/debian/nxcompext.diff epatch $S/debian/nx-X11.diff echo "Installing.." cd $S/nx-X11 make World cd $S/nxssh ./configure make cd $S/nxproxy ./configure make } src_install() { into /usr # x11 dolib nxcomp/libXcomp.so dolib nxcompext/libXcompext.so dosym /usr/lib/libXcomp.so /usr/lib/libXcomp.so.1.3.2 # agent dobin nx-X11/programs/Xserver/nxagent dolib nx-X11/lib/X11/libX11-nx.so dolib nx-X11/lib/Xext/libXext-nx.so dolib nx-X11/lib/Xrender/libXrender-nx.so # xauth dobin nx-X11/programs/nxauth/nxauth # ssh dobin nxssh/nxssh # proxy dobin nxproxy/nxproxy preplib /usr dodir /var/lib/nxserver }