Magellan Linux

Annotation of /smage/trunk/core/tigervnc/tigervnc-1.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12037 - (hide annotations) (download)
Tue Aug 21 07:42:22 2018 UTC (5 years, 8 months ago) by niro
File size: 4101 byte(s)
auto added: ver bump to 1.9.0-r1
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     >= virtual/X-ABI-VIDEODRV-23
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.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     >= x11-libs/libpciaccess-dev-0.14
50     == x11-base/xorg-server-dev-${XORG_PVER}"
51    
52     ALX_PKG_KEEP="usr/bin/vncpasswd usr/$(mlibdir)/xorg/modules/extensions/libvnc.so"
53     msetfeature "!check"
54     sminclude cmake xorg mtools alx-split
55    
56     SRC_URI=(
57     https://github.com/TigerVNC/${PNAME}/archive/${SRCFILE}
58     mirror://${PNAME}/${SRCFILE}
59     http://xorg.freedesktop.org/archive/individual/xserver/${XORG}
60     mirror://xorg-server/${XORG}
61     mirror://${PNAME}/tigervnc_48.png
62     mirror://${PNAME}/${PNAME}-1.1.0-gethomedir.patch
63     mirror://${PNAME}/${PNAME}-1.3.0-shebang.patch
64     mirror://${PNAME}/${PNAME}-1.4.2-getmaster.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     #mpatch ${PNAME}-1.1.0-gethomedir.patch || die
81    
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     # apply the included xorg patch
89     cd ${XORGDDIR}
90     local xorg_patch_ver="${XORG_PVER%.*}"
91     xorg_patch_ver="${xorg_patch_ver//.}"
92     patch -Np1 -i ../xserver${xorg_patch_ver}.patch || die
93    
94     # reconfigure xorg
95     cd ${XORGDDIR}
96     mautoreconf || die
97     }
98    
99     src_compile()
100     {
101     cd ${SRCDIR}
102     cmake_configure || die
103     mmake || die
104    
105     # build the x11 module
106     # do not disable xcomposite with xorg-server 1.19.6 onwards!
107     # patch https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=c64bd21d7a732b6b8de0f8f636e93b1d1bb46135
108     # is causing this
109     #--disable-composite
110     cd ${XORGDDIR}
111     mconfigure \
112     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
113     --with-fontdir=/usr/share/fonts \
114     --with-rgb-path=/usr/share/X11/rgb.txt \
115     --with-xkb-output=/usr/share/X11/xkb \
116     --with-module-dir=/usr/$(mlibdir)/xorg/modules \
117     --with-dri-driver-path=/usr/$(mlibdir)/dri \
118     --with-pic \
119     --without-dtrace \
120     --disable-xorg \
121     --enable-xtrap \
122     --disable-xinerama \
123     --enable-glx \
124     --disable-xnest \
125     --disable-xvfb \
126     --disable-dmx \
127     --disable-xwin \
128     --disable-xephyr \
129     --disable-kdrive \
130     --disable-xwayland \
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     }