Annotation of /smage/trunk/extras/tigervnc/tigervnc-1.0.90_svn4262-r1.smage2
Parent Directory | Revision Log
Revision 1244 -
(hide annotations)
(download)
Tue Feb 1 14:02:21 2011 UTC (13 years, 3 months ago) by niro
File size: 3154 byte(s)
Tue Feb 1 14:02:21 2011 UTC (13 years, 3 months ago) by niro
File size: 3154 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 | niro | 1244 | MCORE_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" |
25 | niro | 1243 | sminclude mcore-split |
26 | |||
27 | niro | 1235 | SRC_URI=( |
28 | http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE} | ||
29 | mirror://${PNAME}/${SRCFILE} | ||
30 | http://ftp.x.org/pub/individual/xserver/${XORG} | ||
31 | mirror://xorg-server/${XORG} | ||
32 | mirror://${PNAME}/tigervnc_48.png | ||
33 | niro | 1238 | mirror://${PNAME}/${PNAME}-1.0.90-102434.patch |
34 | mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch | ||
35 | mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch | ||
36 | niro | 1239 | mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch |
37 | niro | 1235 | ) |
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | munpack ${XORG} || die | ||
43 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | # patchwork | ||
47 | niro | 1238 | # force vncviewer to read password from stdin |
48 | mpatch ${PNAME}-1.0.90-102434.patch || die | ||
49 | # create X server cookie via mcookie | ||
50 | mpatch ${PNAME}-1.0.90-cookie.patch || die | ||
51 | # add reparent support for x window | ||
52 | mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die | ||
53 | niro | 1239 | # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup |
54 | mpatch ${PNAME}-1.0.90-ldnow.patch || die | ||
55 | niro | 1235 | |
56 | # apply the included xorg patch | ||
57 | cd ${XORGDDIR} | ||
58 | local xorg_patch_ver="${XORG_PVER//.}" | ||
59 | xorg_patch_ver="${xorg_patch_ver:0:2}" | ||
60 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die | ||
61 | cd ${SRCDIR} | ||
62 | |||
63 | # reconfigure everything | ||
64 | cd ${XORGDDIR} | ||
65 | libtoolize --copy --force || die | ||
66 | autoreconf --verbose --install --force || die | ||
67 | |||
68 | niro | 1237 | cd ${SRCDIR} |
69 | niro | 1235 | libtoolize --copy --force || die |
70 | autoreconf --verbose --install --force || die | ||
71 | } | ||
72 | |||
73 | src_compile() | ||
74 | { | ||
75 | niro | 1238 | cd ${SRCDIR} |
76 | niro | 1235 | mconfigure --disable-static || die |
77 | # only build neccessary things | ||
78 | niro | 1240 | mmake -j1 -C common || die |
79 | niro | 1241 | mmake -j1 -C unix/vncpasswd || die |
80 | niro | 1235 | |
81 | # fix build issues | ||
82 | export CFLAGS="$(pkg-config --cflags libdrm)" | ||
83 | |||
84 | # build the x11 module | ||
85 | cd ${XORGDDIR} | ||
86 | mconfigure \ | ||
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 | niro | 1242 | --with-rgb-path=/usr/share/X11/rgb.txt \ |
89 | --with-xkb-output=/usr/share/X11/xkb \ | ||
90 | niro | 1235 | --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 | niro | 1240 | mmake -j1 || die |
114 | niro | 1235 | } |
115 | |||
116 | src_install() | ||
117 | { | ||
118 | niro | 1238 | cd ${SRCDIR} |
119 | niro | 1241 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die |
120 | niro | 1235 | |
121 | cd ${XORGDDIR}/hw/vnc | ||
122 | niro | 1240 | mmake DESTDIR=${BINDIR} install || die |
123 | niro | 1235 | } |