Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/tigervnc/tigervnc-1.0.90_svn4323-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2506 - (show annotations) (download)
Thu Jun 30 13:55:15 2011 UTC (12 years, 10 months ago) by niro
File size: 3704 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 # $Id$
2
3 PNAME="tigervnc"
4 PVER="1.0.90_svn4323"
5 PBUILD="r2"
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 SRCFILE="${PNAME}-${PVER}.tar.bz2"
13 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14
15 XORG_PVER="1.10.2"
16 XORG="xorg-server-${XORG_PVER}.tar.bz2"
17 XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}"
18 XORGDDIR="${SRCDIR}/unix/xserver"
19
20 DEPEND=">= virtual/x11"
21 SDEPEND=">= dev-lang/nasm-2"
22
23 REMOVE_DEPRECATED_MAGE_TARGETS=1
24 ALX_ONLY_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
25 sminclude alx-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 mirror://${PNAME}/${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch
39 )
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 munpack ${XORG} || die
45 cp -r ${XORGSDIR}/* ${XORGDDIR} || die
46 cd ${SRCDIR}
47
48 # patchwork
49 # force vncviewer to read password from stdin
50 mpatch ${PNAME}-1.0.90-102434.patch || die
51 # create X server cookie via mcookie
52 mpatch ${PNAME}-1.0.90-cookie.patch || die
53 # add reparent support for x window
54 mpatch ${PNAME}-0.0.90-viewer-reparent.patch || die
55 # link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
56 mpatch ${PNAME}-1.0.90-ldnow.patch || die
57 cd ${SRCDIR}/unix
58 # fix the included patch to work with xorg-server-1.10.0 final
59 mpatch ${PNAME}-${PVER}-xserver110-patch-fix.patch || die
60 # fix some missing ldflags to successfully build Xvnc against xorg-server-1.10.0 final
61 mpatch ${PNAME}-${PVER}-xserver110-patch-missing-miext_sync_ldadd.patch || die
62
63 # apply the included xorg patch
64 cd ${XORGDDIR}
65 local xorg_patch_ver="${XORG_PVER%.*}"
66 xorg_patch_ver="${xorg_patch_ver//.}"
67 patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
68
69 # reconfigure everything
70 cd ${XORGDDIR}
71 libtoolize --copy --force || die
72 autoreconf --verbose --install --force || die
73
74 cd ${SRCDIR}
75 libtoolize --copy --force || die
76 autoreconf --verbose --install --force || die
77 }
78
79 src_compile()
80 {
81 cd ${SRCDIR}
82 mconfigure --disable-static || die
83 # only build neccessary things
84 mmake -j1 -C common || die
85 mmake -j1 -C unix/vncpasswd || die
86
87 # fix build issues
88 export CFLAGS="$(pkg-config --cflags libdrm libsha1)"
89
90 # build the x11 module
91 cd ${XORGDDIR}
92 mconfigure \
93 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
94 --with-rgb-path=/usr/share/X11/rgb.txt \
95 --with-xkb-output=/usr/share/X11/xkb \
96 --with-module-dir=/usr/$(mlibdir)/xorg/modules \
97 --with-pic \
98 --disable-xorg \
99 --disable-composite \
100 --enable-xtrap \
101 --enable-glx \
102 --disable-xnest \
103 --disable-xvfb \
104 --disable-dmx \
105 --disable-xwin \
106 --disable-xephyr \
107 --disable-kdrive \
108 --disable-xorgcfg \
109 --disable-xprint \
110 --disable-static \
111 --disable-xevie \
112 --disable-dri \
113 --disable-dri2 \
114 --disable-config-dbus \
115 --disable-config-hal \
116 --enable-install-libxf86config \
117 --disable-shave \
118 --with-sha1=libsha1 \
119 || die
120
121 mmake -j1 || die
122 }
123
124 alx_generic_src_install()
125 {
126 cd ${SRCDIR}
127 mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
128
129 cd ${XORGDDIR}/hw/vnc
130 mmake DESTDIR=${BINDIR} install || die
131 }