Magellan Linux

Contents of /trunk/extras/tigervnc/tigervnc-1.0.90_svn4063-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5450 - (show annotations) (download)
Fri Jun 18 07:15:48 2010 UTC (13 years, 11 months ago) by niro
File size: 9373 byte(s)
-split package; build java-applet too
1 # $Id$
2
3 PNAME="tigervnc"
4 PVER="1.0.90_svn4063"
5 PBUILD="r2"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality."
11 HOMEPAGE="http://www.tigervnc.com/"
12
13 SRCFILE="${PNAME}-${PVER}.tar.bz2"
14 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
15
16 XORG_PVER="1.8.0"
17 XORG="xorg-server-${XORG_PVER}.tar.bz2"
18 XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}"
19 XORGDDIR="${SRCDIR}/unix/xserver"
20
21 SDEPEND=">= x11-libs/libX11-1.3
22 >= x11-libs/libXext-1.1
23 >= x11-libs/libSM-1.1.0
24 >= x11-libs/libXtst-1.0.3
25 >= x11-libs/libXi-1.2.1
26 >= x11-libs/libXfont-1.4.0
27 >= x11-libs/libxkbfile-1.0.5
28 >= x11-libs/pixman-0.18.0
29 >= sys-libs/zlib-1.2.3
30 >= media-libs/freetype-2.3.9
31 >= x11-apps/xauth-1.0.3
32 >= x11-apps/xsetroot-1.0.2
33 >= x11-misc/xkeyboard-config-1.8
34 >= media-fonts/font-adobe-100dpi-1
35 >= media-fonts/font-adobe-75dpi-1
36 >= media-fonts/font-alias-1
37 >= media-fonts/font-cursor-misc-1
38 >= media-fonts/font-misc-misc-1
39 == x11-base/xorg-server-${XORG_PVER}
40 >= app-crypt/gnutls-2.8
41 >= sys-fs/udev-151"
42
43 SDEPEND+="
44 >= dev-util/desktop-file-utils-0.15
45 >= dev-lang/nasm-2
46 >= x11-proto/xextproto-7.0.5
47 >= x11-proto/inputproto-1.5.0
48 >= x11-proto/bigreqsproto-1.0.2
49 >= x11-proto/compositeproto-0.4
50 >= x11-proto/damageproto-1.1.0
51 >= x11-proto/dri2proto-2.0
52 >= x11-proto/fixesproto-4.0
53 >= x11-proto/fontsproto-2.0.2
54 >= x11-proto/randrproto-1.3.0
55 >= x11-proto/resourceproto-1.0.2
56 >= x11-proto/scrnsaverproto-1.1.0
57 >= x11-proto/trapproto-3.4.3
58 >= x11-proto/videoproto-2.2.2
59 >= x11-proto/xcmiscproto-1.1.2
60 >= x11-proto/xineramaproto-1.1.2
61 >= x11-proto/xf86bigfontproto-1.1.2
62 >= x11-proto/xf86dgaproto-2.0.3
63 >= x11-proto/xf86driproto-2.0.4
64 >= x11-proto/xf86miscproto-0.9.2
65 >= x11-proto/xf86vidmodeproto-2.2.2
66 >= x11-proto/glproto-1.4.9
67 >= x11-proto/renderproto-0.9.3
68 >= x11-libs/libpciaccess-0.10.6
69 >= virtual/java-jdk"
70
71 sminclude xorg xdg mtools cleanutils
72
73 SPLIT_PACKAGES="tigervnc-common tigervnc-server tigervnc-xserver-module tigervnc-server-applet tigervnc"
74
75 SRC_URI=(
76 sourceforge://${PNAME}/${SRCFILE}
77 mirror://${PNAME}/${SRCFILE}
78 http://ftp.x.org/pub/individual/xserver/${XORG}
79 mirror://xorg-server/${XORG}
80 mirror://${PNAME}/tigervnc_48.png
81 mirror://${PNAME}/${PNAME}-1.0.90-102434.patch
82 mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch
83 mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch
84 mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch
85 )
86
87 UP2DATE="updatecmd_sourceforge ${PNAME}"
88
89 split_info_tigervnc-common()
90 {
91 DESCRIPTION="Common TigerVNC libs and utils."
92 DEPEND=">= x11-libs/libX11-1.3
93 >= x11-libs/libXext-1.1
94 >= x11-libs/libSM-1.1.0
95 >= x11-libs/libXtst-1.0.3
96 >= x11-libs/libXi-1.2.1
97 >= sys-libs/zlib-1.2.3
98 >= app-crypt/gnutls-2.8"
99 unset -f postinstall
100 }
101
102 split_info_tigervnc-server()
103 {
104 DESCRIPTION="TigerVNC VNC server."
105 DEPEND="== net-misc/tigervnc-common-${PVER}
106 >= x11-libs/libX11-1.3
107 >= x11-libs/libXext-1.1
108 >= x11-libs/libSM-1.1.0
109 >= x11-libs/libXtst-1.0.3
110 >= x11-libs/libXi-1.2.1
111 >= x11-libs/libXfont-1.4.0
112 >= x11-libs/pixman-0.18.0
113 >= sys-libs/zlib-1.2.3
114 >= media-libs/freetype-2.3.9
115 >= x11-apps/xauth-1.0.3
116 >= x11-apps/xsetroot-1.0.2
117 >= x11-misc/xkeyboard-config-1.8
118 >= media-fonts/font-adobe-100dpi-1
119 >= media-fonts/font-adobe-75dpi-1
120 >= media-fonts/font-alias-1
121 >= media-fonts/font-cursor-misc-1
122 >= media-fonts/font-misc-misc-1
123 >= app-crypt/gnutls-2.8
124 >= sys-fs/udev-151"
125
126 unset -f postinstall
127 }
128
129 split_info_tigervnc-xserver-module()
130 {
131 DESCRIPTION="TigerVNC Xorg server module."
132 DEPEND="== net-misc/tigervnc-common-${PVER}
133 >= media-fonts/font-adobe-100dpi-1
134 >= media-fonts/font-adobe-75dpi-1
135 >= media-fonts/font-alias-1
136 >= media-fonts/font-cursor-misc-1
137 >= media-fonts/font-misc-misc-1
138 == x11-base/xorg-server-${XORG_PVER}"
139
140 postinstall()
141 {
142 echo
143 echo "Add following to /etc/X11/xorg.conf for native X display support:"
144 echo ' Section "Module"'
145 echo " ..."
146 echo ' Load "vnc"'
147 echo " EndSection"
148 echo
149 echo "To enable VNC password authentification use the vncpasswd program:"
150 echo " 'vncpasswd'"
151 echo
152 echo "You will also need to tell the VNC module where the password is stored:"
153 echo ' Section "Screen"'
154 echo " ..."
155 echo ' Option "SecurityTypes" "VncAuth"'
156 echo ' Option "UserPasswdVerifier" "VncAuth"'
157 echo ' Option "PasswordFile" "/root/.vnc/passwd"'
158 echo " EndSection"
159 echo
160 }
161 }
162
163 split_info_tigervnc-server-applet()
164 {
165 DESCRIPTION="TigerVNC VNC server."
166 DEPEND=">= virtual/java"
167 unset -f postinstall
168 }
169
170 split_info_tigervnc()
171 {
172 DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality."
173 DEPEND="== net-misc/tigervnc-common-${PVER}
174 == net-misc/tigervnc-server-${PVER}
175 == net-misc/tigervnc-xserver-module-${PVER}
176 == net-misc/tigervnc-server-applet-${PVER}"
177
178 PKGTYPE="virtual"
179 NOPKGBUILD="true"
180
181 # drop everything we don't need in the meta package:
182 INHERITS=""
183 SPECIAL_VARS=""
184 SPECIAL_FUNCTIONS=""
185 SDEPEND=""
186 PROVIDE=""
187 unset -f preinstall
188 unset -f postinstall
189 unset -f preremove
190 unset -f postremove
191 }
192
193 src_prepare()
194 {
195 munpack ${SRCFILE} || die
196 munpack ${XORG} || die
197 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
198 cd ${SRCDIR}
199
200 # patchwork
201 # force vncviewer to read password from stdin
202 mpatch ${PNAME}-1.0.90-102434.patch || die
203 # create X server cookie via mcookie
204 mpatch ${PNAME}-1.0.90-cookie.patch || die
205 # add reparent support for x window
206 mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die
207 # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
208 mpatch ${PNAME}-1.0.90-ldnow.patch || die
209
210 # apply the included xorg patch
211 cd ${XORGDDIR}
212 local xorg_patch_ver="${XORG_PVER//.}"
213 xorg_patch_ver="${xorg_patch_ver:0:2}"
214 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
215 cd ${SRCDIR}
216
217 # use newer gettext
218 sed -i 's/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION([0.17])/' configure.ac || die
219
220 # reconfigure everything
221 cd ${XORGDDIR}
222 autoreconf --verbose --install --force || die
223
224 cd ${SRCDIR}
225 autoreconf --verbose --install --force || die
226 }
227
228 src_compile()
229 {
230 cd ${SRCDIR}
231 mconfigure --disable-static || die
232 mmake || die
233
234 # fixed build issues
235 export CFLAGS="${CFLAGS} -I/usr/include/drm"
236 export CXXFLAGS="${CXXFLAGS} -I/usr/include/drm"
237
238 # build the x11 module
239 cd ${XORGDDIR}
240 mconfigure \
241 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
242 --with-rgb-path=/usr/share/X11/rgb.txt \
243 --with-xkb-output=/usr/share/X11/xkb \
244 --with-pic \
245 --disable-xorg \
246 --disable-composite \
247 --enable-xtrap \
248 --enable-glx \
249 --disable-xnest \
250 --disable-xvfb \
251 --disable-dmx \
252 --disable-xwin \
253 --disable-xephyr \
254 --disable-kdrive \
255 --disable-xorgcfg \
256 --disable-xprint \
257 --disable-static \
258 --disable-xevie \
259 --disable-dri \
260 --disable-dri2 \
261 --disable-config-dbus \
262 --disable-config-hal \
263 --enable-install-libxf86config \
264 || die
265
266 mmake || die
267
268 # build the java applet
269 cd ${SRCDIR}/java/src/com/tigervnc/vncviewer
270 mmake -j1 || die
271 }
272
273 src_install_tigervnc-common()
274 {
275 cd ${SRCDIR}
276 mmake DESTDIR=${BINDIR} install || die
277
278 # cleanup
279 zapmost ${BINDIR} usr/bin/vncpasswd usr/bin/vncviewer usr/share/locale || die
280
281 # install man pages
282 cp ${SRCDIR}/unix/vncviewer/vncviewer.{man,1} || die
283 cp ${SRCDIR}/unix/vncpasswd/vncpasswd.{man,1} || die
284 minstallman ${SRCDIR}/unix/vncviewer/vncviewer.1 || die
285 minstallman ${SRCDIR}/unix/vncpasswd/vncpasswd.1 || die
286
287 # desktop icon
288 minstallpixmap tigervnc_48.png vncviewer.png || die
289 minstall_desktop_icon \
290 --name "TigerVNC Viewer" \
291 --file "vncviewer" \
292 --comment "Connect to VNC server and display remote desktop" \
293 --exec /usr/bin/vncviewer \
294 --icon vncviewer.png \
295 --categories "Application,Network" \
296 || die
297
298 # docs
299 minstalldocs README LICENCE.TXT || die
300 }
301
302 src_install_tigervnc-server()
303 {
304 cd ${SRCDIR}
305 mmake DESTDIR=${BINDIR} install || die
306
307 # install server module and binaries
308 cd ${XORGDDIR}/hw/vnc
309 mmake DESTDIR=${BINDIR} install || die
310
311 # cleanup
312 rm ${BINDIR}/usr/bin/vncpasswd || die
313 rm ${BINDIR}/usr/bin/vncviewer || die
314 rm -r ${BINDIR}/usr/share/locale || die
315 rm -r ${BINDIR}/usr/share/man || die
316 rm -r ${BINDIR}/usr/$(mlibdir) || die
317
318 # install man pages
319 cp ${SRCDIR}/unix/vncconfig/vncconfig.{man,1} || die
320 cp ${SRCDIR}/unix/vncserver.{man,1} || die
321 cp ${SRCDIR}/unix/x0vncserver/x0vncserver.{man,1} || die
322 cp ${XORGDDIR}/hw/vnc/Xvnc.{man,1} || die
323 minstallman ${SRCDIR}/unix/vncconfig/vncconfig.1 || die
324 minstallman ${SRCDIR}/unix/vncserver.1 || die
325 minstallman ${SRCDIR}/unix/x0vncserver/x0vncserver.1 || die
326 minstallman ${XORGDDIR}/hw/vnc/Xvnc.1 || die
327 }
328
329 src_install_tigervnc-xserver-module()
330 {
331 # install server module and binaries
332 cd ${XORGDDIR}/hw/vnc
333 mmake DESTDIR=${BINDIR} install || die
334
335 # cleanup
336 zapmost ${BINDIR} usr/$(mlibdir) || die
337
338 # not needed
339 rm ${BINDIR}/usr/$(mlibdir)/xorg/modules/extensions/libvnc.la || die
340 }
341
342 src_install_tightvnc-server-applet()
343 {
344 cd ${SRCDIR}/java/src/com/tigervnc/vncviewer
345 minstalldir ${BINDIR}/usr/share/vnc/classes || die
346 minstallexec VncViewer.jar ${BINDIR}/usr/share/vnc/classes || die
347 minstallfile index.vnc ${BINDIR}/usr/share/vnc/classes || die
348 }

Properties

Name Value
svn:keywords Id