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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Jan 10 09:38:53 2008 UTC (10 years, 10 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.2-r2.ebuild,v 1.13 2007/08/27 11:54:50 armin76 Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7 inherit eutils toolchain-funcs multilib autotools
8
9 XSERVER_VERSION="1.2.0"
10 PATCH_VER=0.2
11
12 MY_P="vnc-4_1_2-unixsrc"
13 DESCRIPTION="Remote desktop viewer display system"
14 HOMEPAGE="http://www.realvnc.com/"
15 SRC_URI="http://ltsp.mirrors.tds.net/pub/ltsp/tarballs/${MY_P}.tar.gz
16 http://ftp.plusline.de/FreeBSD/distfiles/xc/${MY_P}.tar.gz
17 http://dev.gentooexperimental.org/~armin76/dist/${PF}-patches-${PATCH_VER}.tar.bz2
18 mirror://gentoo/${PF}-patches-${PATCH_VER}.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 hppa ia64 ~mips ppc ppc64 sh ~sparc x86"
24 IUSE="server"
25
26 RDEPEND="sys-libs/zlib
27 media-libs/freetype
28 x11-libs/libSM
29 x11-libs/libXtst
30 server? (
31 x11-libs/libXi
32 x11-libs/libXfont
33 x11-libs/libXmu
34 x11-libs/libxkbfile
35 x11-libs/libXrender
36 x11-apps/xauth
37 x11-apps/xsetroot
38 media-fonts/font-adobe-100dpi
39 media-fonts/font-adobe-75dpi
40 media-fonts/font-alias
41 media-fonts/font-cursor-misc
42 media-fonts/font-misc-misc
43 ~x11-base/xorg-server-${XSERVER_VERSION}
44 )
45 !net-misc/tightvnc"
46 DEPEND="${RDEPEND}
47 x11-proto/xextproto
48 server? (
49 x11-proto/compositeproto
50 x11-proto/damageproto
51 x11-proto/fixesproto
52 x11-proto/fontsproto
53 x11-proto/inputproto
54 x11-proto/randrproto
55 x11-proto/resourceproto
56 x11-proto/scrnsaverproto
57 x11-proto/trapproto
58 x11-proto/videoproto
59 x11-proto/xineramaproto
60 x11-proto/xf86bigfontproto
61 x11-proto/xf86dgaproto
62 x11-proto/xf86miscproto
63 x11-proto/xf86vidmodeproto
64 )"
65
66 S=${WORKDIR}/${MY_P}
67
68 pkg_setup() {
69 if ! use server ; then
70 echo
71 einfo "The 'server' USE flag will build vnc's server."
72 einfo "If '-server' is chosen only the client is built to save space."
73 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
74 ebeep
75 epause 5
76 fi
77 }
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82
83 if use server ; then
84 mv "${WORKDIR}"/xorg-server-${XSERVER_VERSION} unix/xorg-x11-server-source
85 else
86 rm -f "${WORKDIR}"/patch/*vnc-server*
87 fi
88
89 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
90
91 cd common
92 eautoreconf
93 cd ../unix
94 eautoreconf
95
96 if use server ; then
97 cp -RPp xc/programs/Xserver/vnc/Xvnc/xvnc.cc \
98 xc/programs/Xserver/Xvnc.man \
99 xc/programs/Xserver/vnc/*.{h,cc} \
100 xorg-x11-server-source/hw/vnc
101 cp -RPp xorg-x11-server-source/{cfb/cfb.h,hw/vnc}
102 cp -RPp xorg-x11-server-source/{fb/fb.h,hw/vnc}
103 cp -RPp xorg-x11-server-source/{fb/fbrop.h,hw/vnc}
104 sed -i -e 's,xor,c_xor,' -e 's,and,c_and,' \
105 xorg-x11-server-source/hw/vnc/{cfb,fb,fbrop}.h
106 cd xorg-x11-server-source
107 eautoreconf
108 fi
109
110 cd "${S}"
111 epatch "${FILESDIR}"/${PN}-${PV}-freebsd.patch
112 }
113
114 src_compile() {
115 cd common
116 econf || die "econf failed"
117 emake || die "emake failed"
118 cd ../unix
119 econf || die "econf failed"
120 emake || die "emake failed"
121
122 if use server ; then
123 cd xorg-x11-server-source
124 econf \
125 --enable-xorg \
126 --disable-xnest --disable-xvfb --disable-dmx \
127 --disable-xwin --disable-xephyr --disable-kdrive \
128 --with-pic \
129 --disable-xorgcfg \
130 --disable-xprint \
131 --disable-static \
132 --enable-composite \
133 --enable-xtrap \
134 --enable-xcsecurity \
135 --with-xkb-output=/usr/share/X11/xkb \
136 --with-rgb-path=/usr/share/X11/rgb.txt \
137 --disable-xevie \
138 --disable-dri \
139 --enable-glx \
140 --with-int10=stub \
141 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
142 || die "econf server failed"
143 emake || die "emake server failed"
144 fi
145 }
146
147 src_install() {
148 cd common
149 emake DESTDIR="${D}" install || die "emake install failed"
150 cd ../unix
151 emake DESTDIR="${D}" install || die "emake install failed"
152 newman vncviewer/vncviewer.man vncviewer.1
153 cd ..
154 dodoc README
155
156 doicon ${FILESDIR}/vncviewer.png
157 make_desktop_entry vncviewer vncviewer vncviewer.png Network
158
159 if use server ; then
160 cd unix
161 dobin vncserver || die "dobin failed"
162 for f in vncviewer/vncviewer vncpasswd/vncpasswd \
163 vncconfig/vncconfig vncserver x0vncserver/x0vncserver; do
164 mv $f.man $f.1
165 doman $f.1
166 done
167
168 cd xorg-x11-server-source/hw/vnc
169 emake DESTDIR="${D}" install || die "emake install failed"
170
171 newman Xvnc.man Xvnc.1
172 newconfd "${FILESDIR}"/vnc.confd vnc
173 newinitd "${FILESDIR}"/vnc.initd vnc
174
175 rm "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la
176 else
177 cd "${D}"
178 rm usr/bin/x0vncserver
179 rm usr/bin/vncpasswd
180 rm usr/bin/vncconfig
181 fi
182
183 rm ${D}/usr/$(get_libdir)/librfb.{a,la,so}
184 }

  ViewVC Help
Powered by ViewVC 1.1.20