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