Contents of /smage/trunk/extras/tigervnc/tigervnc-1.0.90_svn4262-r1.smage2
Parent Directory | Revision Log
Revision 1238 -
(show annotations)
(download)
Tue Feb 1 13:26:14 2011 UTC (13 years, 7 months ago) by niro
File size: 3348 byte(s)
Tue Feb 1 13:26:14 2011 UTC (13 years, 7 months ago) by niro
File size: 3348 byte(s)
auto added: ver bump to 1.0.90_svn4262-r1
1 | # $Id$ |
2 | |
3 | PNAME="tigervnc" |
4 | PVER="1.0.90_svn4242" |
5 | PBUILD="r1" |
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.9.3" |
17 | XORG="xorg-server-${XORG_PVER}.tar.bz2" |
18 | XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}" |
19 | XORGDDIR="${SRCDIR}/unix/xserver" |
20 | |
21 | DEPEND=">= virtual/x11" |
22 | SDEPEND=">= dev-lang/nasm-2" |
23 | |
24 | SRC_URI=( |
25 | http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | http://ftp.x.org/pub/individual/xserver/${XORG} |
28 | mirror://xorg-server/${XORG} |
29 | mirror://${PNAME}/tigervnc_48.png |
30 | mirror://${PNAME}/${PNAME}-1.0.90-102434.patch |
31 | mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
32 | mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch |
33 | ) |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | munpack ${XORG} || die |
39 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # patchwork |
43 | # force vncviewer to read password from stdin |
44 | mpatch ${PNAME}-1.0.90-102434.patch || die |
45 | # create X server cookie via mcookie |
46 | mpatch ${PNAME}-1.0.90-cookie.patch || die |
47 | # add reparent support for x window |
48 | mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die |
49 | |
50 | # apply the included xorg patch |
51 | cd ${XORGDDIR} |
52 | local xorg_patch_ver="${XORG_PVER//.}" |
53 | xorg_patch_ver="${xorg_patch_ver:0:2}" |
54 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die |
55 | cd ${SRCDIR} |
56 | |
57 | # reconfigure everything |
58 | cd ${XORGDDIR} |
59 | libtoolize --copy --force || die |
60 | autoreconf --verbose --install --force || die |
61 | |
62 | cd ${SRCDIR} |
63 | libtoolize --copy --force || die |
64 | autoreconf --verbose --install --force || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | mconfigure --disable-static || die |
71 | # only build neccessary things |
72 | # fix broken libtool: it calles sed and it ends in an infinite loop |
73 | mmake -j1 -C ../common LIBTOOL="$(which libtool)" || die |
74 | mmake -j1 -C vncpasswd LIBTOOL="$(which libtool)" || die |
75 | |
76 | # fix build issues |
77 | export CFLAGS="$(pkg-config --cflags libdrm)" |
78 | |
79 | # build the x11 module |
80 | cd ${XORGDDIR} |
81 | mconfigure \ |
82 | --prefix=/usr/X11R6 \ |
83 | --datadir=/usr/X11R6/share \ |
84 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
85 | --with-rgb-path=/usr/X11R6/share/X11/rgb.txt \ |
86 | --with-xkb-output=/usr/X11R6/share/X11/xkb \ |
87 | --with-pic \ |
88 | --disable-xorg \ |
89 | --disable-composite \ |
90 | --enable-xtrap \ |
91 | --enable-glx \ |
92 | --disable-xnest \ |
93 | --disable-xvfb \ |
94 | --disable-dmx \ |
95 | --disable-xwin \ |
96 | --disable-xephyr \ |
97 | --disable-kdrive \ |
98 | --disable-xorgcfg \ |
99 | --disable-xprint \ |
100 | --disable-static \ |
101 | --disable-xevie \ |
102 | --disable-dri \ |
103 | --disable-dri2 \ |
104 | --disable-config-dbus \ |
105 | --disable-config-hal \ |
106 | --enable-install-libxf86config \ |
107 | --disable-shave \ |
108 | || die |
109 | |
110 | # fix broken libtool: it calles sed and it ends in an infinite loop |
111 | mmake -j1 LIBTOOL="$(which libtool)" || die |
112 | } |
113 | |
114 | src_install() |
115 | { |
116 | cd ${SRCDIR} |
117 | # fix broken libtool: it calles sed and it ends in an infinite loop |
118 | mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
119 | |
120 | cd ${XORGDDIR}/hw/vnc |
121 | # fix broken libtool: it calles sed and it ends in an infinite loop |
122 | mmake DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die |
123 | } |