Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1235 - (show annotations) (download)
Tue Feb 1 13:09:24 2011 UTC (13 years, 3 months ago) by niro
File size: 2973 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 sminclude alx cleanutils
25
26 SRC_URI=(
27 http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 http://ftp.x.org/pub/individual/xserver/${XORG}
30 mirror://xorg-server/${XORG}
31 mirror://${PNAME}/tigervnc_48.png
32 )
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 munpack ${XORG} || die
38 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
39 cd ${SRCDIR}
40
41 # patchwork
42
43 # apply the included xorg patch
44 cd ${XORGDDIR}
45 local xorg_patch_ver="${XORG_PVER//.}"
46 xorg_patch_ver="${xorg_patch_ver:0:2}"
47 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
48 cd ${SRCDIR}
49
50 # reconfigure everything
51 cd ${XORGDDIR}
52 libtoolize --copy --force || die
53 autoreconf --verbose --install --force || die
54
55 cd ${SRCDIR}/unix
56 libtoolize --copy --force || die
57 autoreconf --verbose --install --force || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}/unix
63 mconfigure --disable-static || die
64 # only build neccessary things
65 # fix broken libtool: it calles sed and it ends in an infinite loop
66 mmake -j1 -C ../common LIBTOOL="$(which libtool)" || die
67 mmake -j1 -C vncpasswd LIBTOOL="$(which libtool)" || die
68
69 # fix build issues
70 export CFLAGS="$(pkg-config --cflags libdrm)"
71
72 # build the x11 module
73 cd ${XORGDDIR}
74 mconfigure \
75 --prefix=/usr/X11R6 \
76 --datadir=/usr/X11R6/share \
77 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
78 --with-rgb-path=/usr/X11R6/share/X11/rgb.txt \
79 --with-xkb-output=/usr/X11R6/share/X11/xkb \
80 --with-pic \
81 --disable-xorg \
82 --disable-composite \
83 --enable-xtrap \
84 --enable-glx \
85 --disable-xnest \
86 --disable-xvfb \
87 --disable-dmx \
88 --disable-xwin \
89 --disable-xephyr \
90 --disable-kdrive \
91 --disable-xorgcfg \
92 --disable-xprint \
93 --disable-static \
94 --disable-xevie \
95 --disable-dri \
96 --disable-dri2 \
97 --disable-config-dbus \
98 --disable-config-hal \
99 --enable-install-libxf86config \
100 --disable-shave \
101 || die
102
103 # fix broken libtool: it calles sed and it ends in an infinite loop
104 mmake -j1 LIBTOOL="$(which libtool)" || die
105 }
106
107 src_install()
108 {
109 cd ${SRCDIR}/unix
110 # fix broken libtool: it calles sed and it ends in an infinite loop
111 mmake -C vncpasswd DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die
112
113 cd ${XORGDDIR}/hw/vnc
114 # fix broken libtool: it calles sed and it ends in an infinite loop
115 mmake DESTDIR=${BINDIR} LIBTOOL="$(which libtool)" install || die
116 }