Magellan Linux

Annotation of /smage/trunk/core/tigervnc/tigervnc-1.0.90_svn4323-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1614 - (hide annotations) (download)
Fri Mar 4 18:00:45 2011 UTC (13 years, 2 months ago) by niro
File size: 3169 byte(s)
auto added: ver bump to 1.0.90_svn4323-r1
1 niro 1614 # $Id$
2    
3     PNAME="tigervnc"
4     PVER="1.0.90_svn4323"
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.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     )
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     # 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     # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
54     mpatch ${PNAME}-1.0.90-ldnow.patch || die
55    
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     cd ${SRCDIR}
69     libtoolize --copy --force || die
70     autoreconf --verbose --install --force || die
71     }
72    
73     src_compile()
74     {
75     cd ${SRCDIR}
76     mconfigure --disable-static || die
77     # only build neccessary things
78     mmake -j1 -C common || die
79     mmake -j1 -C unix/vncpasswd || die
80    
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     --with-rgb-path=/usr/share/X11/rgb.txt \
89     --with-xkb-output=/usr/share/X11/xkb \
90     --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     mmake -j1 || die
114     }
115    
116     mcore_generic_src_install()
117     {
118     cd ${SRCDIR}
119     mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
120    
121     cd ${XORGDDIR}/hw/vnc
122     mmake DESTDIR=${BINDIR} install || die
123     }