Magellan Linux

Contents of /smage/trunk/extras/tigervnc/tigervnc-1.0.90_svn4262-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1241 - (show annotations) (download)
Tue Feb 1 13:36:38 2011 UTC (13 years, 2 months ago) by niro
File size: 3113 byte(s)
auto added: ver bump to 1.0.90_svn4262-r1
1 # $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 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 mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch
34 )
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 # 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 # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
51 mpatch ${PNAME}-1.0.90-ldnow.patch || die
52
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 cd ${SRCDIR}
66 libtoolize --copy --force || die
67 autoreconf --verbose --install --force || die
68 }
69
70 src_compile()
71 {
72 cd ${SRCDIR}
73 mconfigure --disable-static || die
74 # only build neccessary things
75 mmake -j1 -C common || die
76 mmake -j1 -C unix/vncpasswd || die
77
78 # fix build issues
79 export CFLAGS="$(pkg-config --cflags libdrm)"
80
81 # build the x11 module
82 cd ${XORGDDIR}
83 mconfigure \
84 --prefix=/usr/X11R6 \
85 --datadir=/usr/X11R6/share \
86 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
87 --with-rgb-path=/usr/X11R6/share/X11/rgb.txt \
88 --with-xkb-output=/usr/X11R6/share/X11/xkb \
89 --with-pic \
90 --disable-xorg \
91 --disable-composite \
92 --enable-xtrap \
93 --enable-glx \
94 --disable-xnest \
95 --disable-xvfb \
96 --disable-dmx \
97 --disable-xwin \
98 --disable-xephyr \
99 --disable-kdrive \
100 --disable-xorgcfg \
101 --disable-xprint \
102 --disable-static \
103 --disable-xevie \
104 --disable-dri \
105 --disable-dri2 \
106 --disable-config-dbus \
107 --disable-config-hal \
108 --enable-install-libxf86config \
109 --disable-shave \
110 || die
111
112 mmake -j1 || die
113 }
114
115 src_install()
116 {
117 cd ${SRCDIR}
118 mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
119
120 cd ${XORGDDIR}/hw/vnc
121 mmake DESTDIR=${BINDIR} install || die
122 }