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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Jun 25 23:45:51 2012 UTC (2 years, 1 month ago) by jdhore
Branch: MAIN
Changes since 1.4: +2 -2 lines
marked x86 per bug 421939

(Portage version: 2.2.0_alpha112/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20