Annotation of /smage/trunk/core/tigervnc/tigervnc-1.9.0-r1.smage2
Parent Directory | Revision Log
Revision 12038 -
(hide annotations)
(download)
Tue Aug 21 08:07:32 2018 UTC (5 years, 10 months ago) by niro
File size: 4127 byte(s)
Tue Aug 21 08:07:32 2018 UTC (5 years, 10 months ago) by niro
File size: 4127 byte(s)
-added missing libjpeg-dev and updated videdrv abi
1 | niro | 12037 | # $Id$ |
2 | |||
3 | PNAME="tigervnc" | ||
4 | PVER="1.9.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.20.1" | ||
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++-6.3 | ||
28 | >= dev-libs/openssl-1.1 | ||
29 | >= virtual/libjpeg | ||
30 | >= media-fonts/font-adobe-75dpi-1 | ||
31 | >= media-fonts/font-misc-misc-1 | ||
32 | >= virtual/X-ABI-EXTENSION-10 | ||
33 | niro | 12038 | >= virtual/X-ABI-VIDEODRV-24.0 |
34 | niro | 12037 | >= virtual/X-ABI-XINPUT-24.1" |
35 | |||
36 | SDEPEND=">= dev-lang/nasm-2 | ||
37 | == x11-proto/xorg-protos-7.7.${XORG_PVER} | ||
38 | >= x11-libs/libpciaccess-0.14 | ||
39 | >= media-fonts/font-util-1.3 | ||
40 | >= x11-libs/libX11-dev-1.6 | ||
41 | >= x11-libs/libXext-dev-1.3 | ||
42 | >= x11-libs/libSM-dev-1.2 | ||
43 | >= x11-libs/libXtst-dev-1.2 | ||
44 | >= x11-libs/libXi-dev-1.7 | ||
45 | >= x11-libs/fltk-dev-1.3 | ||
46 | >= sys-libs/zlib-dev-1.2.5 | ||
47 | >= sys-libs/libstdc++-dev-6.3 | ||
48 | >= dev-libs/openssl-dev-1.1 | ||
49 | niro | 12038 | >= virtual/libjpeg-dev |
50 | niro | 12037 | >= x11-libs/libpciaccess-dev-0.14 |
51 | == x11-base/xorg-server-dev-${XORG_PVER}" | ||
52 | |||
53 | ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so" | ||
54 | msetfeature "!check" | ||
55 | sminclude cmake xorg mtools alx-split | ||
56 | |||
57 | SRC_URI=( | ||
58 | https://github.com/TigerVNC/${PNAME}/archive/${SRCFILE} | ||
59 | mirror://${PNAME}/${SRCFILE} | ||
60 | http://xorg.freedesktop.org/archive/individual/xserver/${XORG} | ||
61 | mirror://xorg-server/${XORG} | ||
62 | mirror://${PNAME}/tigervnc_48.png | ||
63 | mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch | ||
64 | mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch | ||
65 | mirror://${PNAME}/${PNAME}-1.4.2-getmaster.patch | ||
66 | ) | ||
67 | |||
68 | UP2SEPERATOR="v" | ||
69 | UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz" | ||
70 | |||
71 | src_prepare() | ||
72 | { | ||
73 | # munpack needs a suffix | ||
74 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die | ||
75 | munpack ${XORG} || die | ||
76 | cp -r ${XORGSDIR}/* ${XORGDDIR} || die | ||
77 | cd ${SRCDIR} | ||
78 | |||
79 | # patchwork | ||
80 | # create X server cookie via mcookie | ||
81 | #mpatch ${PNAME}-1.1.0-gethomedir.patch || die | ||
82 | |||
83 | # libvnc.so: don't use unexported GetMaster function | ||
84 | #mpatch ${PNAME}-1.4.2-getmaster.patch || die | ||
85 | |||
86 | # don't use shebang in vncserver script. | ||
87 | mpatch ${PNAME}-1.3.0-shebang.patch || die | ||
88 | |||
89 | # apply the included xorg patch | ||
90 | cd ${XORGDDIR} | ||
91 | local xorg_patch_ver="${XORG_PVER%.*}" | ||
92 | xorg_patch_ver="${xorg_patch_ver//.}" | ||
93 | patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die | ||
94 | |||
95 | # reconfigure xorg | ||
96 | cd ${XORGDDIR} | ||
97 | mautoreconf || die | ||
98 | } | ||
99 | |||
100 | src_compile() | ||
101 | { | ||
102 | cd ${SRCDIR} | ||
103 | cmake_configure || die | ||
104 | mmake || die | ||
105 | |||
106 | # build the x11 module | ||
107 | # do not disable xcomposite with xorg-server 1.19.6 onwards! | ||
108 | # patch https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=c64bd21d7a732b6b8de0f8f636e93b1d1bb46135 | ||
109 | # is causing this | ||
110 | #--disable-composite | ||
111 | cd ${XORGDDIR} | ||
112 | mconfigure \ | ||
113 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
114 | --with-fontdir=/usr/share/fonts \ | ||
115 | --with-rgb-path=/usr/share/X11/rgb.txt \ | ||
116 | --with-xkb-output=/usr/share/X11/xkb \ | ||
117 | --with-module-dir=/usr/$(mlibdir)/xorg/modules \ | ||
118 | --with-dri-driver-path=/usr/$(mlibdir)/dri \ | ||
119 | --with-pic \ | ||
120 | --without-dtrace \ | ||
121 | --disable-xorg \ | ||
122 | --enable-xtrap \ | ||
123 | --disable-xinerama \ | ||
124 | --enable-glx \ | ||
125 | --disable-xnest \ | ||
126 | --disable-xvfb \ | ||
127 | --disable-dmx \ | ||
128 | --disable-xwin \ | ||
129 | --disable-xephyr \ | ||
130 | --disable-kdrive \ | ||
131 | --disable-xwayland \ | ||
132 | --disable-static \ | ||
133 | --disable-dri \ | ||
134 | --enable-dri2 \ | ||
135 | --enable-dri3 \ | ||
136 | --disable-present \ | ||
137 | --disable-config-dbus \ | ||
138 | --disable-config-hal \ | ||
139 | --disable-config-udev \ | ||
140 | --enable-install-libxf86config \ | ||
141 | --disable-unit-tests \ | ||
142 | --disable-devel-docs \ | ||
143 | --disable-selective-werror \ | ||
144 | || die | ||
145 | |||
146 | mmake || die | ||
147 | } | ||
148 | |||
149 | alx_generic_src_install() | ||
150 | { | ||
151 | cd ${SRCDIR} | ||
152 | mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die | ||
153 | |||
154 | cd ${XORGDDIR}/hw/vnc | ||
155 | mmake DESTDIR=${BINDIR} install || die | ||
156 | } |