Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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