Magellan Linux

Contents of /smage/trunk/core/tigervnc/tigervnc-1.3.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5345 - (show annotations) (download)
Thu Jan 2 14:30:50 2014 UTC (10 years, 5 months ago) by niro
File size: 4823 byte(s)
-rebuild against xorg-server-1.14.5
1 # $Id$
2
3 PNAME="tigervnc"
4 PVER="1.3.0"
5 PBUILD="r2"
6
7 PCAT="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.bz2"
13 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14
15 XORG_PVER="1.14.5"
16 XORG="xorg-server-${XORG_PVER}.tar.bz2"
17 XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}"
18 XORGDDIR="${SRCDIR}/unix/xserver"
19
20 COMMON_DEPEND=">= x11-libs/libX11-1.6
21 >= x11-libs/libXext-1.3
22 >= x11-libs/libSM-1.2
23 >= x11-libs/libXtst-1.2
24 >= x11-libs/libXi-1.6
25 >= x11-libs/fltk-1.3
26 >= sys-libs/zlib-1.2.5
27 >= sys-libs/libstdc++-4.8
28 >= dev-libs/libsha1-0.3
29 >= media-fonts/font-adobe-75dpi-1
30 >= media-fonts/font-misc-misc-1
31 == x11-base/xorg-server-${XORG_PVER}"
32
33 SDEPEND=">= dev-lang/nasm-2
34 >= x11-proto/xextproto-7.2
35 >= x11-proto/inputproto-2
36 >= x11-proto/bigreqsproto-1.1
37 >= x11-proto/compositeproto-0.4
38 >= x11-proto/damageproto-1.2
39 >= x11-proto/dri2proto-2.3
40 >= x11-proto/fixesproto-5
41 >= x11-proto/fontsproto-2.1
42 >= x11-proto/randrproto-1.3
43 >= x11-proto/resourceproto-1.2
44 >= x11-proto/scrnsaverproto-1.2
45 >= x11-proto/videoproto-2.3
46 >= x11-proto/xcmiscproto-1.2
47 >= x11-proto/xineramaproto-1.2
48 >= x11-proto/xf86bigfontproto-1.2
49 >= x11-proto/xf86dgaproto-2.1
50 >= x11-proto/xf86driproto-2.1
51 >= x11-proto/xf86miscproto-0.9.3
52 >= x11-proto/xf86vidmodeproto-2.3
53 >= x11-proto/glproto-1.4.17
54 >= x11-proto/renderproto-0.11
55 >= x11-libs/libpciaccess-0.13"
56
57 ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
58 sminclude cmake xorg mtools alx-split
59
60 SRC_URI=(
61 sourceforge://${PNAME}/${SRCFILE}
62 mirror://${PNAME}/${SRCFILE}
63 http://ftp.x.org/pub/individual/xserver/${XORG}
64 mirror://xorg-server/${XORG}
65 mirror://${PNAME}/tigervnc_48.png
66 mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch
67 mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch
68 mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch
69 mirror://${PNAME}/${PNAME}-1.1.0-rh692048.patch
70 mirror://${PNAME}/${PNAME}-${PVER}-inetd-nowait.patch
71 mirror://${PNAME}/${PNAME}-${PVER}-setcursor-crash.patch
72 mirror://${PNAME}/${PNAME}-${PVER}-manpages.patch
73 mirror://${PNAME}/${PNAME}-${PVER}-getmaster.patch
74 mirror://${PNAME}/${PNAME}-${PVER}-shebang.patch
75 mirror://${PNAME}/${PNAME}-${PVER}-key_is_down.patch
76 )
77
78 UP2DATE="updatecmd_sourceforge ${PNAME}"
79
80 src_prepare()
81 {
82 munpack ${SRCFILE} || die
83 munpack ${XORG} || die
84 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
85 cd ${SRCDIR}
86
87 # patchwork
88 # create X server cookie via mcookie
89 mpatch ${PNAME}-1.0.90-cookie.patch || die
90 # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
91 mpatch ${PNAME}-1.0.90-ldnow.patch || die
92 mpatch ${PNAME}-1.1.0-gethomedir.patch || die
93 mpatch ${PNAME}-1.1.0-rh692048.patch || die
94
95 # fix busy loop when run from inetd in nowait mode
96 mpatch ${PNAME}-${PVER}-inetd-nowait.patch || die
97
98 # fix a crash wit setcursor
99 mpatch ${PNAME}-${PVER}-setcursor-crash.patch || die
100
101 # synchronise manpages and --help output
102 mpatch ${PNAME}-${PVER}-manpages.patch || die
103
104 # libvnc.so: don't use unexported GetMaster function
105 mpatch ${PNAME}-${PVER}-getmaster.patch || die
106
107 # don't use shebang in vncserver script.
108 mpatch ${PNAME}-${PVER}-shebang.patch || die
109
110 # libvnc.so: don't use unexported key_is_down function
111 mpatch ${PNAME}-${PVER}-key_is_down.patch || die
112
113 # apply the included xorg patch
114 cd ${XORGDDIR}
115 local xorg_patch_ver="${XORG_PVER%.*}"
116 xorg_patch_ver="${xorg_patch_ver//.}"
117 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
118
119 # reconfigure xorg
120 cd ${XORGDDIR}
121 mautoreconf || die
122 }
123
124 src_compile()
125 {
126 cd ${SRCDIR}
127 cmake_configure || die
128 mmake || die
129
130 # build the x11 module
131 cd ${XORGDDIR}
132 mconfigure \
133 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
134 --with-fontdir=/usr/share/fonts \
135 --with-rgb-path=/usr/share/X11/rgb.txt \
136 --with-xkb-output=/usr/share/X11/xkb \
137 --with-module-dir=/usr/$(mlibdir)/xorg/modules \
138 --with-dri-driver-path=/usr/$(mlibdir)/dri \
139 --with-pic \
140 --without-dtrace \
141 --disable-xorg \
142 --disable-composite \
143 --enable-xtrap \
144 --disable-xinerama \
145 --enable-glx \
146 --disable-xnest \
147 --disable-xvfb \
148 --disable-dmx \
149 --disable-xwin \
150 --disable-xephyr \
151 --disable-kdrive \
152 --disable-static \
153 --disable-dri \
154 --enable-dri2 \
155 --disable-config-dbus \
156 --disable-config-hal \
157 --disable-config-udev \
158 --enable-install-libxf86config \
159 --disable-unit-tests \
160 --disable-devel-docs \
161 --disable-selective-werror \
162 --with-sha1=libsha1 \
163 || die
164
165 mmake || die
166 }
167
168 alx_generic_src_install()
169 {
170 cd ${SRCDIR}
171 mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
172
173 cd ${XORGDDIR}/hw/vnc
174 mmake DESTDIR=${BINDIR} install || die
175 }