/[gentoo-x86]/net-misc/vnc/vnc-4.1.3-r2.ebuild
Gentoo

Contents of /net-misc/vnc/vnc-4.1.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Mar 6 16:31:11 2010 UTC (8 years, 3 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove net-misc/vnc

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-4.1.3-r2.ebuild,v 1.10 2009/06/25 17:04:06 armin76 Exp $
4
5 EAPI="1"
6
7 inherit eutils toolchain-funcs multilib autotools
8
9 OPENGL_DIR="xorg-x11"
10 XSERVER_VERSION="1.5.3"
11 PATCH="${PN}-4.1.2-r5-patches-0.1"
12
13 MY_P="vnc-4_1_3-unixsrc"
14 DESCRIPTION="Remote desktop viewer display system"
15 HOMEPAGE="http://www.realvnc.com/"
16 SRC_URI="http://ltsp.mirrors.tds.net/pub/ltsp/tarballs/${MY_P}.tar.gz
17 http://ftp.plusline.de/FreeBSD/distfiles/xc/${MY_P}.tar.gz
18 mirror://gentoo/${PATCH}.tar.bz2
19 server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.bz2 )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="alpha amd64 -arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
24 IUSE="+opengl server +xorgmodule"
25
26 RDEPEND="sys-libs/zlib
27 media-libs/freetype
28 x11-libs/libSM
29 x11-libs/libXtst
30 app-admin/eselect-opengl
31 server? (
32 x11-libs/libXi
33 x11-libs/libXfont
34 x11-libs/libXmu
35 x11-libs/libxkbfile
36 x11-libs/libXrender
37 x11-libs/pixman
38 x11-apps/xauth
39 x11-apps/xsetroot
40 x11-proto/dri2proto
41 x11-proto/xf86driproto
42 opengl? ( x11-proto/glproto )
43 media-fonts/font-adobe-100dpi
44 media-fonts/font-adobe-75dpi
45 media-fonts/font-alias
46 media-fonts/font-cursor-misc
47 media-fonts/font-misc-misc
48 xorgmodule? ( ~x11-base/xorg-server-${XSERVER_VERSION} )
49 )
50 !net-misc/tightvnc
51 !net-misc/xf4vnc"
52 DEPEND="${RDEPEND}
53 x11-proto/inputproto
54 x11-proto/xextproto
55 server? (
56 x11-proto/bigreqsproto
57 x11-proto/compositeproto
58 x11-proto/damageproto
59 x11-proto/fixesproto
60 x11-proto/fontsproto
61 x11-proto/randrproto
62 x11-proto/resourceproto
63 x11-proto/scrnsaverproto
64 x11-proto/trapproto
65 x11-proto/videoproto
66 x11-proto/xcmiscproto
67 x11-proto/xineramaproto
68 x11-proto/xf86bigfontproto
69 x11-proto/xf86dgaproto
70 x11-proto/xf86miscproto
71 x11-proto/xf86vidmodeproto
72 >=media-libs/mesa-7.1
73 >=x11-proto/renderproto-0.9.3
74 x11-libs/libpciaccess
75 )"
76
77 S=${WORKDIR}/${MY_P}
78
79 pkg_setup() {
80 if ! use server ; then
81 echo
82 einfo "The 'server' USE flag will build vnc's server."
83 einfo "If '-server' is chosen only the client is built to save space."
84 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
85 ebeep
86 epause 5
87 else
88 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
89 OLD_IMPLEM="$(eselect opengl show)"
90 eselect opengl set --impl-headers ${OPENGL_DIR}
91 fi
92 }
93
94 switch_opengl_implem() {
95 # Switch to the xorg implementation.
96 # Use new opengl-update that will not reset user selected
97 # OpenGL interface ...
98 echo
99 eselect opengl set ${OLD_IMPLEM}
100 }
101
102 src_unpack() {
103 unpack ${A}
104 cd "${S}"
105
106 if use server ; then
107 mv "${WORKDIR}"/xorg-server-${XSERVER_VERSION} unix/xorg-x11-server-source
108 else
109 rm -f "${WORKDIR}"/patch/*vnc-server*
110 fi
111
112 if use server ; then
113 cd unix
114 mkdir xorg-x11-server-source/hw/vnc
115 cp -RPp xc/programs/Xserver/vnc/Xvnc/xvnc.cc \
116 xc/programs/Xserver/Xvnc.man \
117 xc/programs/Xserver/vnc/*.{h,cc} \
118 xorg-x11-server-source/hw/vnc
119 cp -RPp xorg-x11-server-source/{cfb/cfb.h,hw/vnc}
120 cp -RPp xorg-x11-server-source/{fb/fb.h,hw/vnc}
121 cp -RPp xorg-x11-server-source/{fb/fbrop.h,hw/vnc}
122 sed -i -e 's,xor,c_xor,' -e 's,and,c_and,' \
123 xorg-x11-server-source/hw/vnc/{cfb,fb,fbrop}.h
124 fi
125
126 cd "${S}"
127
128 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
129 epatch "${FILESDIR}"/${PN}-4.1.2-freebsd.patch
130
131 cd common
132 eautoreconf
133 cd ../unix
134 eautoreconf
135 if use server; then
136 cd xorg-x11-server-source
137 eautoreconf
138 fi
139 }
140
141 src_compile() {
142 cd common
143 econf || die "econf failed"
144 emake || die "emake failed"
145 cd ../unix
146 econf || die "econf failed"
147 emake || die "emake failed"
148
149 if use server ; then
150 cd xorg-x11-server-source
151 econf \
152 --disable-xorg \
153 --disable-xnest --disable-xvfb --disable-dmx \
154 --disable-xwin --disable-xephyr --disable-kdrive \
155 --with-pic \
156 --disable-xorgcfg \
157 --disable-xprint \
158 --disable-static \
159 --disable-composite \
160 --disable-xtrap \
161 --enable-xcsecurity \
162 --with-xkb-output=/usr/share/X11/xkb \
163 --with-rgb-path=/usr/share/X11/rgb.txt \
164 --disable-xevie \
165 --disable-dri2 \
166 $(use_enable opengl glx) \
167 --disable-config-dbus \
168 --disable-config-hal \
169 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
170 || die "econf server failed"
171 emake || die "emake server failed"
172 fi
173 }
174
175 src_install() {
176 cd common
177 emake DESTDIR="${D}" install || die "emake install failed"
178 cd ../unix
179 emake DESTDIR="${D}" install || die "emake install failed"
180 newman vncviewer/vncviewer.man vncviewer.1
181 cd ..
182 dodoc README
183
184 doicon "${FILESDIR}"/vncviewer.png
185 make_desktop_entry vncviewer vncviewer vncviewer Network
186
187 if use server ; then
188 cd unix
189 dobin vncserver || die "dobin failed"
190 for f in vncviewer/vncviewer vncpasswd/vncpasswd \
191 vncconfig/vncconfig vncserver x0vncserver/x0vncserver; do
192 mv $f.man $f.1
193 doman $f.1
194 done
195
196 cd xorg-x11-server-source/hw/vnc
197 emake DESTDIR="${D}" install || die "emake install failed"
198 ! use xorgmodule && rm -rf "${D}"/usr/$(get_libdir)/xorg
199
200 newman Xvnc.man Xvnc.1
201 newconfd "${FILESDIR}"/vnc.confd vnc
202 newinitd "${FILESDIR}"/vnc.initd vnc
203
204 rm "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la
205 else
206 cd "${D}"
207 rm usr/bin/x0vncserver
208 rm usr/bin/vncpasswd
209 rm usr/bin/vncconfig
210 fi
211
212 rm "${D}"/usr/$(get_libdir)/librfb.{a,la,so}
213 }
214
215 pkg_postinst() {
216 use server && switch_opengl_implem
217 }

  ViewVC Help
Powered by ViewVC 1.1.20