Contents of /smage/trunk/core/tigervnc/tigervnc-1.4.3-r1.smage2
Parent Directory | Revision Log
Revision 7144 -
(show annotations)
(download)
Thu Sep 17 13:37:13 2015 UTC (9 years ago) by niro
File size: 4352 byte(s)
Thu Sep 17 13:37:13 2015 UTC (9 years ago) by niro
File size: 4352 byte(s)
-use xorg 1.16 patch
1 | # $Id$ |
2 | |
3 | PNAME="tigervnc" |
4 | PVER="1.4.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="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="v${PVER}.tar.gz" |
13 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
14 | |
15 | XORG_PVER="1.17.2" |
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.6 |
21 | >= x11-libs/libXext-1.3 |
22 | >= x11-libs/libSM-1.2 |
23 | >= x11-libs/libXtst-1.2 |
24 | >= x11-libs/libXi-1.7 |
25 | >= x11-libs/fltk-1.3 |
26 | >= sys-libs/zlib-1.2.5 |
27 | >= sys-libs/libstdc++-5.1 |
28 | >= dev-libs/openssl-1.0.2 |
29 | >= media-fonts/font-adobe-75dpi-1 |
30 | >= media-fonts/font-misc-misc-1 |
31 | >= virtual/X-ABI-EXTENSION-9.0 |
32 | >= virtual/X-ABI-VIDEODRV-19 |
33 | >= virtual/X-ABI-XINPUT-21.1" |
34 | |
35 | SDEPEND=">= dev-lang/nasm-2 |
36 | == x11-proto/xorg-protos-7.7.${XORG_PVER} |
37 | >= x11-libs/libpciaccess-0.13 |
38 | >= media-fonts/font-util-1.3 |
39 | >= x11-libs/libX11-dev-1.6 |
40 | >= x11-libs/libXext-dev-1.3 |
41 | >= x11-libs/libSM-dev-1.2 |
42 | >= x11-libs/libXtst-dev-1.2 |
43 | >= x11-libs/libXi-dev-1.7 |
44 | >= x11-libs/fltk-dev-1.3 |
45 | >= sys-libs/zlib-dev-1.2.5 |
46 | >= sys-libs/libstdc++-dev-5.1 |
47 | >= dev-libs/openssl-dev-1.0.2 |
48 | >= x11-libs/libpciaccess-dev-0.13 |
49 | == x11-base/xorg-server-dev-${XORG_PVER}" |
50 | |
51 | ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" |
52 | msetfeature "!check" |
53 | sminclude cmake xorg mtools alx-split |
54 | |
55 | SRC_URI=( |
56 | https://github.com/TigerVNC/${PNAME}/archive/${SRCFILE} |
57 | mirror://${PNAME}/${SRCFILE} |
58 | http://ftp.x.org/pub/individual/xserver/${XORG} |
59 | mirror://xorg-server/${XORG} |
60 | mirror://${PNAME}/tigervnc_48.png |
61 | mirror://${PNAME}/${PNAME}-1.0.90-cookie.patch |
62 | mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch |
63 | mirror://${PNAME}/${PNAME}-1.4.2-rh692048.patch |
64 | mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch |
65 | mirror://${PNAME}/${PNAME}-1.4.2-getmaster.patch |
66 | mirror://${PNAME}/${PNAME}-1.5.0-xserver117.patch |
67 | mirror://${PNAME}/${PNAME}-1.5.0-gnutls3.patch |
68 | ) |
69 | |
70 | UP2SEPERATOR="v" |
71 | UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz" |
72 | |
73 | src_prepare() |
74 | { |
75 | # munpack needs a suffix |
76 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die |
77 | munpack ${XORG} || die |
78 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die |
79 | cd ${SRCDIR} |
80 | |
81 | # patchwork |
82 | # create X server cookie via mcookie |
83 | mpatch ${PNAME}-1.0.90-cookie.patch || die |
84 | mpatch ${PNAME}-1.1.0-gethomedir.patch || die |
85 | mpatch ${PNAME}-1.4.2-rh692048.patch || die |
86 | |
87 | # libvnc.so: don't use unexported GetMaster function |
88 | mpatch ${PNAME}-1.4.2-getmaster.patch || die |
89 | |
90 | # don't use shebang in vncserver script. |
91 | mpatch ${PNAME}-1.3.0-shebang.patch || die |
92 | |
93 | # fix build with newer gnutls |
94 | mpatch ${PNAME}-1.5.0-gnutls3.patch || die |
95 | |
96 | # fix build with xorg-1.17 |
97 | mpatch ${PNAME}-1.5.0-xserver117.patch || die |
98 | |
99 | # apply the included xorg patch |
100 | cd ${XORGDDIR} |
101 | # local xorg_patch_ver="${XORG_PVER%.*}" |
102 | # use xorg116 patch |
103 | local xorg_patch_ver="1.16" |
104 | xorg_patch_ver="${xorg_patch_ver//.}" |
105 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die |
106 | |
107 | # reconfigure xorg |
108 | cd ${XORGDDIR} |
109 | mautoreconf || die |
110 | } |
111 | |
112 | src_compile() |
113 | { |
114 | cd ${SRCDIR} |
115 | cmake_configure || die |
116 | mmake || die |
117 | |
118 | # build the x11 module |
119 | cd ${XORGDDIR} |
120 | mconfigure \ |
121 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
122 | --with-fontdir=/usr/share/fonts \ |
123 | --with-rgb-path=/usr/share/X11/rgb.txt \ |
124 | --with-xkb-output=/usr/share/X11/xkb \ |
125 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ |
126 | --with-dri-driver-path=/usr/$(mlibdir)/dri \ |
127 | --with-pic \ |
128 | --without-dtrace \ |
129 | --disable-xorg \ |
130 | --disable-composite \ |
131 | --enable-xtrap \ |
132 | --disable-xinerama \ |
133 | --enable-glx \ |
134 | --enable-glx-tls \ |
135 | --disable-xnest \ |
136 | --disable-xvfb \ |
137 | --disable-dmx \ |
138 | --disable-xwin \ |
139 | --disable-xephyr \ |
140 | --disable-kdrive \ |
141 | --disable-static \ |
142 | --disable-dri \ |
143 | --enable-dri2 \ |
144 | --enable-dri3 \ |
145 | --disable-present \ |
146 | --disable-config-dbus \ |
147 | --disable-config-hal \ |
148 | --disable-config-udev \ |
149 | --enable-install-libxf86config \ |
150 | --disable-unit-tests \ |
151 | --disable-devel-docs \ |
152 | --disable-selective-werror \ |
153 | || die |
154 | |
155 | mmake || die |
156 | } |
157 | |
158 | alx_generic_src_install() |
159 | { |
160 | cd ${SRCDIR} |
161 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die |
162 | |
163 | cd ${XORGDDIR}/hw/vnc |
164 | mmake DESTDIR=${BINDIR} install || die |
165 | } |