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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Nov 27 11:14:17 2003 UTC (16 years, 2 months ago) by aliz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
New CVS patch, removed old ebuild

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

  ViewVC Help
Powered by ViewVC 1.1.20