Magellan Linux

Annotation of /smage/branches/alx-0_6_0/core/tigervnc/tigervnc-1.0.90_svn4323-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1853 - (hide annotations) (download)
Fri Apr 22 09:04:42 2011 UTC (13 years, 1 month ago) by niro
File size: 3774 byte(s)
-use libsha1 as sha1 implementation
1 niro 1849 # $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     REMOVE_DEPRECATED_MAGE_TARGETS=1
25     ALX_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
26     sminclude alx-split
27    
28     SRC_URI=(
29     http://mesh.dl.sourceforge.net/project/${PNAME}/${PNAME}/${PVER}/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     http://ftp.x.org/pub/individual/xserver/${XORG}
32     mirror://xorg-server/${XORG}
33     mirror://${PNAME}/tigervnc_48.png
34     mirror://${PNAME}/${PNAME}-1.0.90-102434.patch
35     mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch
36     mirror://${PNAME}/${PNAME}-0.0.90-viewer-reparent.patch
37     mirror://${PNAME}/${PNAME}-1.0.90-ldnow.patch
38     mirror://${PNAME}/${PNAME}-${PVER}-xserver110-patch-fix.patch
39     mirror://${PNAME}/${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch
40     )
41    
42     src_prepare()
43     {
44     munpack ${SRCFILE} || die
45     munpack ${XORG} || die
46     cp -r ${XORGSDIR}/* ${XORGDDIR} || die
47     cd ${SRCDIR}
48    
49     # patchwork
50     # force vncviewer to read password from stdin
51     mpatch ${PNAME}-1.0.90-102434.patch || die
52     # create X server cookie via mcookie
53     mpatch ${PNAME}-1.0.90-cookie.patch || die
54     # add reparent support for x window
55     mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die
56     # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
57     mpatch ${PNAME}-1.0.90-ldnow.patch || die
58     cd ${SRCDIR}/unix
59     # fix the included patch to work with xorg-server-1.10.0 final
60     mpatch ${PNAME}-${PVER}-xserver110-patch-fix.patch || die
61     # fix some missing ldflags to successfully build Xvnc against xorg-server-1.10.0 final
62     mpatch ${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch || die
63    
64     # apply the included xorg patch
65     cd ${XORGDDIR}
66     local xorg_patch_ver="${XORG_PVER%.*}"
67     xorg_patch_ver="${xorg_patch_ver//.}"
68     patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
69    
70     # reconfigure everything
71     cd ${XORGDDIR}
72     libtoolize --copy --force || die
73 niro 1851 autoreconf --verbose --install --force --include=/usr/X11R6/share/aclocal || die
74 niro 1849
75     cd ${SRCDIR}
76     libtoolize --copy --force || die
77     autoreconf --verbose --install --force || die
78     }
79    
80     src_compile()
81     {
82     cd ${SRCDIR}
83     mconfigure --disable-static || die
84     # only build neccessary things
85     mmake -j1 -C common || die
86     mmake -j1 -C unix/vncpasswd || die
87    
88     # fix build issues
89 niro 1853 export CFLAGS="$(pkg-config --cflags libdrm libsha1)"
90 niro 1849
91     # build the x11 module
92     cd ${XORGDDIR}
93     mconfigure \
94 niro 1850 --prefix=/usr/X11R6 \
95     --datadir=/usr/X11R6/share \
96 niro 1849 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
97 niro 1850 --with-rgb-path=/usr/X11R6/share/X11/rgb.txt \
98     --with-xkb-output=/usr/X11R6/share/X11/xkb \
99 niro 1849 --with-pic \
100     --disable-xorg \
101     --disable-composite \
102     --enable-xtrap \
103     --enable-glx \
104     --disable-xnest \
105     --disable-xvfb \
106     --disable-dmx \
107     --disable-xwin \
108     --disable-xephyr \
109     --disable-kdrive \
110     --disable-xorgcfg \
111     --disable-xprint \
112     --disable-static \
113     --disable-xevie \
114     --disable-dri \
115     --disable-dri2 \
116     --disable-config-dbus \
117     --disable-config-hal \
118     --enable-install-libxf86config \
119     --disable-shave \
120 niro 1852 --with-sha1=libsha1 \
121 niro 1849 || die
122    
123     mmake -j1 || die
124     }
125    
126     mcore_generic_src_install()
127     {
128     cd ${SRCDIR}
129     mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
130    
131     cd ${XORGDDIR}/hw/vnc
132     mmake DESTDIR=${BINDIR} install || die
133     }