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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Feb 19 15:30:40 2012 UTC (7 years, 7 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
alpha/ia64/sh/sparc stable wrt #394395, remove old

(Portage version: 2.1.10.44/cvs/Linux ia64)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.6 2011/12/27 21:15:45 maekke 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
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc x86"
23 IUSE="nptl +opengl server +xorgmodule"
24
25 RDEPEND="virtual/jpeg
26 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-misc/xkeyboard-config
41 media-fonts/font-adobe-100dpi
42 media-fonts/font-adobe-75dpi
43 media-fonts/font-alias
44 media-fonts/font-cursor-misc
45 media-fonts/font-misc-misc
46 xorgmodule? ( ~x11-base/xorg-server-${XSERVER_VERSION} )
47 )
48 !net-misc/vnc
49 !net-misc/tightvnc
50 !net-misc/xf4vnc"
51 DEPEND="${RDEPEND}
52 amd64? ( dev-lang/nasm )
53 x86? ( dev-lang/nasm )
54 >=x11-proto/inputproto-1.5
55 >=x11-proto/xextproto-7.0.3
56 >=x11-proto/xproto-7.0.13
57 server? (
58 x11-misc/util-macros
59 x11-proto/bigreqsproto
60 x11-proto/compositeproto
61 x11-proto/damageproto
62 x11-proto/dri2proto
63 x11-proto/fixesproto
64 x11-proto/fontsproto
65 >=x11-proto/randrproto-1.2.99
66 x11-proto/resourceproto
67 x11-proto/scrnsaverproto
68 x11-proto/trapproto
69 x11-proto/videoproto
70 x11-proto/xcmiscproto
71 x11-proto/xineramaproto
72 x11-proto/xf86bigfontproto
73 x11-proto/xf86dgaproto
74 x11-proto/xf86driproto
75 x11-proto/xf86miscproto
76 x11-proto/xf86vidmodeproto
77 opengl? ( >=x11-proto/glproto-1.4.10 )
78 >=media-libs/mesa-7.1
79 >=x11-proto/renderproto-0.9.3
80 x11-libs/libpciaccess
81 >=x11-libs/xtrans-1.2.2
82 )"
83
84 #S="${WORKDIR}/${PN}"
85
86 pkg_setup() {
87 if ! use server ; then
88 echo
89 einfo "The 'server' USE flag will build tigervnc's server."
90 einfo "If '-server' is chosen only the client is built to save space."
91 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
92 ebeep
93 epause 5
94 else
95 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
96 OLD_IMPLEM="$(eselect opengl show)"
97 eselect opengl set ${OPENGL_DIR}
98 fi
99 }
100
101 switch_opengl_implem() {
102 # Switch to the xorg implementation.
103 # Use new opengl-update that will not reset user selected
104 # OpenGL interface ...
105 echo
106 eselect opengl set ${OLD_IMPLEM}
107 }
108
109 src_unpack() {
110 unpack ${A}
111 cd "${S}"
112
113 if use server ; then
114 cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/* unix/xserver
115 fi
116
117 eautoreconf
118 cd unix
119
120 if use server ; then
121 epatch xserver110.patch
122 epatch "${FILESDIR}"/xserver111.patch
123 cd xserver
124 eautoreconf
125 fi
126 }
127
128 src_compile() {
129 econf --without-included-zlib --with-system-jpeg || die "econf failed"
130 emake || die "emake failed"
131
132 if use server ; then
133 cd unix/xserver
134 econf \
135 --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
136 --disable-xwin --disable-xephyr --disable-kdrive --with-pic \
137 --disable-static --disable-xinerama \
138 --disable-composite \
139 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
140 --enable-install-libxf86config \
141 --enable-dri2 \
142 --disable-config-dbus \
143 --disable-config-hal \
144 --with-xmlto=no \
145 --disable-unit-tests \
146 $(use_enable opengl glx) \
147 $(use_enable nptl glx-tls) \
148 || die "econf server failed"
149 emake || die "emake server failed"
150 fi
151 }
152
153 src_install() {
154 dodoc README.txt
155
156 cd unix
157 emake DESTDIR="${D}" install || die "emake install failed"
158 newman vncviewer/vncviewer.man vncviewer.1
159
160 newicon "${DISTDIR}"/tigervnc.png vncviewer.png
161 make_desktop_entry vncviewer vncviewer vncviewer Network
162
163 if use server ; then
164 cd xserver/hw/vnc
165 emake DESTDIR="${D}" install || die "emake install failed"
166 ! use xorgmodule && rm -rf "${D}"/usr/$(get_libdir)/xorg
167
168 newconfd "${FILESDIR}"/${PN}.confd ${PN}
169 newinitd "${FILESDIR}"/${PN}.initd ${PN}
170
171 rm "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la
172 else
173 cd "${D}"
174 for f in vncserver vncpasswd x0vncserver vncconfig; do
175 rm usr/bin/$f
176 rm usr/share/man/man1/$f.1
177 done
178 fi
179 }
180
181 pkg_postinst() {
182 use server && switch_opengl_implem
183 }

  ViewVC Help
Powered by ViewVC 1.1.20