Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/tigervnc/tigervnc-1.10.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15137 - (hide annotations) (download)
Fri Aug 7 07:28:17 2020 UTC (3 years, 9 months ago) by niro
File size: 4419 byte(s)
-release branches/alx07x-stable
1 niro 14294 # $Id$
2    
3     PNAME="tigervnc"
4     PVER="1.10.1"
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.8"
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++-8.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.0
33     >= virtual/X-ABI-VIDEODRV-24.0
34     >= 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.16
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-8.3
48     >= dev-libs/openssl-dev-1.1
49     >= virtual/libjpeg-dev
50     >= x11-libs/libpciaccess-dev-0.16
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 niro 14295 mirror://${PNAME}/${PNAME}-1.10.0-xorg-server-1.20.7-ddxInputThreadInit.patch
67 niro 14294 )
68    
69     UP2SEPERATOR="v"
70     UP2DATE="updatecmd https://github.com/TigerVNC/${PNAME}/releases | highesttarball gz"
71    
72     src_prepare()
73     {
74     # munpack needs a suffix
75     tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
76     munpack ${XORG} || die
77     cp -r ${XORGSDIR}/* ${XORGDDIR} || die
78     cd ${SRCDIR}
79    
80     # patchwork
81     # create X server cookie via mcookie
82     #mpatch ${PNAME}-1.1.0-gethomedir.patch || die
83    
84     # libvnc.so: don't use unexported GetMaster function
85     #mpatch ${PNAME}-1.4.2-getmaster.patch || die
86    
87     # don't use shebang in vncserver script.
88     mpatch ${PNAME}-1.3.0-shebang.patch || die
89    
90 niro 14295 # fix ftbfs with >=xorg-server-1.20.7
91     mpatch ${PNAME}-1.10.0-xorg-server-1.20.7-ddxInputThreadInit.patch || die
92    
93 niro 14294 # apply the included xorg patch
94     cd ${XORGDDIR}
95     local xorg_patch_ver="${XORG_PVER%.*}"
96     xorg_patch_ver="${xorg_patch_ver//.}"
97     patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
98    
99     # reconfigure xorg
100     cd ${XORGDDIR}
101     mautoreconf || die
102     }
103    
104     src_compile()
105     {
106     cd ${SRCDIR}
107     cmake_configure || die
108     mmake || die
109    
110     # build the x11 module
111     # do not disable xcomposite with xorg-server 1.19.6 onwards!
112     # patch https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=c64bd21d7a732b6b8de0f8f636e93b1d1bb46135
113     # is causing this
114     #--disable-composite
115    
116     # fix broken CFLAGS for dri3, hopefully fixed soon
117     export CFLAGS+=" -I/usr/include/libdrm"
118    
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     --enable-xtrap \
131     --disable-xinerama \
132     --enable-glx \
133     --disable-xnest \
134     --disable-xvfb \
135     --disable-dmx \
136     --disable-xwin \
137     --disable-xephyr \
138     --disable-kdrive \
139     --disable-xwayland \
140     --disable-static \
141     --disable-dri \
142     --enable-dri2 \
143     --enable-dri3 \
144     --disable-present \
145     --disable-config-dbus \
146     --disable-config-hal \
147     --disable-config-udev \
148     --enable-install-libxf86config \
149     --disable-unit-tests \
150     --disable-devel-docs \
151     --disable-selective-werror \
152     || die
153    
154     mmake || die
155     }
156    
157     alx_generic_src_install()
158     {
159     cd ${SRCDIR}
160     mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
161    
162     cd ${XORGDDIR}/hw/vnc
163     mmake DESTDIR=${BINDIR} install || die
164     }