Annotation of /smage/trunk/core/tigervnc/tigervnc-1.1.0-r1.smage2
Parent Directory | Revision Log
Revision 1985 -
(hide annotations)
(download)
Wed Nov 9 18:01:52 2011 UTC (12 years, 6 months ago) by niro
File size: 4674 byte(s)
Wed Nov 9 18:01:52 2011 UTC (12 years, 6 months ago) by niro
File size: 4674 byte(s)
auto added: ver bump to 1.1.0-r1
1 | niro | 1985 | # $Id$ |
2 | |||
3 | PNAME="tigervnc" | ||
4 | PVER="1.1.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | |||
9 | DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality." | ||
10 | HOMEPAGE="http://www.tigervnc.com/" | ||
11 | |||
12 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
13 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
14 | |||
15 | XORG_PVER="1.11.2" | ||
16 | XORG="xorg-server-${XORG_PVER}.tar.bz2" | ||
17 | XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}" | ||
18 | XORGDDIR="${SRCDIR}/unix/xserver" | ||
19 | |||
20 | DEPEND=">= x11-libs/libX11-1.4 | ||
21 | >= x11-libs/libXext-1.3 | ||
22 | >= x11-libs/libSM-1.2 | ||
23 | >= x11-libs/libXtst-1.2 | ||
24 | >= x11-libs/libXi-1.4 | ||
25 | >= sys-libs/zlib-1.2.5 | ||
26 | >= media-fonts/font-adobe-75dpi-1 | ||
27 | >= media-fonts/font-misc-misc-1 | ||
28 | == x11-base/xorg-server-${XORG_PVER}" | ||
29 | |||
30 | SDEPEND=">= dev-lang/nasm-2 | ||
31 | >= x11-proto/xextproto-7.2 | ||
32 | >= x11-proto/inputproto-2 | ||
33 | >= x11-proto/bigreqsproto-1.1 | ||
34 | >= x11-proto/compositeproto-0.4 | ||
35 | >= x11-proto/damageproto-1.2 | ||
36 | >= x11-proto/dri2proto-2.3 | ||
37 | >= x11-proto/fixesproto-5 | ||
38 | >= x11-proto/fontsproto-2.1 | ||
39 | >= x11-proto/randrproto-1.3 | ||
40 | >= x11-proto/resourceproto-1.2 | ||
41 | >= x11-proto/scrnsaverproto-1.2 | ||
42 | >= x11-proto/videoproto-2.3 | ||
43 | >= x11-proto/xcmiscproto-1.2 | ||
44 | >= x11-proto/xineramaproto-1.2 | ||
45 | >= x11-proto/xf86bigfontproto-1.2 | ||
46 | >= x11-proto/xf86dgaproto-2.1 | ||
47 | >= x11-proto/xf86driproto-2.1 | ||
48 | >= x11-proto/xf86miscproto-0.9.3 | ||
49 | >= x11-proto/xf86vidmodeproto-2.3 | ||
50 | >= x11-proto/glproto-1.4.12 | ||
51 | >= x11-proto/renderproto-0.11 | ||
52 | >= x11-libs/libpciaccess-0.12" | ||
53 | |||
54 | MCORE_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" | ||
55 | sminclude mcore-split | ||
56 | |||
57 | SRC_URI=( | ||
58 | sourceforge://${PNAME}/${SRCFILE} | ||
59 | mirror://${PNAME}/${SRCFILE} | ||
60 | http://ftp.x.org/pub/individual/xserver/${XORG} | ||
61 | mirror://xorg-server/${XORG} | ||
62 | mirror://${PNAME}/tigervnc_48.png | ||
63 | mirror://${PNAME}/${PNAME}-1.0.90-102434.patch | ||
64 | mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch | ||
65 | mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch | ||
66 | mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch | ||
67 | mirror://${PNAME}/${PNAME}-${PVER}-gethomedir.patch | ||
68 | mirror://${PNAME}/${PNAME}-${PVER}-rh692048.patch | ||
69 | mirror://${PNAME}/${PNAME}-${PVER}-xserver110.patch | ||
70 | mirror://${PNAME}/${PNAME}-${PVER}-xserver111.patch | ||
71 | ) | ||
72 | |||
73 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
74 | |||
75 | src_prepare() | ||
76 | { | ||
77 | munpack ${SRCFILE} || die | ||
78 | munpack ${XORG} || die | ||
79 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die | ||
80 | cd ${SRCDIR} | ||
81 | |||
82 | # patchwork | ||
83 | # force vncviewer to read password from stdin | ||
84 | mpatch ${PNAME}-1.0.90-102434.patch || die | ||
85 | # create X server cookie via mcookie | ||
86 | mpatch ${PNAME}-1.0.90-cookie.patch || die | ||
87 | # add reparent support for x window | ||
88 | mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die | ||
89 | # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup | ||
90 | mpatch ${PNAME}-1.0.90-ldnow.patch || die | ||
91 | |||
92 | mpatch ${PNAME}-${PVER}-gethomedir.patch || die | ||
93 | mpatch ${PNAME}-${PVER}-rh692048.patch || die | ||
94 | cd ${XORGDDIR} | ||
95 | mpatch ${PNAME}-${PVER}-xserver110.patch || die | ||
96 | cd ${SRCDIR} | ||
97 | mpatch ${PNAME}-${PVER}-xserver111.patch || die | ||
98 | |||
99 | # applied above | ||
100 | # # apply the included xorg patch | ||
101 | # cd ${XORGDDIR} | ||
102 | # local xorg_patch_ver="${XORG_PVER%.*}" | ||
103 | # xorg_patch_ver="${xorg_patch_ver//.}" | ||
104 | # patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die | ||
105 | |||
106 | # reconfigure everything | ||
107 | cd ${XORGDDIR} | ||
108 | libtoolize --copy --force || die | ||
109 | autoreconf --verbose --install --force || die | ||
110 | |||
111 | cd ${SRCDIR} | ||
112 | libtoolize --copy --force || die | ||
113 | autoreconf --verbose --install --force || die | ||
114 | } | ||
115 | |||
116 | src_compile() | ||
117 | { | ||
118 | cd ${SRCDIR} | ||
119 | mconfigure --disable-static || die | ||
120 | # only build neccessary things | ||
121 | mmake -j1 -C common || die | ||
122 | mmake -j1 -C unix/vncpasswd || die | ||
123 | |||
124 | # fix build issues | ||
125 | export CFLAGS="$(pkg-config --cflags libdrm)" | ||
126 | |||
127 | # build the x11 module | ||
128 | cd ${XORGDDIR} | ||
129 | mconfigure \ | ||
130 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
131 | --with-fontdir=/usr/share/fonts \ | ||
132 | --with-rgb-path=/usr/share/X11/rgb.txt \ | ||
133 | --with-xkb-output=/usr/share/X11/xkb \ | ||
134 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ | ||
135 | --with-dri-driver-path=/usr/$(mlibdir)/dri \ | ||
136 | --with-pic \ | ||
137 | --without-dtrace \ | ||
138 | --disable-xorg \ | ||
139 | --disable-composite \ | ||
140 | --enable-xtrap \ | ||
141 | --enable-glx \ | ||
142 | --disable-xnest \ | ||
143 | --disable-xvfb \ | ||
144 | --disable-dmx \ | ||
145 | --disable-xwin \ | ||
146 | --disable-xephyr \ | ||
147 | --disable-kdrive \ | ||
148 | --disable-xorgcfg \ | ||
149 | --disable-xprint \ | ||
150 | --disable-static \ | ||
151 | --disable-xevie \ | ||
152 | --disable-dri \ | ||
153 | --enable-dri2 \ | ||
154 | --disable-config-dbus \ | ||
155 | --disable-config-hal \ | ||
156 | --disable-config-udev \ | ||
157 | --enable-install-libxf86config \ | ||
158 | --disable-unit-tests \ | ||
159 | || die | ||
160 | |||
161 | mmake || die | ||
162 | } | ||
163 | |||
164 | mcore_generic_src_install() | ||
165 | { | ||
166 | cd ${SRCDIR} | ||
167 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die | ||
168 | |||
169 | cd ${XORGDDIR}/hw/vnc | ||
170 | mmake DESTDIR=${BINDIR} install || die | ||
171 | } |