Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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