Annotation of /smage/trunk/core/tigervnc/tigervnc-1.8.0-r1.smage2
Parent Directory | Revision Log
Revision 10561 -
(hide annotations)
(download)
Thu Aug 24 08:41:04 2017 UTC (6 years, 8 months ago) by niro
File size: 4000 byte(s)
Thu Aug 24 08:41:04 2017 UTC (6 years, 8 months ago) by niro
File size: 4000 byte(s)
auto added: ver bump to 1.8.0-r1
1 | niro | 10560 | # $Id$ |
2 | |||
3 | PNAME="tigervnc" | ||
4 | PVER="1.8.0" | ||
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.19.3" | ||
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.3 | ||
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-10 | ||
32 | >= virtual/X-ABI-VIDEODRV-23 | ||
33 | >= virtual/X-ABI-XINPUT-24.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.3 | ||
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://xorg.freedesktop.org/archive/individual/xserver/${XORG} | ||
59 | mirror://xorg-server/${XORG} | ||
60 | mirror://${PNAME}/tigervnc_48.png | ||
61 | mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch | ||
62 | mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch | ||
63 | mirror://${PNAME}/${PNAME}-1.4.2-getmaster.patch | ||
64 | mirror://${PNAME}/${PNAME}-1.7.0-xorg119.patch | ||
65 | ) | ||
66 | |||
67 | UP2SEPERATOR="v" | ||
68 | UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz" | ||
69 | |||
70 | src_prepare() | ||
71 | { | ||
72 | # munpack needs a suffix | ||
73 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die | ||
74 | munpack ${XORG} || die | ||
75 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die | ||
76 | cd ${SRCDIR} | ||
77 | |||
78 | # patchwork | ||
79 | # create X server cookie via mcookie | ||
80 | niro | 10561 | #mpatch ${PNAME}-1.1.0-gethomedir.patch || die |
81 | niro | 10560 | |
82 | # libvnc.so: don't use unexported GetMaster function | ||
83 | #mpatch ${PNAME}-1.4.2-getmaster.patch || die | ||
84 | |||
85 | # don't use shebang in vncserver script. | ||
86 | mpatch ${PNAME}-1.3.0-shebang.patch || die | ||
87 | |||
88 | # xorg-1.19 support patch | ||
89 | mpatch ${PNAME}-1.7.0-xorg119.patch || die | ||
90 | |||
91 | # apply the included xorg patch | ||
92 | cd ${XORGDDIR} | ||
93 | niro | 10561 | local xorg_patch_ver="${XORG_PVER%.*}" |
94 | xorg_patch_ver="${xorg_patch_ver//.}" | ||
95 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die | ||
96 | niro | 10560 | |
97 | # reconfigure xorg | ||
98 | cd ${XORGDDIR} | ||
99 | mautoreconf || die | ||
100 | } | ||
101 | |||
102 | src_compile() | ||
103 | { | ||
104 | cd ${SRCDIR} | ||
105 | cmake_configure || die | ||
106 | mmake || die | ||
107 | |||
108 | # build the x11 module | ||
109 | cd ${XORGDDIR} | ||
110 | mconfigure \ | ||
111 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
112 | --with-fontdir=/usr/share/fonts \ | ||
113 | --with-rgb-path=/usr/share/X11/rgb.txt \ | ||
114 | --with-xkb-output=/usr/share/X11/xkb \ | ||
115 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ | ||
116 | --with-dri-driver-path=/usr/$(mlibdir)/dri \ | ||
117 | --with-pic \ | ||
118 | --without-dtrace \ | ||
119 | --disable-xorg \ | ||
120 | --disable-composite \ | ||
121 | --enable-xtrap \ | ||
122 | --disable-xinerama \ | ||
123 | --enable-glx \ | ||
124 | --enable-glx-tls \ | ||
125 | --disable-xnest \ | ||
126 | --disable-xvfb \ | ||
127 | --disable-dmx \ | ||
128 | --disable-xwin \ | ||
129 | --disable-xephyr \ | ||
130 | --disable-kdrive \ | ||
131 | --disable-static \ | ||
132 | --disable-dri \ | ||
133 | --enable-dri2 \ | ||
134 | --enable-dri3 \ | ||
135 | --disable-present \ | ||
136 | --disable-config-dbus \ | ||
137 | --disable-config-hal \ | ||
138 | --disable-config-udev \ | ||
139 | --enable-install-libxf86config \ | ||
140 | --disable-unit-tests \ | ||
141 | --disable-devel-docs \ | ||
142 | --disable-selective-werror \ | ||
143 | || die | ||
144 | |||
145 | mmake || die | ||
146 | } | ||
147 | |||
148 | alx_generic_src_install() | ||
149 | { | ||
150 | cd ${SRCDIR} | ||
151 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die | ||
152 | |||
153 | cd ${XORGDDIR}/hw/vnc | ||
154 | mmake DESTDIR=${BINDIR} install || die | ||
155 | } |