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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 26 10:14:38 2007 UTC (10 years, 9 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.2.12)

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-r1.ebuild,v 1.5 2007/04/12 17:43:35 armin76 Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7 inherit eutils toolchain-funcs multilib autotools
8
9 XSERVER_VERSION="1.1.1"
10 PATCH_VER=0.1
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 mirror://gentoo/${PF}-patches-${PATCH_VER}.tar.bz2
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
23 IUSE="server"
24
25 RDEPEND="sys-libs/zlib
26 media-libs/freetype
27 x11-libs/libSM
28 x11-libs/libXtst
29 server? (
30 x11-libs/libXi
31 x11-libs/libXfont
32 x11-libs/libXmu
33 x11-libs/libxkbfile
34 x11-libs/libXrender
35 x11-apps/xauth
36 x11-apps/xsetroot
37 media-fonts/font-adobe-100dpi
38 media-fonts/font-adobe-75dpi
39 media-fonts/font-alias
40 media-fonts/font-cursor-misc
41 media-fonts/font-misc-misc
42 >=x11-base/xorg-server-1.1
43 )
44 !net-misc/tightvnc"
45 DEPEND="${RDEPEND}
46 x11-proto/xextproto
47 server? (
48 x11-proto/compositeproto
49 x11-proto/damageproto
50 x11-proto/fixesproto
51 x11-proto/fontsproto
52 x11-proto/randrproto
53 x11-proto/resourceproto
54 x11-proto/scrnsaverproto
55 x11-proto/trapproto
56 x11-proto/videoproto
57 x11-proto/xineramaproto
58 x11-proto/xf86bigfontproto
59 x11-proto/xf86dgaproto
60 x11-proto/xf86miscproto
61 x11-proto/xf86vidmodeproto
62 )"
63
64 S=${WORKDIR}/${MY_P}
65
66 pkg_setup() {
67 if ! use server ; then
68 echo
69 einfo "The 'server' USE flag will build vnc's server."
70 einfo "If '-server' is chosen only the client is built to save space."
71 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
72 ebeep
73 epause 5
74 fi
75 }
76
77 src_unpack() {
78 unpack ${A}
79 cd "${S}"
80
81 if use server ; then
82 mv "${WORKDIR}"/xorg-server-${XSERVER_VERSION} unix/
83 else
84 rm -f "${WORKDIR}"/patch/*vnc-server*
85 fi
86 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
87 cd unix
88 eautoreconf
89 cd ../common
90 eautoreconf
91
92 if use server ; then
93 cd "${S}"
94 cp -a unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc \
95 unix/xc/programs/Xserver/Xvnc.man \
96 unix/xc/programs/Xserver/vnc/*.{h,cc} \
97 unix/xorg-server-*/hw/vnc
98 cp -a unix/xorg-server-*/{cfb/cfb.h,hw/vnc}
99 cp -a unix/xorg-server-*/{fb/fb.h,hw/vnc}
100 cp -a unix/xorg-server-*/{fb/fbrop.h,hw/vnc}
101 sed -i -e 's,xor,c_xor,' -e 's,and,c_and,' \
102 unix/xorg-server*/hw/vnc/{cfb,fb,fbrop}.h
103 cd unix/xorg-server-*
104 eautoreconf
105 fi
106 }
107
108 src_compile() {
109 cd unix
110 econf --with-installed-zlib --with-fb || die "econf failed"
111 emake || die "emake failed"
112
113 if use server ; then
114 cd xorg-server-*
115 econf \
116 --enable-xorg \
117 --disable-dependency-tracking \
118 --disable-xprint \
119 --disable-static \
120 --enable-composite \
121 --with-xkb-output=/usr/share/X11/xkb \
122 --with-rgb-path=/usr/share/X11/rgb.txt \
123 --disable-xorgcfg \
124 --disable-dmx \
125 --disable-lbx \
126 --enable-xdmcp \
127 --disable-xevie \
128 --disable-dri \
129 --enable-glx \
130 --with-int10=stub \
131 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
132 || die "econf server failed"
133 emake CDEBUGFLAGS="${CFLAGS}" CXXDEBUGFLAGS="${CXXFLAGS}" || die "emake server failed"
134 fi
135 }
136
137 src_install() {
138 dodir /usr/bin /usr/share/man/man1
139 use server && dodir /usr/$(get_libdir)/xorg/modules/extensions
140
141 cd unix
142 ./vncinstall "${D}"/usr/bin "${D}"/usr/share/man "${D}"/usr/$(get_libdir)/xorg/modules/extensions || die "failed to run vncinstall"
143 cd ..
144 dodoc README
145
146 doicon ${FILESDIR}/vncviewer.png
147 make_desktop_entry vncviewer vncviewer vncviewer.png Network
148
149 if use server ; then
150 newconfd "${FILESDIR}"/vnc.confd vnc
151 newinitd "${FILESDIR}"/vnc.initd vnc
152 else
153 cd "${D}"
154 rm usr/bin/vncserver
155 rm usr/bin/x0vncserver
156 rm usr/share/man/man1/vnc{passwd,config,server}.1
157 rm usr/share/man/man1/x0vncserver.1
158 rm usr/bin/vncpasswd
159 rm usr/bin/vncconfig
160 fi
161 }

  ViewVC Help
Powered by ViewVC 1.1.20