Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12041 - (hide annotations) (download)
Tue Aug 21 11:42:22 2018 UTC (5 years, 8 months ago) by niro
File size: 4222 byte(s)
-fixed missing libdrm cflags for dri3
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 niro 12041
112     # fix broken CFLAGS for dri3, hopefully fixed soon
113     export CFLAGS+=" -I/usr/include/libdrm"
114    
115 niro 12037 cd ${XORGDDIR}
116     mconfigure \
117     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
118     --with-fontdir=/usr/share/fonts \
119     --with-rgb-path=/usr/share/X11/rgb.txt \
120     --with-xkb-output=/usr/share/X11/xkb \
121     --with-module-dir=/usr/$(mlibdir)/xorg/modules \
122     --with-dri-driver-path=/usr/$(mlibdir)/dri \
123     --with-pic \
124     --without-dtrace \
125     --disable-xorg \
126     --enable-xtrap \
127     --disable-xinerama \
128     --enable-glx \
129     --disable-xnest \
130     --disable-xvfb \
131     --disable-dmx \
132     --disable-xwin \
133     --disable-xephyr \
134     --disable-kdrive \
135     --disable-xwayland \
136     --disable-static \
137     --disable-dri \
138     --enable-dri2 \
139     --enable-dri3 \
140     --disable-present \
141     --disable-config-dbus \
142     --disable-config-hal \
143     --disable-config-udev \
144     --enable-install-libxf86config \
145     --disable-unit-tests \
146     --disable-devel-docs \
147     --disable-selective-werror \
148     || die
149    
150     mmake || die
151     }
152    
153     alx_generic_src_install()
154     {
155     cd ${SRCDIR}
156     mmake -C unix/vncpasswd DESTDIR=${BINDIR} install || die
157    
158     cd ${XORGDDIR}/hw/vnc
159     mmake DESTDIR=${BINDIR} install || die
160     }