Magellan Linux

Annotation of /smage/trunk/core/tigervnc/tigervnc-1.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3189 - (hide annotations) (download)
Mon Sep 12 14:09:38 2011 UTC (13 years, 2 months ago) by niro
File size: 4863 byte(s)
-upstream 1.1.0 still uses autotools
1 niro 3187 # $Id$
2    
3     PNAME="tigervnc"
4     PVER="1.1.0"
5     PBUILD="r1"
6    
7     PCATEGORIE="net-misc"
8    
9     DESCRIPTION="TigerVNC is a suite of VNC servers and clients that have a focus on performance and remote display functionality."
10     HOMEPAGE="http://www.tigervnc.com/"
11    
12 niro 3188 SRCFILE="${PNAME}-${PVER}.tar.gz"
13 niro 3187 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14    
15     XORG_PVER="1.11.0"
16     XORG="xorg-server-${XORG_PVER}.tar.bz2"
17     XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}"
18     XORGDDIR="${SRCDIR}/unix/xserver"
19    
20     DEPEND=">= x11-libs/libX11-1.4
21     >= x11-libs/libXext-1.3
22     >= x11-libs/libSM-1.1
23     >= x11-libs/libXtst-1.2
24     >= x11-libs/libXi-1.4
25     >= sys-libs/zlib-1.2
26     == x11-base/xorg-server-${XORG_PVER}
27     >= dev-libs/libsha1-0.3
28     >= media-fonts/font-adobe-75dpi-1
29     >= media-fonts/font-misc-misc-1"
30    
31     SDEPEND=">= dev-lang/nasm-2
32     >= x11-proto/xextproto-7.2
33     >= x11-proto/inputproto-2
34     >= x11-proto/bigreqsproto-1.1
35     >= x11-proto/compositeproto-0.4
36     >= x11-proto/damageproto-1.2
37     >= x11-proto/dri2proto-2.6
38     >= x11-proto/fixesproto-5
39     >= x11-proto/fontsproto-2.1
40     >= x11-proto/randrproto-1.3
41     >= x11-proto/resourceproto-1.2
42     >= x11-proto/scrnsaverproto-1.2
43     >= x11-proto/videoproto-2.3
44     >= x11-proto/xcmiscproto-1.2
45     >= x11-proto/xineramaproto-1.2
46     >= x11-proto/xf86bigfontproto-1.2
47     >= x11-proto/xf86dgaproto-2.1
48     >= x11-proto/xf86driproto-2.1
49     >= x11-proto/xf86miscproto-0.9.3
50     >= x11-proto/xf86vidmodeproto-2.3
51     >= x11-proto/glproto-1.4.14
52     >= x11-proto/renderproto-0.11
53     >= x11-libs/libpciaccess-0.12
54     >= sys-dev/autoconf-9
55 niro 3189 >= sys-dev/automake-4"
56 niro 3187
57     ALX_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
58     sminclude cmake alx-split
59    
60     SRC_URI=(
61     http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE}
62     mirror://${PNAME}/${SRCFILE}
63     http://ftp.x.org/pub/individual/xserver/${XORG}
64     mirror://xorg-server/${XORG}
65     mirror://${PNAME}/tigervnc_48.png
66     mirror://${PNAME}/${PNAME}-1.0.90-102434.patch
67     mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch
68     mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch
69     mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch
70     mirror://${PNAME}/${PNAME}-1.0.90-xserver111.patch
71 niro 3189 mirror://${PNAME}/${PNAME}-1.0.90_svn4323-xserver110-patch-fix.patch
72     mirror://${PNAME}/${PNAME}-1.0.90_svn4323-xserver110-patch-missing-miext_sync_ldadd.patch
73 niro 3187 )
74    
75     src_prepare()
76     {
77     munpack ${SRCFILE} || die
78     munpack ${XORG} || die
79     cp -r ${XORGSDIR}/* ${XORGDDIR} || die
80     cd ${SRCDIR}
81    
82     # patchwork
83     # force vncviewer to read password from stdin
84     mpatch ${PNAME}-1.0.90-102434.patch || die
85     # create X server cookie via mcookie
86     mpatch ${PNAME}-1.0.90-cookie.patch || die
87     # add reparent support for x window
88     mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die
89     # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
90     mpatch ${PNAME}-1.0.90-ldnow.patch || die
91     # xorg-server-1.11 support
92     mpatch ${PNAME}-1.0.90-xserver111.patch || die
93 niro 3189 cd ${SRCDIR}/unix
94     # fix the included patch to work with xorg-server-1.10.0 final
95     mpatch ${PNAME}-${PVER}-xserver110-patch-fix.patch || die
96     # fix some missing ldflags to successfully build Xvnc against xorg-server-1.10.0 final
97     mpatch ${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch || die
98 niro 3187
99     # apply the included xorg patch
100     cd ${XORGDDIR}
101     #local xorg_patch_ver="${XORG_PVER%.*}"
102     local xorg_patch_ver="1.10"
103     xorg_patch_ver="${xorg_patch_ver//.}"
104     patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
105    
106     # reconfigure everything
107     cd ${XORGDDIR}
108     libtoolize --copy --force || die
109     autoreconf --verbose --install --force || die
110 niro 3189
111     cd ${SRCDIR}
112     libtoolize --copy --force || die
113     autoreconf --verbose --install --force || die
114 niro 3187 }
115    
116     src_compile()
117     {
118     cd ${SRCDIR}
119 niro 3189 mconfigure --disable-static || die
120 niro 3187 # only build neccessary things
121     mmake -j1 -C common || die
122     mmake -j1 -C unix/vncpasswd || die
123    
124     # fix build issues
125     export CFLAGS="$(pkg-config --cflags libdrm libsha1)"
126    
127     # build the x11 module
128     cd ${XORGDDIR}
129     mconfigure \
130     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
131     --with-rgb-path=/usr/share/X11/rgb.txt \
132     --with-xkb-output=/usr/share/X11/xkb \
133     --with-module-dir=/usr/$(mlibdir)/xorg/modules \
134     --with-pic \
135     --disable-xorg \
136     --disable-composite \
137     --enable-xtrap \
138     --enable-glx \
139     --disable-xnest \
140     --disable-xvfb \
141     --disable-dmx \
142     --disable-xwin \
143     --disable-xephyr \
144     --disable-kdrive \
145     --disable-xorgcfg \
146     --disable-xprint \
147     --disable-static \
148     --disable-xevie \
149     --disable-dri \
150     --enable-dri2 \
151     --disable-config-dbus \
152     --disable-config-hal \
153     --enable-install-libxf86config \
154     --disable-shave \
155     --with-sha1=libsha1 \
156     --disable-dtrace \
157     --disable-unit-tests \
158     || die
159    
160     mmake -j1 || die
161     }
162    
163     alx_generic_src_install()
164     {
165     cd ${SRCDIR}
166     mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
167    
168     cd ${XORGDDIR}/hw/vnc
169     mmake DESTDIR=${BINDIR} install || die
170     }