/[gentoo-x86]/net-misc/tigervnc/tigervnc-1.1.0-r4.ebuild
Gentoo

Contents of /net-misc/tigervnc/tigervnc-1.1.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 10 08:44:35 2012 UTC (7 years, 3 months ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove versions that are no longer installable after dropping vulnerable xorg-server versions, bug #412609.

(Portage version: 2.2.0_alpha109/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tigervnc/tigervnc-1.1.0-r4.ebuild,v 1.2 2012/05/15 04:33:22 mr_bones_ Exp $
4
5 EAPI="1"
6
7 inherit eutils toolchain-funcs multilib autotools
8
9 XSERVER_VERSION="1.11.2"
10 OPENGL_DIR="xorg-x11"
11
12 DESCRIPTION="Remote desktop viewer display system"
13 HOMEPAGE="http://www.tigervnc.org"
14 #SRC_URI="mirror://gentoo/${P}.tar.bz2
15 # http://dev.gentoo.org/~armin76/dist/${P}.tar.bz2
16 SRC_URI="mirror://sourceforge/tigervnc/${P}.tar.gz
17 mirror://gentoo/${PN}.png
18 server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.bz2
19 mirror://gentoo/tigervnc-1.1.0_xorg-1.11.patch.bz2 )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="alpha amd64 arm hppa ia64 ppc ~ppc64 sh sparc x86"
24 IUSE="nptl +opengl server +xorgmodule"
25
26 RDEPEND="virtual/jpeg
27 sys-libs/zlib
28 media-libs/freetype
29 x11-libs/libSM
30 x11-libs/libXtst
31 app-admin/eselect-opengl
32 server? (
33 x11-libs/libXi
34 x11-libs/libXfont
35 x11-libs/libXmu
36 x11-libs/libxkbfile
37 x11-libs/libXrender
38 x11-libs/pixman
39 x11-apps/xauth
40 x11-apps/xsetroot
41 x11-misc/xkeyboard-config
42 media-fonts/font-adobe-100dpi
43 media-fonts/font-adobe-75dpi
44 media-fonts/font-alias
45 media-fonts/font-cursor-misc
46 media-fonts/font-misc-misc
47 xorgmodule? ( ~x11-base/xorg-server-${XSERVER_VERSION} )
48 )
49 !net-misc/vnc
50 !net-misc/tightvnc
51 !net-misc/xf4vnc"
52 DEPEND="${RDEPEND}
53 amd64? ( dev-lang/nasm )
54 x86? ( dev-lang/nasm )
55 >=x11-proto/inputproto-1.5
56 >=x11-proto/xextproto-7.0.3
57 >=x11-proto/xproto-7.0.13
58 server? (
59 virtual/pkgconfig
60 media-fonts/font-util
61 x11-misc/util-macros
62 x11-proto/bigreqsproto
63 x11-proto/compositeproto
64 x11-proto/damageproto
65 x11-proto/dri2proto
66 x11-proto/fixesproto
67 x11-proto/fontsproto
68 >=x11-proto/randrproto-1.2.99
69 x11-proto/resourceproto
70 x11-proto/scrnsaverproto
71 x11-proto/trapproto
72 x11-proto/videoproto
73 x11-proto/xcmiscproto
74 x11-proto/xineramaproto
75 x11-proto/xf86bigfontproto
76 x11-proto/xf86dgaproto
77 x11-proto/xf86driproto
78 x11-proto/xf86miscproto
79 x11-proto/xf86vidmodeproto
80 opengl? ( >=x11-proto/glproto-1.4.10 )
81 >=media-libs/mesa-7.1
82 >=x11-proto/renderproto-0.9.3
83 x11-libs/libpciaccess
84 >=x11-libs/xtrans-1.2.2
85 )"
86
87 #S="${WORKDIR}/${PN}"
88
89 pkg_setup() {
90 if ! use server ; then
91 echo
92 einfo "The 'server' USE flag will build tigervnc's server."
93 einfo "If '-server' is chosen only the client is built to save space."
94 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
95 ebeep
96 epause 5
97 else
98 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
99 OLD_IMPLEM="$(eselect opengl show)"
100 eselect opengl set ${OPENGL_DIR}
101 fi
102 }
103
104 switch_opengl_implem() {
105 # Switch to the xorg implementation.
106 # Use new opengl-update that will not reset user selected
107 # OpenGL interface ...
108 echo
109 eselect opengl set ${OLD_IMPLEM}
110 }
111
112 src_unpack() {
113 unpack ${A}
114 cd "${S}"
115
116 if use server ; then
117 cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/* unix/xserver
118 fi
119
120 eautoreconf
121 cd unix
122
123 if use server ; then
124 epatch xserver110.patch
125 epatch "${WORKDIR}"/${P}_xorg-1.11.patch
126 cd xserver
127 epatch "${FILESDIR}"/1.1.0-export_missing_symbol.patch
128 epatch "${FILESDIR}"/1.1.0-gethomedir.patch
129 eautoreconf
130 fi
131 }
132
133 src_compile() {
134 econf --without-included-zlib --with-system-jpeg || die "econf failed"
135 emake || die "emake failed"
136
137 if use server ; then
138 cd unix/xserver
139 econf \
140 --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
141 --disable-xwin --disable-xephyr --disable-kdrive --with-pic \
142 --disable-static --disable-xinerama \
143 --disable-composite \
144 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
145 --enable-install-libxf86config \
146 --enable-dri2 \
147 --disable-config-dbus \
148 --disable-config-hal \
149 --with-xmlto=no \
150 --disable-unit-tests \
151 $(use_enable opengl glx) \
152 $(use_enable nptl glx-tls) \
153 || die "econf server failed"
154 emake || die "emake server failed"
155 fi
156 }
157
158 src_install() {
159 dodoc README.txt
160
161 cd unix
162 emake DESTDIR="${D}" install || die "emake install failed"
163 newman vncviewer/vncviewer.man vncviewer.1
164
165 newicon "${DISTDIR}"/tigervnc.png vncviewer.png
166 make_desktop_entry vncviewer vncviewer vncviewer Network
167
168 if use server ; then
169 cd xserver/hw/vnc
170 emake DESTDIR="${D}" install || die "emake install failed"
171 ! use xorgmodule && rm -rf "${D}"/usr/$(get_libdir)/xorg
172
173 newconfd "${FILESDIR}"/${PN}.confd ${PN}
174 newinitd "${FILESDIR}"/${PN}.initd ${PN}
175
176 rm "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la
177 else
178 cd "${D}"
179 for f in vncserver vncpasswd x0vncserver vncconfig; do
180 rm usr/bin/$f
181 rm usr/share/man/man1/$f.1
182 done
183 fi
184 }
185
186 pkg_postinst() {
187 use server && switch_opengl_implem
188 }

  ViewVC Help
Powered by ViewVC 1.1.20