/[gentoo-x86]/net-misc/tightvnc/tightvnc-4.0_beta20031113.ebuild
Gentoo

Contents of /net-misc/tightvnc/tightvnc-4.0_beta20031113.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Oct 18 14:08:31 2004 UTC (15 years, 2 months ago) by morfic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
cleanup

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-4.0_beta20031113.ebuild,v 1.7 2004/06/25 00:15:13 agriffis Exp $
4
5 inherit eutils
6 IUSE="java tcpd"
7
8 # Setup XFree version and sources
9 XFREE_PV="4.3.0"
10 MY_SV="${XFREE_PV//\.}"
11 SRC_PATH="mirror://xfree/${BASE_PV}/source"
12
13 # realvnc beta number
14 REALVNC_PV="4.0b4"
15
16 # tightvnc cvs patch
17 TIGHTVNC_CVS="20031113"
18
19 S="${WORKDIR}/vnc-${REALVNC_PV}-unixsrc"
20 DESCRIPTION="A great client/server software package allowing remote network access to graphical desktops."
21 SRC_URI="http://www.realvnc.com/dist/vnc-${REALVNC_PV}-unixsrc.tar.gz
22 ${SRC_PATH}/X${MY_SV}src-1.tgz
23 ${SRC_PATH}/X${MY_SV}src-2.tgz
24 ${SRC_PATH}/X${MY_SV}src-3.tgz
25 ${SRC_PATH}/X${MY_SV}src-4.tgz
26 ${SRC_PATH}/X${MY_SV}src-5.tgz"
27
28 HOMEPAGE="http://www.tightvnc.com/"
29
30 KEYWORDS="-* ~amd64 ~sparc"
31 LICENSE="GPL-2"
32 SLOT="0"
33
34 DEPEND="virtual/x11
35 ~media-libs/jpeg-6b
36 sys-libs/zlib
37 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
38 !net-misc/vnc"
39
40 RDEPEND="${DEPEND}
41 dev-lang/perl
42 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
43
44 src_unpack() {
45 mkdir -p ${S}
46 cd ${S}
47 unpack X${MY_SV}src-{1,2,3,4,5}.tgz
48
49 cd ${WORKDIR}
50 unpack vnc-${REALVNC_PV}-unixsrc.tar.gz
51
52 cd ${S}
53 epatch ${FILESDIR}/tightvnc_cvs${TIGHTVNC_CVS}.patch.bz2
54 epatch ${FILESDIR}/${PN}-4.0_gcc-3.4.patch
55
56 cd ${S}/xc
57 epatch ../xc.patch
58 epatch ${FILESDIR}/${PN}-4.0_linux-headers.patch
59 epatch ${FILESDIR}/4.0/0121_all_4.2.99.3-build-libs-with-pic.patch
60 epatch ${FILESDIR}/4.0/0160_all_4.2.99.4-IncludeSharedObjectInNormalLib.patch
61 epatch ${FILESDIR}/4.0/0180_amd64_4.2.99.4-glx-nopic.patch
62
63
64 echo "#define InstallManPages NO" >>config/cf/vnc.def
65 echo "#define OptimizedCDebugFlags ${CFLAGS} -fPIC" >> config/cf/vnc.def
66 echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} -fPIC" >> config/cf/vnc.def
67 echo "#define ExtraLibraries -ljpeg" >> config/cf/vnc.def
68 echo "#define IncludeSharedObjectInNormalLib" >>config/cf/vnc.def
69
70 cd ${S}/rfb
71 sed -i 's:#include "jpeg/jpeglib.h":#include "jpeglib.h":g' TightEncoder.h
72 sed -i 's:#include <rfb/TightEncoder.h>:#include <rfb/TightEncoder.h>\nextern "C" {\n#include <jpeglib.h>\n}:g' TightEncoder.cxx
73
74 cd ${S}/xc
75 }
76 src_compile() {
77 autoconf
78 libtoolize -c -f
79
80 econf --with-installed-zlib --with-installed-jpeg || die
81
82 make CXXFLAGS="${CXXFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" || die
83
84 cd ${S}/xc
85 make World || die
86 }
87
88 src_install() {
89 mkdir -p ${D}/usr/bin ${D}/usr/share/man ${D}/usr/X11R6/lib/modules/extensions
90 ./vncinstall ${D}/usr/bin ${D}/usr/share/man ${D}/usr/X11R6/lib/modules/extensions
91 }

  ViewVC Help
Powered by ViewVC 1.1.20