Annotation of /smage/trunk/core/tigervnc/tigervnc-1.0.90_svn4323-r2.smage2
Parent Directory | Revision Log
Revision 1617 -
(hide annotations)
(download)
Fri Mar 4 21:07:12 2011 UTC (13 years, 2 months ago) by niro
File size: 3611 byte(s)
Fri Mar 4 21:07:12 2011 UTC (13 years, 2 months ago) by niro
File size: 3611 byte(s)
-added a patch to fix some missing ldflags
1 | niro | 1617 | # $Id$ |
2 | |||
3 | PNAME="tigervnc" | ||
4 | PVER="1.0.90_svn4323" | ||
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.10.0" | ||
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 | MCORE_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" | ||
25 | sminclude mcore-split | ||
26 | |||
27 | 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 | 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 | mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch | ||
37 | mirror://${PNAME}/${PNAME}-${PVER}-xserver110-patch-fix.patch | ||
38 | mirror://${PNAME}/${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch | ||
39 | ) | ||
40 | |||
41 | src_prepare() | ||
42 | { | ||
43 | munpack ${SRCFILE} || die | ||
44 | munpack ${XORG} || die | ||
45 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # patchwork | ||
49 | # force vncviewer to read password from stdin | ||
50 | mpatch ${PNAME}-1.0.90-102434.patch || die | ||
51 | # create X server cookie via mcookie | ||
52 | mpatch ${PNAME}-1.0.90-cookie.patch || die | ||
53 | # add reparent support for x window | ||
54 | mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die | ||
55 | # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup | ||
56 | mpatch ${PNAME}-1.0.90-ldnow.patch || die | ||
57 | cd ${SRCDIR}/unix | ||
58 | # fix the included patch to work with xorg-server-1.10.0 final | ||
59 | mpatch ${PNAME}-${PVER}-xserver110-patch-fix.patch || die | ||
60 | # fix some missing ldflags to successfully build Xvnc against xorg-server-1.10.0 final | ||
61 | mpatch ${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch || die | ||
62 | |||
63 | # apply the included xorg patch | ||
64 | cd ${XORGDDIR} | ||
65 | local xorg_patch_ver="${XORG_PVER%.*}" | ||
66 | xorg_patch_ver="${xorg_patch_ver//.}" | ||
67 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die | ||
68 | |||
69 | # reconfigure everything | ||
70 | cd ${XORGDDIR} | ||
71 | libtoolize --copy --force || die | ||
72 | autoreconf --verbose --install --force || die | ||
73 | |||
74 | cd ${SRCDIR} | ||
75 | libtoolize --copy --force || die | ||
76 | autoreconf --verbose --install --force || die | ||
77 | } | ||
78 | |||
79 | src_compile() | ||
80 | { | ||
81 | cd ${SRCDIR} | ||
82 | mconfigure --disable-static || die | ||
83 | # only build neccessary things | ||
84 | mmake -j1 -C common || die | ||
85 | mmake -j1 -C unix/vncpasswd || die | ||
86 | |||
87 | # fix build issues | ||
88 | export CFLAGS="$(pkg-config --cflags libdrm)" | ||
89 | |||
90 | # build the x11 module | ||
91 | cd ${XORGDDIR} | ||
92 | mconfigure \ | ||
93 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
94 | --with-rgb-path=/usr/share/X11/rgb.txt \ | ||
95 | --with-xkb-output=/usr/share/X11/xkb \ | ||
96 | --with-pic \ | ||
97 | --disable-xorg \ | ||
98 | --disable-composite \ | ||
99 | --enable-xtrap \ | ||
100 | --enable-glx \ | ||
101 | --disable-xnest \ | ||
102 | --disable-xvfb \ | ||
103 | --disable-dmx \ | ||
104 | --disable-xwin \ | ||
105 | --disable-xephyr \ | ||
106 | --disable-kdrive \ | ||
107 | --disable-xorgcfg \ | ||
108 | --disable-xprint \ | ||
109 | --disable-static \ | ||
110 | --disable-xevie \ | ||
111 | --disable-dri \ | ||
112 | --disable-dri2 \ | ||
113 | --disable-config-dbus \ | ||
114 | --disable-config-hal \ | ||
115 | --enable-install-libxf86config \ | ||
116 | --disable-shave \ | ||
117 | || die | ||
118 | |||
119 | mmake -j1 || die | ||
120 | } | ||
121 | |||
122 | mcore_generic_src_install() | ||
123 | { | ||
124 | cd ${SRCDIR} | ||
125 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die | ||
126 | |||
127 | cd ${XORGDDIR}/hw/vnc | ||
128 | mmake DESTDIR=${BINDIR} install || die | ||
129 | } |