Contents of /smage/branches/alx-0_6_0/core/tigervnc/tigervnc-1.0.90_svn4323-r3.smage2
Parent Directory | Revision Log
Revision 5891 -
(show annotations)
(download)
Thu Jul 10 05:02:33 2014 UTC (9 years, 11 months ago) by niro
File size: 3865 byte(s)
Thu Jul 10 05:02:33 2014 UTC (9 years, 11 months ago) by niro
File size: 3865 byte(s)
auto added: ver bump to 1.0.90_svn4323-r3
1 | # $Id$ |
2 | |
3 | PNAME="tigervnc" |
4 | PVER="1.0.90_svn4323" |
5 | PBUILD="r3" |
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.6" |
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/bin/vncviewer 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 | # build vncviewer |
88 | mmake -j1 -C unix/tx || die |
89 | mmake -j1 -C unix/vncviewer || die |
90 | |
91 | # fix build issues |
92 | export CFLAGS="$(pkg-config --cflags libdrm libsha1)" |
93 | |
94 | # build the x11 module |
95 | cd ${XORGDDIR} |
96 | mconfigure \ |
97 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
98 | --with-rgb-path=/usr/share/X11/rgb.txt \ |
99 | --with-xkb-output=/usr/share/X11/xkb \ |
100 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ |
101 | --with-pic \ |
102 | --disable-xorg \ |
103 | --disable-composite \ |
104 | --enable-xtrap \ |
105 | --enable-glx \ |
106 | --disable-xnest \ |
107 | --disable-xvfb \ |
108 | --disable-dmx \ |
109 | --disable-xwin \ |
110 | --disable-xephyr \ |
111 | --disable-kdrive \ |
112 | --disable-xorgcfg \ |
113 | --disable-xprint \ |
114 | --disable-static \ |
115 | --disable-xevie \ |
116 | --disable-dri \ |
117 | --disable-dri2 \ |
118 | --disable-config-dbus \ |
119 | --disable-config-hal \ |
120 | --enable-install-libxf86config \ |
121 | --disable-shave \ |
122 | --with-sha1=libsha1 \ |
123 | || die |
124 | |
125 | mmake -j1 || die |
126 | } |
127 | |
128 | alx_generic_src_install() |
129 | { |
130 | cd ${SRCDIR} |
131 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die |
132 | mmake -C unix/vncviewer DESTDIR=${BINDIR} install || die |
133 | |
134 | cd ${XORGDDIR}/hw/vnc |
135 | mmake DESTDIR=${BINDIR} install || die |
136 | } |